The ULID spec's sample
01ARZ3NDEKTSV4RRFFQ69G5FAV is the example in the ULID spec. 01ARZ3NDEK is the timestamp and TSV4RRFFQ69G5FAV is the random part. Your generated values will differ.
ULID generator for sortable, unique 26-character IDs, one at a time or up to 500.
Updated
Each ULID starts with the current millisecond timestamp encoded in Crockford Base32, so ULIDs generated later always sort after earlier ones.
About
Generates ULIDs, 26-character IDs that start with the current millisecond timestamp and end with 80 random bits, encoded in Crockford Base32 so they sort by creation time.
A ULID is 10 characters of timestamp followed by 16 random characters. Because the time comes first, ULIDs made in different milliseconds sort in creation order as plain text, which keeps database indexes tidier than random UUID v4 keys. One detail matters for batches: this tool doesn't use the spec's optional monotonic mode. ULIDs created in the same millisecond share a timestamp but have unrelated random parts, so a batch made in one click won't necessarily sort in the order it was listed. The timestamp also reveals when each ID was created, and it comes from your device's clock, so a wrong clock gives wrong timestamps.
Examples
3 worked examples
01ARZ3NDEKTSV4RRFFQ69G5FAV is the example in the ULID spec. 01ARZ3NDEK is the timestamp and TSV4RRFFQ69G5FAV is the random part. Your generated values will differ.
With "Lowercase" on, the same ID is written as 01arz3ndektsv4rrffq69g5fav. It's the same value, since ULID decoders ignore case.
Generate one ULID, wait a moment and generate another. The second one's first 10 characters are higher, so it always sorts after the first.
FAQ
Quick answers to common questions about the ULID Generator.
Both hold 128 bits. A ULID puts a millisecond timestamp first and is written as 26 Base32 characters, so it sorts by creation time as plain text. A random UUID v4 is 36 hex characters with hyphens and has no order. UUID v7 also starts with a timestamp, so it's the closest UUID equivalent.
Not reliably. A batch is usually created within a single millisecond, so every ID shares the same timestamp and the random part decides the sort order. The ULID spec describes an optional monotonic mode that fixes this, but this tool doesn't use it. IDs created in different milliseconds always sort correctly.
The random part is unpredictable (80 bits from crypto.getRandomValues), but the first 10 characters reveal exactly when the ID was created. Don't use ULIDs as secret tokens, and avoid them in public URLs if creation times are sensitive.
It's shorter (26 characters instead of 32 hex digits) and leaves out I, L, O and U, so IDs are hard to misread or mistype. ULID decoders treat upper and lower case the same.
Yes. The first 10 characters are the Unix time in milliseconds in Base32. For example, 01ARZ3NDEK in the spec's sample ULID decodes to a date in 2016. This tool only generates ULIDs and doesn't decode them.
Only if they're created in the same millisecond and also get the same 80 random bits. With about 1.2 × 10²⁴ possible random parts per millisecond, that's not a practical concern.
Did ULID Generator work for you?