Nano ID Generator

Generate short, URL-friendly random IDs in bulk, with a length and alphabet you choose, from digits only up to the full URL-safe character set.

Nano ID is a compact identifier format designed for URLs. The alphabet is configurable, so you can trade length against character set to get the shortest id that still fits your system.

Output

                

Paste or type something above.

Questions about nano id generator

What length should I use?
The default 21 characters give about 121 bits of entropy, which is the usual recommendation for a random id.
Which alphabet should I pick?
URL-safe suits links and filenames. Alphanumeric avoids symbols entirely, and digits only suits fixed-width numeric codes.
Are ids from separate calls unique?
Yes. Values are drawn from the system random source, so you do not need to check for collisions first.