Skip to content
ToolZone

ULID / Nanoid Generator

Generate sortable ULIDs or compact, URL-safe Nanoids in bulk, a modern alternative to UUIDs for database keys and identifiers.

Runs in your browser. Nothing you enter or upload leaves your device.

Keyboard shortcuts

Run the main action
⌘ / Ctrl + Enter
Copy the result
⌘ / Ctrl + Shift + Enter
Download the result
⌘ / Ctrl + S
Paste a file or image into file tools
⌘ / Ctrl + V
Search all tools
⌘ / Ctrl + K
Show these shortcuts
?

You can also drop files anywhere on the page.

About the ULID / Nanoid Generator

The ULID / Nanoid Generator creates two popular alternatives to UUIDs: ULIDs, which start with a timestamp so they sort in creation order, and Nanoids, which are compact random strings safe to use in URLs. Generate a batch, then copy one ID or the whole list.

How it works

A ULID is 26 characters in Crockford's Base32 alphabet, which uses digits and uppercase letters but leaves out I, L, O and U to avoid confusion. The first 10 characters encode the current time in milliseconds since 1970 (48 bits); the remaining 16 characters are random (80 bits), drawn from crypto.getRandomValues.

A Nanoid is a run of random characters from a 64-symbol alphabet: A-Z, a-z, 0-9, underscore and hyphen. Because 64 divides 256 evenly, each random byte maps to a character without bias, giving 6 bits of randomness per character, or 126 bits at the default length of 21.

How to use

  1. 1

    Click ULID or NANOID at the top; the choice and settings are kept in the page link.

  2. 2

    Set How many IDs you want (up to 100).

  3. 3

    For Nanoid, set the ID length (4 to 64, default 21).

  4. 4

    Click Generate, then copy a single ID or use Copy all.

Worked examples

A ULID for a new record

Generating an ID at 12:00:00 UTC on January 15, 2026.

Input
Type: ULID, How many: 1
Result
01KF0RDQG0 followed by 16 random characters, for example 01KF0RDQG0X3M8Q2ZT7VJ4N6HB

01KF0RDQG0 encodes the timestamp 1768478400000 ms. IDs created later will start with a higher value and sort after it.

Short invite codes

You need ten 10-character codes for beta invitations.

Input
Type: NANOID, How many: 10, ID length: 10
Result
Ten codes like V1StGXR8_Z

Each 10-character Nanoid has 60 bits of randomness, enough for invite codes that cannot be guessed easily.

Limitations
ULIDs are not monotonic within the same millisecond: IDs in one batch share a timestamp, and their random parts are not ordered. The Nanoid alphabet is fixed; custom alphabets (for example digits only) are not supported. Batches are limited to 100 IDs.
Assumptions
Your device clock is accurate, since the ULID timestamp comes from it.
Privacy
IDs are generated in your browser with crypto.getRandomValues and are not sent to a server or saved.

Frequently asked questions

What's the advantage of a ULID over a UUID?+

A ULID starts with a timestamp, so IDs made later sort after earlier ones, which keeps database indexes tidy. It is also shorter as text: 26 characters instead of 36.

Why would I choose a Nanoid over a UUID?+

Nanoids are shorter and URL-safe, so they work well in links and anywhere people see IDs. At 21 characters they have about the same collision resistance as a UUID.

Can I get the creation time back from a ULID?+

Yes. Decode the first 10 characters from Crockford Base32 to get milliseconds since January 1, 1970 UTC.

How short can a Nanoid safely be?+

It depends on how many you create. At 10 characters (60 bits), you would need around a billion IDs before a collision becomes likely; for small, short-lived sets such as invite codes, 8 to 12 characters is common.

Are ULIDs case-sensitive?+

No. Crockford Base32 is case-insensitive, and this tool outputs uppercase. Nanoids, however, are case-sensitive.

Related tools