Skip to content
BEAD

NanoID Generator

Short, URL-safe random IDs with custom alphabets and collision probability estimates.

Collision probability across 1,000,000,000 IDs: < 1 in 10^18 (≈ 126.0 bits)
ZWCewBeInUJSRgiBrT9U9
eb0wGWK7D5Wg_mfFOxLvN
BAdYXd5d7i4iC3G1XfXr9
ioSYI5wWRuF6xx37gYVc0
-8sver5FLqtWr7Dhm-Bhs

What is NanoID?

A short, URL-safe random ID. The default alphabet has 64 symbols (A-Za-z0-9_-) and the default length is 21 — that's ≈126 bits of entropy, comparable to a UUIDv4 in less space and without dashes.

Picking a length

Use the collision-probability estimate to size the ID for your volume. For 1 billion IDs at the default alphabet, 21 characters keeps collision risk below one in a trillion.

You might also like