- Development
- UUID v7 / ULID
UUID v7 / ULID
Time-ordered IDs
Frequently Asked Questions
What is UUID v7?
UUID v7 is a time-ordered universally unique identifier that includes a Unix timestamp in milliseconds. It provides better database performance than UUID v4 because it's sortable and reduces index fragmentation.
What is ULID?
ULID (Universally Unique Lexicographically Sortable Identifier) is a 128-bit identifier that is sortable by time, case-insensitive, URL-safe, and more compact than UUID. It uses Crockford's base32 encoding.
UUID v7 vs ULID: which to choose?
UUID v7 is better for standard UUID compatibility and database systems expecting UUID format. ULID is better for human readability, URL usage, and when you need case-insensitive identifiers. Both are time-sortable.