RandomKeygen

Local-only · Crockford Base32

ULID Generator

Universally Unique Lexicographically Sortable Identifiers — 26 URL-safe Crockford Base32 characters combining a 48-bit millisecond timestamp and 80 bits of Web Crypto randomness.

ULID

Click a value to copy · R regenerates
Randomness80 bits random1.21×10²⁴ unique values per millisecond
Time prefix48-bit ms timestamp10 Base32 chars · valid through year 10889
Encoding26 charsMonotonic Crockford Base32 (no I, L, O, U)

Anatomy of a ULID

Your first generated ULID split into timestamp and cryptographic entropy.

The first 10 characters encode the 48-bit Unix millisecond timestamp in Crockford Base32. The trailing 16 characters carry 80 bits of CSPRNG entropy. Crockford's alphabet omits ambiguous characters (I, L, O, U), requires no hyphens, and preserves exact chronological order when sorted as plain ASCII strings.

ULID Timestamp Decoder

Paste any 26-character ULID to extract its exact UTC timestamp and 80-bit random payload.

Enter or load a ULID to decode its creation time

Use it in code

One block, pick your language — live-synced to your first generated ULID.

// npm install ulid
import { ulid, decodeTime } from 'ulid';

const id = ulid();
// → ''

console.log(new Date(decodeTime(id)).toISOString());

ULID vs UUID v7 vs UUID v4 vs NanoID

Choose between compact Base32 strings, RFC 9562 binary UUIDs, or short URL tokens.

IdentifierBest forWatch out
ULIDCompact 26-char URL-safe sortable keys, DynamoDB/NoSQL sort keys, log correlationNot a native SQL UUID type without binary mapping
UUID v7PostgreSQL / MySQL / SQL Server primary keys with native 16-byte UUID columns36 chars with hyphens in text form; 74 random bits vs ULID's 80
UUID v4Opaque IDs where creation time must stay hiddenNon-sequential inserts cause B-tree index fragmentation
NanoIDShort, custom-alphabet public slugs and share links (21 chars default)Not time-ordered by default