Nano ID Generator Online

Generate URL-safe, collision-resistant Nano IDs with a custom size and alphabet, right in your browser.

The Nano ID Generator runs entirely in your browser. Every id is generated locally using the Web Crypto API and nothing is uploaded to ArrayKit.

Open the UUID Generator

About Nano ID Generator

The Nano ID Generator creates short, URL-safe, collision-resistant unique identifiers using the same rejection-sampling algorithm as the popular nanoid library. It defaults to a 21-character id drawn from a 64-character url-safe alphabet, giving you roughly the same collision resistance as a UUID in about a third of the length. You can dial the size up or down, generate a batch of ids at once, and swap in your own custom alphabet — for example digits only, or a case-insensitive set for ids read aloud over the phone. It is useful for database keys, session tokens, short link slugs, and any place a UUID feels too long. Everything runs locally in your browser, so no id ever touches a server before you decide to use it.

Features

How to use the Nano ID Generator

  1. Set the id size (21 by default) and how many ids you need
  2. Optionally replace the alphabet with your own character set
  3. Click Generate to draw fresh ids from your browser's crypto RNG
  4. Copy the list, or click Generate again for a new batch

Example

Input

size = 21

Output

V1StGXR8_Z5jdHi6B-myT

A 21-character Nano ID drawn from the default 64-character url-safe alphabet.

Common errors & troubleshooting

Frequently asked questions

What is a Nano ID?
A Nano ID is a short, URL-safe, random unique identifier, typically 21 characters long, generated with cryptographically secure randomness. It offers similar collision resistance to a UUID in a much shorter string.
How is a Nano ID different from a UUID?
A UUID is a fixed 36-character format with a defined structure (version, variant bits). A Nano ID has no fixed structure — you choose the size and alphabet — and is shorter while remaining just as safe against collisions at its default settings.
Can the Nano ID Generator use a custom alphabet?
Yes. Replace the alphabet field with any set of unique characters — for example digits only, hex characters, or a case-insensitive set — and the generator will draw ids exclusively from that set.
Does the Nano ID Generator upload the ids I create?
No. Every Nano ID is generated locally using your browser's cryptographic random number generator. Nothing is sent to a server, so the ids you create are only ever visible on your device.
Is the Nano ID Generator's output biased toward certain characters?
No. It uses unbiased rejection sampling, discarding random bytes that fall outside the alphabet's range instead of reducing them with modulo, so every character in the alphabet has an equal chance of appearing.
What size should I pick for a Nano ID?
The default of 21 characters is a safe general-purpose choice. Shorter ids (10-14 characters) work well for short link slugs with lower volume; longer ids suit high-volume systems that need stronger collision resistance.

Related tools

All ArrayKit tools