Skip to content
OddsockLocal
Local
Source text
Length21
How many1
ReadyRuns in this browser. Nothing is uploaded.

How to use

  1. Set Length. 21 is the start.
  2. Set How many if you need a list.
  3. Copy the IDs. Each line is independent.
  4. Use the UUID generator if a consumer expects the 8-4-4-4-12 shape.

What is Nano ID?

A Nano ID is a random string, not a UUID. The default alphabet is letters, digits, underscore and hyphen, and the default length is 21. One run produced 8Y0MXQQZDNDgihtLt4MWX. Press again and you get a different string. There is no version digit and no timestamp hiding in the front. Nothing about the ID says when it was minted or which generator made it.

Read more

Length and How many are the controls. Length can be shorter if you are stuffing an ID into a place that cannot hold 21 characters, and the collision odds get worse as it shrinks. How many prints one ID per line, up to the page’s cap. The alphabet on this page is the URL-safe set. A custom alphabet is the random-string tool, not this one.

These IDs are generated in the tab. They are fine as opaque keys. They are not a format another system can parse for a time or a machine address. If you need a standard UUID, version 4 or version 7, that is the UUID page.

Use cases

  • A row needs an opaque id and you do not want a UUID’s hyphens or its version nibble.
  • You need ten IDs in one paste, one per line, for fixtures.
  • A URL slug can hold 21 characters of the URL-safe alphabet and should not include plus or slash.
  • You are comparing a Nano ID with a UUID and you want to see that there is no version digit to inspect.

One 21-character ID from a single run

Length 21, how many 1.

8Y0MXQQZDNDgihtLt4MWX

Why use Oddsock

The sample ID is one draw. Refreshing the page will not repeat it, which is the property you are checking.

Related tools

Using this tool

Not by asking twice. That string is one random draw of length 21. A new run uses new random bytes.