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
Click ULID or NANOID at the top; the choice and settings are kept in the page link.
- 2
Set How many IDs you want (up to 100).
- 3
For Nanoid, set the ID length (4 to 64, default 21).
- 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.
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.
Each 10-character Nanoid has 60 bits of randomness, enough for invite codes that cannot be guessed easily.
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.