ULID Generator
HG-09Click Generate to make ULIDs: 26-character identifiers that start with the time, so they sort in the order they were created. Make up to 1000 at once.
Runs in your browser. Nothing is uploaded.
Not used. Press Generate.
ULIDs
How to use it
- Choose how many you need under How many, from 1 to 1000.
- Click Generate. Click again for a new set.
- Tick lowercase if your system stores ULIDs in lowercase.
- Copy the list, or download it as a .txt file with one ULID per line.
How a ULID is built
A ULID is 128 bits written as 26 characters of Crockford Base32. The first 10 characters are the time in milliseconds since 1970. The last 16 are 80 random bits from your browser's secure random generator. Crockford Base32 leaves out the letters I, L, O and U, so ULIDs are easier to read and type. Because the time comes first, sorting ULIDs as plain text sorts them by creation time.
Order within the same millisecond
Many ULIDs can be made in one millisecond. To keep them in order, the tool follows the ULID specification: when the time has not changed, the random part is increased by one instead of redrawn. A batch of 1000 therefore sorts in the order it was created, and so does a second click in the same millisecond. If the clock goes backward, the tool keeps using the latest time it has seen so the order never reverses.
What a ULID is not
A ULID shows when it was created, so avoid it where that should be private. It is an identifier, not a secret: do not use it as a password or a token. ULIDs are generated in your browser and are not stored or sent anywhere. The tool makes ULIDs only; it does not decode them back to a date, and it does not convert them to UUIDs.
Questions people ask
How do I generate a ULID online?
Choose how many you want and click Generate. A list of ULIDs appears, one per line. Copy it or download it as a .txt file, and click again for new ones. Every ULID is created in your browser from secure random numbers.
What is the difference between a ULID and a UUID?
Both are 128 bits. A ULID is written as 26 characters of Crockford Base32 and starts with a timestamp, so it sorts by creation time. A classic version 4 UUID is random and written as 36 characters. UUID version 7 is time-ordered too, in the usual UUID format.
Are ULIDs sortable?
Yes. The first 10 characters are the time in milliseconds, so sorting ULIDs as plain text puts them in creation order. Within one millisecond the tool counts the random part up by one, so ULIDs made together stay in order as well.
Why do ULIDs not contain the letters I, L, O or U?
ULIDs use Crockford Base32, which drops those four letters. I and L look like 1, O looks like 0, and U is left out to avoid accidental rude words. That makes ULIDs easier to read aloud, copy by eye and type.
Can two ULIDs be the same?
It is extremely unlikely. A ULID has 80 random bits per millisecond, and this tool increments the random part within a millisecond, so ULIDs from one page do not repeat. Two separate systems making ULIDs in the same millisecond could still collide, though the odds are very low.
Does a ULID reveal when it was created?
Yes. The first 10 characters encode the creation time in milliseconds, and anyone can decode them. That is useful for sorting and debugging, but avoid ULIDs where the creation time of a record should stay private.
About this tool
A ULID is 26 characters in Crockford Base32: 10 for the time in milliseconds and 16 for 80 random bits taken from crypto.getRandomValues. Because the time comes first, ULIDs sort in the order they were made. When several are made in the same millisecond, the random part counts up by one so the order still holds. A ULID shows when it was created, so do not use one where that is private, and it is an identifier, not a secret. ULIDs are generated in your browser and never stored or sent.