Toolstia / ULID generator
ULID generator
A ULID is a 26 character identifier that sorts by creation time. Make a batch of them here, or paste one to see when it was created.
Read the time inside a ULID
A ULID is 26 characters: 10 for the time in milliseconds and 16 random ones, so IDs sort in the order they were made. Make them one at a time if you need strict ordering within the same millisecond.
How it works
- Choose how many ULIDs you need and press Generate.
- Copy the list.
- To decode one, paste it into the box below and read the timestamp.
What is in a ULID
The first 10 characters are the time in milliseconds since 1970, and the last 16 are random. They use Crockford base 32, which leaves out I, L, O and U to avoid confusion.
Why use them
Unlike random UUIDs, ULIDs made later sort after earlier ones, which keeps database indexes tidy and lets you order records by ID.
Same millisecond
IDs made in the same millisecond share a time part and differ only in the random part, so their order is not guaranteed. Strict ordering needs a monotonic generator in your own code.
Decoding
Paste a ULID to see its creation time in UTC and as a Unix timestamp. Invalid characters and too-large values are reported.
Questions
Is a ULID the same as a UUID?
Both are 128 bits, but a ULID is time ordered and written in 26 characters instead of 36.
Are they unique?
The 80 random bits make a clash extremely unlikely, even for many IDs in one millisecond.
Are the ULIDs sent anywhere?
Everything happens in your browser, and nothing you enter is sent anywhere.