NanoID Generator

Generate compact, URL-safe random identifiers.

Tool Panel

Processed locally
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
Programming

Cron Generator

Build crontab schedules visually instead of recalling the field syntax.

Programming
Programming

Gitignore Generator

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

Programming

JWT Generator

Mint signed JSON Web Tokens for testing authentication flows.

Programming
Programming

UUID Generator

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

Programming
Programming

ULID Generator

Generate sortable unique IDs that preserve creation order.

Programming
Programming

Regex Tester

Test and debug regular expressions with live match highlighting.

Programming
Programming

Hash Generator

Compute MD5, SHA-1, SHA-256 and SHA-512 digests of any text.

Programming
Programming

Robots.txt Generator

Build a robots.txt that tells crawlers what to index and what to skip.