NanoID Generator

Generate compact, URL-friendly unique IDs.

Generate NanoIDs: short, URL-safe, random IDs. The default 21-character ID uses 64 characters (A–Z, a–z, 0–9, _ and -) and has about the same collision resistance as a UUID v4 while being much shorter. Choose another alphabet (numbers only, lowercase, no look-alike characters) or type your own, set the length, and make up to 1,000 at once. IDs come from your browser's cryptographic random generator.

126 bits of randomness per ID (64 symbols × 21 characters), drawn with crypto.getRandomValues and no modulo bias.

Common use cases

  • Make short IDs for URLs, invites or share links
  • Generate test IDs for a database
  • Create order numbers or codes without confusing characters

How to use

  1. Choose the alphabet and length.
  2. Set how many you need.
  3. Press Generate, then copy or download them.

FAQ

How short can I go safely?

It depends on how many IDs you make. Shorter IDs and smaller alphabets raise the chance of a duplicate; 21 characters is safe for almost anything.

NanoID or UUID?

NanoID is shorter and URL-friendly. UUIDs are a standard many databases and systems expect.