How to use the Nano ID Generator
- The page starts in Nano ID mode with the default 21 URL-safe characters.
- Pick a shorter or longer length and an alphabet — for codes people type, choose “No look-alikes”.
- Enter how many IDs you create per hour to see the time until a 1% chance of a duplicate.
- Copy or download the IDs.
How Nano ID picks characters
Each character is drawn from the alphabet with crypto.getRandomValues. To keep every character equally likely, random bytes are masked to the next power of two and values outside the alphabet are thrown away — the same approach as the nanoid library — instead of using modulo, which would favor some characters.
The collision estimate uses the birthday bound: with an alphabet of A characters and length L there are AL possible IDs, and a 1% chance of a duplicate appears after about √(0.02 · AL) IDs. For sortable IDs, see the ULID Generator.
Also searched as: nanoid generator, nanoid online, short id generator, url safe id generator, nanoid collision, custom alphabet id generator, random id generator.
Tools that pair well with the Nano ID Generator
- Password Generator — Create strong, truly random passwords or easy-to-type passphrases — with advanced rules: include or exclude words, require characters, choose allowed symbols, avoid repeats and sequences.
- Random Number Generator — Generate random numbers (with or without duplicates), pick winners from a list, shuffle names, split groups into teams, flip coins and roll dice — using your browser’s cryptographically secure randomness.
- Slug Generator — Convert any title into a clean, lowercase URL slug — with proper transliteration of accents, umlauts and Cyrillic, optional stop-word removal and a bulk mode for whole lists.
- Hash Generator — Compute MD5 and SHA hashes of any text or file instantly, create HMAC signatures, and paste an expected checksum to verify a download.