Generators
Generate compact, URL-safe unique IDs with customizable length and alphabet. Smaller than UUIDs, perfect for URLs and database keys.
Length (characters) slider to set the ID length, from 2 to 100. The default is 21.Alphabet field to control which characters the ID may contain.Generate to produce a new ID — it appears in the output box above the buttons.Copy to copy the current ID to your clipboard.Size Comparison stats to see the entropy in bits and how it compares to a UUID v4.Generate 5 to batch-generate five IDs at once, each with its own Copy button.Nano IDs are shorter than UUIDs (21 characters by default) and use URL-safe characters, so they're ideal for shareable links, slugs, and database primary keys.
IDs are generated with crypto.getRandomValues, so they're practically impossible to guess or predict — far safer than Math.random().
Restrict the character set (for example, hex-only or no lookalike characters) and tune the length to meet your exact constraints.
The size comparison panel shows real entropy in bits and how your settings stack up against a UUID v4's 122 bits.
Need several IDs at once? Generate five in a single click and copy each one individually.
Everything runs in your browser. Nothing is uploaded, logged, or sent to a server.
A Nano ID is a compact, URL-friendly unique identifier generated from cryptographically secure random bytes. It's commonly used for database keys, slugs, and shareable links.
Both are unique identifiers, but a Nano ID is shorter (21 characters by default vs. a UUID's 36) and lets you choose the length and alphabet. A UUID v4 has 122 bits of entropy; a default 21-character Nano ID has about 126 bits.
The default alphabet is A–Z, a–z, 0–9, _, and - — 64 characters that are safe to use unencoded in URLs and filenames.
Yes. IDs are generated with the browser's crypto.getRandomValues, a CSPRNG, rather than the predictable Math.random().
Collisions are astronomically unlikely at the default length. The chance depends on your length and alphabet size — the Entropy (bits) stat shows how much randomness each ID carries.
You might need IDs that only use certain characters — for example, hex digits, uppercase letters, or no lookalike characters like 0 and O. Smaller alphabets carry less entropy per character, so you may want to increase the length.
No. Generation happens entirely in your browser using JavaScript. Nothing is sent to, stored on, or logged by any server.