UUID v7 Generator -- Timestamp UUID
Generate UUID v7 identifiers with embedded timestamps. Free online UUID v7 generator that creates sortable, time-ordered unique IDs. Ideal for database primary keys.
Frequently Asked Questions
What is UUID v7?
UUID v7 is a time-ordered UUID that embeds a Unix millisecond timestamp in the first 48 bits. The remaining bits are random. This makes v7 UUIDs naturally sortable by creation time while remaining globally unique. UUID v7 is defined in RFC 9562.
Why use UUID v7 instead of v4?
UUID v7 is preferred for database primary keys because its timestamp ordering maintains B-tree index locality, resulting in significantly better insert performance. It also allows extracting the creation timestamp from the UUID itself.
Can I extract the timestamp from a UUID v7?
Yes. The first 48 bits of a UUID v7 contain the Unix timestamp in milliseconds. This tool shows the extracted timestamp alongside each generated UUID, converting it to a human-readable date and time.
Is UUID v7 as unique as v4?
UUID v7 has 74 random bits (vs 122 in v4), but the timestamp component adds uniqueness through time ordering. The probability of collision is extremely low for UUIDs generated at different milliseconds, and the random bits handle same-millisecond generation.