ULID Generator
Generate ULIDs - Universally Unique Lexicographically Sortable Identifiers with timestamp and random components.
ULID Generator tool
Example
Input: Paste 01ARZ3NDEKTSV4RRFFQ69G5FAV into the decoder
Result: Valid ULID - Timestamp: 1469922850259 - 2016-07-30T23:54:10.259Z
The first 10 characters of a ULID encode a millisecond Unix timestamp in Crockford Base32 and the last 16 are random. Generated ULIDs are new random values each time.
- Click "Generate 1" to create a single new ULID with a timestamp encoded from the current moment.
- To generate multiple ULIDs at once, enter a count from 1 to 100 in the Count field and click the "Generate" button showing that number.
- Review the decoded timestamp shown alongside each ULID to verify the embedded creation time.
- Click the copy button next to any ULID, or "Copy All" for the whole list, to use them as database keys or identifiers.
- Paste an existing ULID into the ULID Decoder to check that it is valid and see the date and time it was created.
ULID vs UUID: Sortable Unique IDs Explained
A ULID is a 128-bit unique ID, written as 26 characters like 01ARZ3NDEKTSV4RRFFQ69G5FAV, that sorts by the time it was made. This generator creates one ULID or up to 100 at a time. It shows the timestamp inside each one and decodes any ULID you paste in.
The first 10 characters hold the creation time, in milliseconds since 1970. The last 16 are random. Because the time comes first, sorting ULIDs as plain text also sorts them by age, which a random UUID v4 cannot do. That helps with database keys, log entries and event streams, where new rows can go at the end of an index instead of being scattered through it.
ULIDs use Crockford Base32, an alphabet of digits and capital letters that leaves out I, L, O and U so IDs are hard to misread. They are safe in URLs and shorter than the 36-character UUID format. This tool makes them monotonic. IDs created in the same millisecond still come out in order, because the random part is raised by one instead of drawn again. The random bits come from the secure random number generator in your browser.
The decoder checks that a pasted value has 26 valid characters and shows its timestamp as a number and as an ISO date. It accepts small letters, but not I, L, O or U. Keep in mind that anyone can read the creation time from a ULID, so do not use one where that time should stay private. For fully random IDs, use the UUID Generator. To turn a millisecond timestamp into a local date, try the Unix Timestamp Converter.
Sources
Frequently Asked Questions
Related Tools
UUID Generator
Generate random UUIDs in v4 and v7 formats with bulk generation and one-click copy support.
Developer ToolsHash Generator
Generate MD5, SHA-1, SHA-256, SHA-384, and SHA-512 hashes from text or files right in your browser.
Developer ToolsUnix Timestamp Converter
Convert Unix timestamps to human-readable dates and dates back to Unix timestamps instantly.
Developer Tools