Default Nano ID
The standard configuration uses a 64-symbol URL-safe alphabet and 21 characters, yielding roughly 126 random bits.
Generate secure Nano IDs with the current URL-safe default alphabet or your own alphabet and size. Create large batches locally, inspect entropy and collision exposure, add safe public-ID prefixes, and copy implementation-ready Nano ID code.
Nano ID collision risk behaves like other random identifiers: the birthday effect matters before the entire space is exhausted. Use the simulator for sizing, but still enforce a unique index and retry on conflict in persistent systems.
The standard configuration uses a 64-symbol URL-safe alphabet and 21 characters, yielding roughly 126 random bits.
Nano ID supports custom alphabets of up to 256 symbols. OneFreePlace removes duplicate symbols before generation and applies the same mask/rejection principle.
Prefixes such as usr_ or team_ improve readability. They do not add random entropy; the Nano ID portion still determines collision resistance.
Random IDs should still sit behind a unique constraint. If an insertion conflicts, generate a fresh ID and retry.
The generator uses browser Web Crypto rather than Math.random(). Output is created locally and is never uploaded.
The default alphabet matches the current Nano ID 6 compression-optimized URL alphabet; custom mode follows the documented 1–256-symbol safety limit.