How to generate a ULID
- A new ULID appears at the top when the page loads. Press Copy, or the arrow for another.
- Drag How many to create up to 1,000, then Copy all or Download.
- Leave Monotonic on so IDs made in the same millisecond still sort in order. Tick Add UUID form to get each ULID's UUID next to it, separated by a tab, ready to paste into a spreadsheet.
- To convert an existing ID, paste a ULID or a UUID into Convert ULID ⇄ UUID.
What a ULID looks like
01JCXQ7Z8K 4W3N5R2T6V9Y0B1D
The first 10 characters are the timestamp, 48 bits of milliseconds since 1970, which lasts until the year 10889. The last 16 characters are 80 random bits. Because the timestamp comes first and Crockford Base32 keeps the alphabet in order, sorting ULIDs as text sorts them by time. The first character is never higher than 7.
ULID vs UUID vs NanoID
| ULID | UUID v7 | UUID v4 | NanoID | |
|---|---|---|---|---|
| Length | 26 | 36 | 36 | 21 (default) |
| Bits | 128 | 128 | 128 | 126 |
| Random bits | 80 | 74 | 122 | 126 |
| Sorts by time | Yes | Yes | No | No |
| URL-safe as is | Yes | Yes | Yes | Yes |
| Standard | Community spec | RFC 9562 | RFC 9562 | Library convention |
Need a standard UUID? The UUID v7 generator gives time-ordered IDs in UUID form. Need the shortest random ID? Use the NanoID generator.
Generate a ULID in code
| Language | Package | Call |
|---|---|---|
| JavaScript / Node.js | ulid | ulid(), or monotonicFactory()() |
| Python | python-ulid | str(ULID()) |
| C# / .NET | Ulid (Cysharp) | Ulid.NewUlid() |
| Go | github.com/oklog/ulid/v2 | ulid.Make() |
| Java | ulid-creator | UlidCreator.getMonotonicUlid() |
| Rust | ulid | Ulid::new() |
Frequently asked questions
A ULID (Universally Unique Lexicographically Sortable Identifier) is a 128-bit ID made of a 48-bit Unix timestamp in milliseconds and 80 random bits, written as 26 characters of Crockford Base32. ULIDs sort by creation time as plain strings and contain only letters and digits.
Without it, two ULIDs made in the same millisecond have random order. In monotonic mode the second one reuses the timestamp and adds 1 to the random part, so a batch is always in generation order. It's on by default here.
Yes. A ULID and a UUID are both 128 bits, so every ULID has an exact UUID form. Use the converter on this page, and store it in a native uuid or binary(16) column. The UUID form won't carry a valid version digit, so tools that check versions may call it non-standard.
Both put a millisecond timestamp first and sort by time. Pick UUID v7 if your database, ORM or API already expects UUIDs. Pick ULID when you want shorter IDs in URLs and logs (26 characters instead of 36) and don't need a standard UUID version.
Crockford Base32 leaves them out so IDs can't be misread: I and L look like 1, O looks like 0, and U is dropped to avoid accidental rude words. When decoding, I and L are read as 1 and O as 0.
Yes. The 80 random bits come from your browser's cryptographically secure generator, crypto.getRandomValues. Nothing is sent to our server.