UUID v7 Generator — Sortable Time-Based UUID Online
UUID v7 is the modern time-ordered UUID. The first 48 bits are a Unix millisecond timestamp, making UUIDs naturally sortable by creation time — ideal for database primary keys.
Example UUID v7
018f2a3b-4c5d-7e6f-8a9b-0c1d2e3f4a5bGenerate UUID v7
a77339ac-8a59-470a-85fb-9bd8d7daa4abBit breakdown
FAQ
Why is UUID v7 better for database primary keys?
UUID v7's timestamp-first layout means new UUIDs sort after older ones lexicographically. This prevents index fragmentation in B-tree indexes (a major performance issue with random UUID v4 primary keys) and allows efficient range queries by time.
Is UUID v7 an official standard?
Yes — UUID v7 was standardized in RFC 9562 (May 2024), which supersedes RFC 4122. It is now the recommended UUID format for database primary keys and time-ordered identifiers.
How many UUIDs can be generated per millisecond with v7?
UUID v7 includes 74 random bits (after the 48-bit timestamp and 6 version/variant bits). That allows roughly 18 quadrillion unique UUIDs per millisecond — far beyond any practical generation rate.
Need a different UUID version? The full generator supports v1, v4, v5, v7, and ULID.
Open full UUID Generator →