← All Tools

NanoID Generator

Generate URL-friendly, cryptographically secure unique IDs. Smaller than UUID, collision-resistant, and fully customizable.

About NanoID

NanoID is a unique string ID generator by Andrey Sitnik. It uses crypto.getRandomValues and a carefully masked rejection-sampling loop to produce uniform output across any alphabet size — avoiding the bias introduced by naive random % n schemes. With the default 21-character alphabet of 64 symbols, each ID packs ~126 bits of entropy — more than UUIDv4 (122 bits) — while being 39% shorter.

Copied!