ULID Generator — Time-Ordered, Lexically Sortable IDs
Generate ULID (Universally Unique Lexicographically Sortable Identifier) strings — 26 characters, 48-bit millisecond timestamp + 80-bit randomness, Crockford Base32. Bulk generate up to 1000. 100% local.
Last updated:
Comments01KY4A82FGHXVKZSKKZT2HXYFC01KY4A82FGHM6GEYDGDCBR89TR01KY4A82FGKBK0KT8CQ0MRA5GR01KY4A82FGEP4EEYW87XBD2QGW01KY4A82FGGAP0ZQGKMZ0KK5XV
Frequently Asked Questions
What is a ULID and how is it different from UUID?
ULID is a 128-bit ID like UUID, but the first 48 bits are a Unix millisecond timestamp. Sorting ULIDs lexicographically also sorts them by creation time — hugely useful as a database primary key (better index locality than UUID v4) or as a filename in time-ordered logs.
Are two ULIDs generated in the same millisecond ordered?
Only if you enforce monotonicity. This tool generates independent 80-bit random parts per call, so two IDs in the same millisecond have unpredictable relative order. In production, use a library (like ulid/monotonic) that bumps the random part when the timestamp doesn't change.
Why Crockford Base32 instead of hex?
Crockford Base32 excludes I / L / O / U to avoid transcription ambiguity, is case-insensitive, and encodes 5 bits per character vs 4 for hex — so 26 characters carry 130 bits of data with room for the timestamp/random split.
Related Tools
UUID Generator
Generate random UUIDs (v4) and time-ordered UUIDs (v7) online. Bulk generate up to 1000 at once and copy with one click.
UUID v7 Generator
Generate UUID v7 identifiers online (RFC 9562). The first 48 bits encode a Unix millisecond timestamp, so v7 UUIDs sort lexicographically by creation time — dramatically better as a database primary key than v4. Bulk generate up to 1000 and inspect the embedded timestamp for each. 100% local.
NanoID
Generate NanoID strings online — 21 characters, URL-safe alphabet (a-Z, 0-9, -, _), same collision safety as UUID v4 in 40% less space. Bulk generate up to 1000 with custom length. 100% local.
CUID2
Generate CUID2 strings online — a modern, secure, collision-resistant ID format designed for horizontal scale and safe use in URLs, cookies, and databases. 100% local, no dependencies.
Snowflake ID
Generate Twitter Snowflake IDs online — 64-bit integers with 41-bit timestamp, 10-bit worker ID, 12-bit sequence. Preview and inspect how Snowflake IDs are structured. 100% local.
KSUID
Generate KSUID strings online — 27-character Base62, 32-bit UTC timestamp + 128-bit randomness. Time-sortable, human-typeable, no delimiters. Designed by Segment for high-volume event streams. 100% local.