RandomKeygen

Local-only · Unbiased Web Crypto

NanoID Generator

Compact, URL-safe unique string IDs — 21 characters by default deliver 126 bits of entropy (stronger than UUID v4's 122 bits) using unbiased rejection sampling.

NanoID

0weak 40ok 64strong 80128+ bits
Strong · 126 bitsCalculating…
Click a value to copy · R regenerates
Entropy126 bits21 chars × 6.00 bits/char
Alphabet size64 charsA-Za-z0-9_- (URL-safe)
1% collision @ 1,000 IDs/sec~41.2M yearsBirthday bound estimate

Collision Probability Calculator

Adjust your generation speed to see how long before a 1% collision probability is reached.

Calculating…

Use it in code

One block, pick your stack — live-synced to your current length, alphabet, and first NanoID.