What is UUID v7?
UUID v7 is a next-generation identifier defined in RFC 9562. Unlike the random UUID v4, it embeds a 48-bit Unix timestamp at the beginning. This makes it time-sortable and highly optimized for database performance while maintaining global uniqueness.
Key Advantages
- 🚀 Database Efficiency: Sequential IDs prevent B-tree fragmentation, leading to faster writes in PostgreSQL, MySQL, and SQL Server.
- 📅 Time-Sortable: IDs naturally sort by creation time, eliminating the need for an extra created_at column.
- 🛡️ Privacy-Safe: Unlike UUID v1, v7 does not leak your machine's MAC address.
- 🌐 Distributed Friendly: Generate IDs across multiple servers without risk of collision.
How to Use
- Select Quantity: Choose how many UUIDs to generate.
- Generate: Our server creates standard-compliant IDs using high-precision clocks.
- Copy: Use the one-click button to paste them into your project.
UUID v7: 019c38e8-1c86-7d86-b970-a1d2534a6f22 — we have to look at it through the lens of RFC 9562.
This specific ID encodes a precise moment in time: Thursday, August 7, 2025, at 11:34:55.302 AM UTC.
Character Layout
| Segment |
Hex Value |
Description |
Technical Details |
| Timestamp |
019c38e8-1c86 |
Unix Epoch (ms) |
The first 48 bits. This is the 'sortable' part. |
| Version |
7 |
UUID Version |
Fixed at 7. It tells the system this is a v7 ID. |
| Entropy A |
d86 |
Random/Sub-ms |
12 bits of random data or high-res timing. |
| Variant |
b |
RFC Variant |
Usually 8, 9, a, or b. This defines the layout. |
| Entropy B |
970-a1d2534a6f22 |
Random Fill |
62 bits of cryptographically secure randomness. |
Frequently Asked Questions
v4 is random and 'explodes' database indexes over time. v7 is sequential, keeping your database fast and your storage compact.
Yes. While it contains a timestamp, the remaining bits are cryptographically random. It is unguessable and safe for public APIs.
No. At ToolGK, UUIDs are generated in-memory, sent to you, and immediately purged. We do not log or store any generated IDs.
UUID v7 contains a timestamp. For security tokens or reset links that must remain anonymous, use instead
UUID v4 .