Cryptographically secure random source
Cryptographically secure random source (Web Crypto API).
500+ fast, free tools. Most run in your browser only; Image & PDF tools upload files to the backend when you run them.
Generate secure, URL-friendly unique string IDs with customizable alphabet and length using the Nano ID standard.
The Nano ID Generator creates compact, secure, URL-friendly unique identifiers following the Nano ID specification — a modern alternative to UUID designed for use in URLs, tokens, and short unique codes. Nano IDs default to 21 characters using a URL-safe alphabet (A-Za-z0-9_-), providing ~126 bits of entropy, but both the alphabet and length are fully configurable. You can use numeric-only alphabets for PIN codes, lowercase-only for readable slugs, or custom character sets for domain-specific needs. The generator uses a cryptographically secure random source (Web Crypto API) just like the popular nanoid npm package.
Cryptographically secure random source (Web Crypto API).
Fully configurable length and alphabet for any ID format.
Shorter than UUID (21 chars vs 36) for the same entropy level.
Preset alphabets for URL-safe, numeric, and custom use cases.
Smaller code footprint than UUID libraries — the algorithm is roughly 130 lines, ideal for tight bundle budgets.
Available in over 20 languages with bit-identical output, so client and server can produce interchangeable IDs.
Input: Length: 21, Alphabet: A-Za-z0-9_-
Output: V1StGXR8_Z5jdHi6B-myT
Input: Length: 6, Alphabet: 0123456789
Output: 738241
Input: Length: 8, Alphabet: abcdefghijklmnopqrstuvwxyz
Output: kqpzwxnv
Input: Length: 10, Alphabet: bcdfghjklmnpqrstvwxyz0123456789
Output: k7z3p9n2qm