UUID v7 Generator
Generate time-ordered UUID v7 identifiers with embedded millisecond timestamps.
$uuid v7[READY]
0 chars1 lines
Related Tools
FAQ
- What makes UUID v7 different from UUID v4?
- UUID v4 is entirely random and sorts randomly. UUID v7 encodes a Unix millisecond timestamp in its first 48 bits, followed by a version marker and random bits. This makes v7 UUIDs naturally sortable by creation time, which greatly improves database index performance compared to random v4 UUIDs.
- Can I use UUID v7 as a database primary key?
- Yes, UUID v7 is specifically designed for this use case. Because it is time-ordered, it avoids the index fragmentation caused by random UUID v4 inserts. It performs similarly to auto-incrementing integers for sequential inserts while preserving global uniqueness.
- Is UUID v7 an official standard?
- Yes. UUID v7 was standardised in RFC 9562 (published May 2024), which updates the original UUID RFC 4122. It is now part of the official UUID specification alongside v1, v3, v4, and v5.
Generate UUID version 7 identifiers, a modern standard that encodes a Unix millisecond timestamp in the first 48 bits. Unlike UUID v4, v7 UUIDs sort lexicographically in creation order, making them ideal for database primary keys where insertion order matters. The embedded timestamp is extracted and displayed alongside each UUID.