ULID Generator & Decoder

Generate ULIDs and decode their timestamps.

The ULID Generator creates ULIDs, which are 26-character identifiers that sort by creation time, and decodes existing ULIDs back to their timestamp. You can make up to 1000 at a time, and keep them in order within the same millisecond with the monotonic option.

What is a ULID?

ULID stands for Universally Unique Lexicographically Sortable Identifier. It is 128 bits written as 26 characters in Crockford Base32, which uses the digits and letters except I, L, O and U. The first 10 characters encode a 48-bit timestamp in milliseconds since the Unix epoch, and the last 16 characters encode 80 bits of randomness. Because the timestamp comes first and the alphabet is in ascending order, sorting ULIDs as strings sorts them by creation time. This makes them friendly as database keys, since new rows land near each other, unlike fully random UUID v4 values. When several ULIDs are created in the same millisecond, the monotonic mode increments the random part by one to keep them strictly ordered.

How to use ULID Generator & Decoder

  1. Choose a mode Select Generate or Decode under Mode.
  2. Generate Set Count (1-1000), choose whether Monotonic is ticked and click Generate. The ULIDs appear under ULIDs.
  3. Decode Switch to Decode and paste a ULID into the ULID field.
  4. Read the result Decode shows Timestamp (ms), ISO date (UTC) and Randomness.

Frequently asked questions

How is a ULID different from a UUID?

A UUID v4 is random with no ordering. A ULID begins with a timestamp, so it sorts by time, and it is written in 26 characters instead of 36.

Are ULIDs unique?

With 80 random bits per millisecond, collisions are extremely unlikely, and monotonic mode avoids collisions within one batch.

Are ULIDs case-sensitive?

No. The canonical form is uppercase, and decoding accepts lowercase.

Can I convert a ULID to a UUID?

Both are 128 bits, so they can be converted. This tool does not offer that conversion.

Does the ULID reveal when it was created?

Yes. The first 10 characters are the creation time in milliseconds, which anyone can decode.

Are the ULIDs generated locally?

Yes. They are made in the page from the browser random source and your clock, and are not sent anywhere.