Nano ID Generator

Generate short, URL-safe Nano IDs with an alphabet and size you control. Presets or your own characters, bulk output, a live entropy estimate, and secure crypto randomness.

This Nano ID generator makes short, URL-safe identifiers with a size and alphabet you control. Pick a preset like hex or alphanumeric, or type your own character set, then generate nanoid values one at a time or in bulk. Every character is drawn from crypto.getRandomValues with rejection sampling, so there’s no bias toward any part of the alphabet. It’s a short id generator that runs in your browser, with the same output shape as a nano id online library but nothing sent over the network.

~126 bits of entropy

How it works

  1. 1

    Choose an alphabet

    Start from a preset or type your own characters. Duplicates are removed automatically.

  2. 2

    Set size and count

    Pick how many characters each ID has and how many IDs to generate at once.

  3. 3

    Copy your IDs

    The entropy estimate updates live; copy a single ID or the whole batch when you’re happy.

Instant & 100% private — nothing is uploaded

Everything runs locally in your browser. Your code, text and files are processed on your own device and are never sent to a server — so there are no upload waits, no size limits from us, and nothing is ever stored or logged.

Frequently asked questions

What is a Nano ID?
A compact, URL-safe unique string. It’s shorter than a UUID for the same collision resistance and lets you pick the exact characters, which is why many apps use it for public IDs.
Can I use my own alphabet?
Yes. Type any characters into the alphabet field and every generated ID draws only from that set. That’s the point of a configurable short id generator.
How random are the IDs?
Each character comes from crypto.getRandomValues with a mask-and-reject step, so the distribution is even across your alphabet with no modulo bias.
What does the entropy number mean?
It estimates how many random bits each ID carries, from the size and alphabet length. More bits means a smaller chance of two IDs ever colliding.
Is this the same output as the nanoid library?
It follows the same algorithm, so with the default URL-safe alphabet and size 21 you get IDs of the same shape a nano id online package would produce, generated locally.