Skip to content
TabKiwiTabKiwi

Nano ID Generator

Generate short, random, URL-safe IDs with your own length, alphabet and prefix, plus a collision estimate.

DeveloperRuns in your browser. Your files never leave this device.
Loading tool…

About this tool

Nano IDs are compact random identifiers that fit neatly in URLs, file names and database keys. Choose the length and alphabet, including a version without characters that are easy to confuse, add a prefix like usr_, and generate up to a thousand at once. The collision panel estimates how long it would take to reach a 1% chance of a duplicate at your expected rate, so you can choose a safe length.

How to use Nano ID Generator

  1. Choose an alphabet or enter your own characters.
  2. Set the length, the number of IDs and an optional prefix.
  3. Press Generate and copy or download the list.
  4. Enter your IDs per hour to check the collision risk.

Frequently asked questions

How does a Nano ID compare to a UUID?

The default 21-character Nano ID carries about the same randomness as a UUID v4 (126 vs 122 bits) but is shorter and uses only URL-safe characters.

Can I make IDs shorter?

Yes, but shorter IDs collide sooner. Use the collision estimate to pick a length that stays safe at your volume.

Are these IDs secure?

They come from the browser's cryptographically secure random generator, so they are unpredictable. They are identifiers, though, and are not a replacement for access control.

More Developer tools

View all 91 →