ULID Generator

Generate sortable ULIDs, with the time they were made.

Your input

 
0 lines · 0 bytes

What is a ULID?

A ULID (Universally Unique Lexicographically Sortable Identifier) is a 26-character ID. The first 10 characters encode the time in milliseconds, and the last 16 are random. Because time comes first, sorting ULIDs as text puts them in the order they were made.

Each ULID holds 48 bits of time and 80 bits of random data, written in a compact alphabet that avoids confusing letters. Compared with a random UUID, a ULID keeps new database rows together and is shorter as text (26 characters instead of 36). If several are made in the same millisecond, the random part counts up so the order stays correct.

How to use the ULID Generator

  1. Choose how many IDs to make.
  2. Pick uppercase or lowercase letters.
  3. Press the button to generate them.
  4. Copy or download the list.

Real situations

When people use the ULID Generator

  • 1

    Use as database primary keys

    New rows have increasing IDs, so inserts stay together in an index and listings sort by creation time.

  • 2

    Name files or log entries

    A time-ordered ID makes it easy to sort files or events without a separate timestamp column.

  • 3

    Create IDs that are safe in URLs

    They use only letters and digits, so they can appear in links and file names without escaping.

  • 4

    Generate a batch for test data

    Make up to 1,000 at once and download them as a text file.

FAQ

ULID Generator: questions answered

What does a ULID look like?

A string such as 01M8NG9RK5Z4D13MQJBA62XQE5: 26 characters from digits and uppercase letters. The first 10 give the time and the last 16 are random. You can switch the output to lowercase.

ULID or UUID: which is better?

A random UUID v4 has no order, so it scatters database inserts. A ULID starts with the time so new records land together and sort naturally. UUID v7 is a newer standard with the same idea. Choose what your system and libraries support.

Can I get the creation time from a ULID?

Yes, the first 10 characters encode the Unix time in milliseconds. It also means a ULID reveals roughly when it was made, which may matter if you do not want to expose that.

Are ULIDs guaranteed to be unique?

Not absolutely, but the 80 random bits make a clash extremely unlikely, even at large scale. This tool takes its randomness from your browser's secure random number generator.

What happens if two are generated in the same millisecond?

They share the time part, and the random part of each next one is the previous value plus one, so they still sort in generation order. This follows the ULID specification.

Should ULIDs be used as secrets?

No. The time part is predictable and an ID is not a password. Use a long random token for secrets.

Is this ULID Generator free and private?

Yes. It is free with no sign-in, and every calculation runs inside your browser. Nothing you type is sent to a server or stored, and the page keeps working offline once it has loaded.

Private by design. No accounts, no cookies, no tracking. Everything you type stays on your device.

How we keep it that way