Bulk UUID v4 and v7 with formats, plus a UUID inspector
Nano ID Generator
Make short IDs for URLs, invite codes or database keys and know how many you can create before a repeat becomes likely.
Loading tool…
How to use nano id generator
Pick an alphabet, or type your own characters.
Set the length and how many IDs you need.
Add a prefix such as usr_ if you like.
Check the collision odds, then copy or download the IDs.
What this tool does
- Uses crypto.getRandomValues with masking and rejection, so every character is equally likely.
- Presets for the Nano ID default, alphanumeric, lowercase, hex, digits and a no look-alikes set.
- Custom alphabets of 2 to 256 characters, emoji included.
- Shows entropy in bits and how many IDs give a 1% chance of a repeat.
How the result is verified
Every batch is checked: each ID must have exactly the chosen length, contain only your alphabet's characters, and appear only once.
Frequently asked questions
Is a 21-character Nano ID as unique as a UUID?
Yes, slightly more. 21 characters from 64 symbols give 126 bits of randomness, against 122 for a UUID v4, in a shorter, URL-safe string.
Why not just use Math.random?
Math.random is not designed to be unpredictable, and the usual modulo trick makes some characters more common than others. This tool uses the secure random source and throws away out-of-range values so the odds stay even.
Is my data uploaded to a server?
No. Everything you drop, paste or type is processed by code running in this browser tab. You can check it yourself: open your browser's developer tools, watch the Network panel, and use the tool. No request carries your data.
Related tools
MD5, SHA-1, SHA-256, SHA-384, SHA-512 and HMAC for text or files
RFC 4648, Base32hex and Crockford Base32 in both directions
Build and sign HS256, HS384 and HS512 tokens from your own claims