UUID Decoder and Validator
Paste a UUID to inspect its version, variant and any encoded timestamp. The decoder processes the value in your browser without sending it to our server.
How to check a UUID
- Enter a UUID, such as
017f22e2-79b0-7cc3-98c4-dc0c0c07398f. - Select Decode. Pasting into the field also triggers the check.
- Review the version, variant and fields available for that version.
The input accepts UUIDs with or without hyphens, enclosing braces, or a urn:uuid: prefix. After those parts are removed, 32 hexadecimal digits must remain.
What each UUID version contains
| Version | Information available | What it cannot establish |
|---|---|---|
| v1 | Timestamp, clock sequence and node identifier | A device’s identity: the node value may be random. |
| v3 | MD5-based version and variant | The original namespace and name cannot be directly decoded. |
| v4 | Version and variant | Creation date, owner or source. |
| v5 | SHA-1-based version and variant | The original namespace and name cannot be directly decoded. |
| v6 | Reordered timestamp, clock sequence and node identifier | Independent proof of a record’s creation time. |
| v7 | Unix-millisecond timestamp and variant | The source’s identity or how the remaining bits were generated. |
To create identifiers, use the UUID generator.
Reading a UUID timestamp
Versions v1 and v6 encode intervals of 100 nanoseconds since 15 October 1582. This is the format’s resolution, not a guarantee of the source clock’s accuracy. The decoder displays the date and time to milliseconds, as well as the original numeric timestamp.
Version v7 encodes milliseconds since 1 January 1970. The example 017f22e2-79b0-7cc3-98c4-dc0c0c07398f contains 22 February 2022 at 19:22:22 UTC. The tool displays dates in your browser’s local time zone, so the hour shown may differ.
Timestamps can come from inaccurate clocks or be set manually. They do not independently prove when a record, file or event was created. UUID v4 has no timestamp.
Version and variant
In the usual notation xxxxxxxx-xxxx-Mxxx-Nxxx-xxxxxxxxxxxx, M indicates the version. N contains the variant bits, which identify the general layout.
The decoder distinguishes the standard RFC 4122 / 9562 variant and the variants reserved for NCS, Microsoft and future use. Recognising these fields describes the declared format; it does not verify the generation process.
What validation checks
The tool checks whether the normalised input contains 32 hexadecimal digits and reports the version and variant. It decodes details for v1, v3, v4, v5, v6 and v7.
A valid format does not establish that a UUID exists in your database, is unique or came from a trusted source. The v4 version digit cannot establish the quality of the random generator used.
Common questions
Can I find out who owns a UUID?
No. A UUID alone does not identify a person or record owner. The node field in v1 and v6 may contain a random value instead of a real MAC address.
Can I recover the original URL from UUID v5?
The URL and namespace cannot be directly decoded. If you have a candidate input, generate v5 with the same namespace and compare the result. A hash does not prevent testing a known or guessed input.
Why does another decoder show a different time?
Check the time zone. This tool displays local browser time; another tool may display UTC. An inaccurate or manually chosen original timestamp can also differ from the actual event time.
Does version 4 mean a UUID is secure?
It indicates a format intended for random UUIDs. The decoder cannot verify the source of randomness or how the ID is used. An identifier must not replace access controls.
Extracting a v7 timestamp in JavaScript
The first 12 hexadecimal digits hold the 48-bit Unix-millisecond timestamp. The example below assumes an already validated v7 UUID. It demonstrates extraction only, rather than all the validation and input formats supported by the tool above.
function getUUIDVersion(uuid) {
const cleaned = uuid.replace(/-/g, '');
return parseInt(cleaned[12], 16);
}
function extractV7Timestamp(uuid) {
const cleaned = uuid.replace(/-/g, '');
const unixMs = parseInt(cleaned.substring(0, 12), 16);
return new Date(unixMs);
}
const uuid = '017f22e2-79b0-7cc3-98c4-dc0c0c07398f';
console.log(getUUIDVersion(uuid)); // 7
console.log(extractV7Timestamp(uuid).toISOString()); // 2022-02-22T19:22:22.000Z