TinyBenchTools ← All tools

UUID v7 Timestamp Decoder

UUID v7 was designed to be sortable, and the trick is simple: its first 48 bits are the creation time in Unix milliseconds. If your system has moved from v4 to v7, every ID you log now doubles as a timestamp — you just need a decoder that pulls it out.

Decode UUID v7 timestamps

FAQ

Where is the timestamp in a UUID v7?

In the first 48 bits — the first 12 hex characters before the version nibble. Interpreted as a big-endian integer, it is the number of milliseconds since 1970-01-01 UTC.

Can you decode a UUID v4 the same way?

No. A v4 UUID is random; there is no time hidden in it. Any tool that shows a 'date' for a v4 is making it up — ours labels v4 as carrying no timestamp and leaves it out of the results.

What about UUID v1?

v1 also embeds a timestamp (in 100-nanosecond intervals since 1582). The extractor decodes v1 as well and labels it clearly.