NanoID Generator

Generate compact, URL-safe random identifiers.

Tool Panel

Loading tool...
About NanoID Generator

NanoIDs with adjustable length and alphabet, drawn from the browser crypto source — good for short IDs and invite codes.

  • 1

    Defaults to 21 characters over the 62-character `0-9A-Za-z` alphabet: about **125 bits** of entropy, slightly more than a UUIDv4's 122, at a bit over half the length. Randomness comes from `crypto.getRandomValues`, not `Math.random`.

  • 2

    The alphabet is yours to change: drop `0O1lI` to avoid transcription mistakes, or switch to digits and capitals for a serial number — length and character set are both adjustable.

  • 3

    Sampling uses rejection rather than modulo, so the distribution is uniform (the old `byte % 62` left the most and least frequent characters 1900 samples apart over 400k draws; it is now around 400).

Related tools

View all
Cron Generator
Programming

Cron Generator

Build crontab schedules visually instead of recalling the field syntax.

Programming
Gitignore Generator
Programming

Gitignore Generator

Produce a .gitignore suited to your stack instead of copying one from memory.

Programming
JWT Generator
Programming

JWT Generator

Mint signed JSON Web Tokens for testing authentication flows.

Programming
UUID Generator
Programming

UUID Generator

Generate random v4 UUIDs in bulk for fixtures and test data.

Programming
ULID Generator
Programming

ULID Generator

Generate sortable unique IDs that preserve creation order.

Programming
Regex Tester
Programming

Regex Tester

Test and debug regular expressions with live match highlighting.

Programming