Convert timestamp to UUIDÂ v7
Type or paste your timestamp in milliseconds (13 digits) to convert it to a UUID v7.
How UUID v7 Conversion Works
UUID v7 conversion is a sophisticated process that transforms timestamps into time-sortable, globally unique identifiers following the RFC 9562 specification. The conversion process involves precisely structuring 128 bits of data to create identifiers that are both unique and chronologically ordered.
The Conversion Process
- Timestamp Encoding: The conversion begins by taking a Unix timestamp in milliseconds (the number of milliseconds since January 1, 1970 UTC) and encoding it into the first 48 bits of the UUID. This timestamp provides millisecond precision and ensures that UUIDs generated at different times will naturally sort chronologically.
- Version and Variant Fields: The conversion process then sets the version field (4 bits) to 7 and the variant field (2 bits) to 10 binary, as required by the RFC 9562 specification. These fields ensure the UUID is properly identified as version 7 and follows the standard UUID format.
- Random Data Generation: The remaining 74 bits are filled with cryptographically secure random data, split into two segments: 12 bits of rand_a and 62 bits of rand_b. This randomness ensures uniqueness even when multiple UUIDs are generated within the same millisecond.
- Bit Layout Structure: The conversion follows this precise 128-bit structure:
Bits 0-47:Â Â Â 48-bit Unix timestamp (milliseconds)
Bits 48-51:Â Â 4-bit version field (always 7)
Bits 52-63:Â Â 12-bit random data (rand_a)
Bits 64-65:Â Â 2-bit variant field (always 10 binary)
Bits 66-127: 62-bit random data (rand_b)
Bulk ID generator
You can generate up to 1000 IDs at a time using the Bulk ID Generator. Select the ID version you require by selecting it from the drop-down list.
UUID in a nutshell
Because you might be a little confused about what a UUID actually is.
Version 1
A version 1 UUID is a unique identifier that is generated from a timestamp and the MAC address of the computer, ensuring uniqueness. However, because the MAC address is exposed, it poses potential privacy and security risks.Read more about v1
Version 4
A version 4 UUID is a unique identifier generated from random numbers. This makes it highly unlikely that any two UUIDs will ever be the same. The version 4 UUIDs generated by this site use a secure random number generator for maximum security.Read more about v4
Version 7
A version 7 UUID is a time-ordered UUID that encodes a Unix timestamp with millisecond precision in its most significant 48 bits. It uses 6 bits for version and variant, with the remaining 74 bits randomly generated. The sequential nature of UUIDv7 improves database performance by addressing the index locality issue, unlike the random UUIDv4.