Skip to content
ToolZone

UUID Validator

Check whether a given string is a properly formatted UUID and identify which version it is, useful for debugging identifiers in code.

Runs in your browser. Nothing you enter or upload leaves your device.

Keyboard shortcuts

Run the main action
⌘ / Ctrl + Enter
Copy the result
⌘ / Ctrl + Shift + Enter
Download the result
⌘ / Ctrl + S
Paste a file or image into file tools
⌘ / Ctrl + V
Search all tools
⌘ / Ctrl + K
Show these shortcuts
?

You can also drop files anywhere on the page.

About the UUID Validator

This UUID Validator checks whether a string is a well-formed UUID and tells you its version, from v1 to v8, plus the nil and max UUIDs. For time-based versions (v1, v6 and v7) it also decodes the creation time. Paste a whole list to check many at once.

How it works

A UUID is 32 hexadecimal digits written in five groups of 8, 4, 4, 4, and 12 characters separated by hyphens. The first digit of the third group is the version number. The validator trims your input, removes braces or a urn:uuid: prefix, and checks the 8-4-4-4-12 layout.

It then reads the version from the first digit of the third group and the variant from the first digit of the fourth group (8, 9, a or b for standard RFC 9562 UUIDs). For time-based versions it decodes the timestamp: v7 stores milliseconds since 1970 in its first 48 bits, while v1 and v6 count 100-nanosecond intervals since October 1582.

How to use

  1. 1

    Paste one or more UUIDs into the box, one per line.

  2. 2

    Read the result for each line: version, variant note and, where available, creation time.

  3. 3

    If one is invalid, check for missing hyphens, wrong length, or characters outside 0-9 and a-f.

Worked examples

A valid version 4 UUID

Checking a random ID from an API response.

Input
550e8400-e29b-41d4-a716-446655440000
Result
Valid UUID v4

The third group starts with 4 and the fourth group starts with a, a valid variant digit.

A valid version 1 UUID

Checking a time-based ID from an older system.

Input
6ba7b810-9dad-11d1-80b4-00c04fd430c8
Result
Valid UUID v1

The third group starts with 1, which marks a timestamp-based UUID.

Missing a character

An ID was truncated when copied.

Input
550e8400-e29b-41d4-a716-44665544000
Result
Invalid UUID format

The last group has 11 characters instead of 12.

Limitations
It checks format, version and variant only; it can't tell whether a UUID exists in any system. v1 and v6 timestamps are shown to the millisecond, although they store 100-nanosecond precision. Only the first 500 lines are checked.
Assumptions
The UUID uses the standard hyphenated 8-4-4-4-12 form. Leading and trailing spaces are not part of the ID.
Privacy
Validation happens in your browser, and the UUID you enter is not sent or stored anywhere.

Frequently asked questions

What are the different UUID versions?+

Version 1 is timestamp-based, versions 3 and 5 are name-based hashes, version 4 is random, and version 7 is a newer time-ordered format. This validator recognizes versions 1 and 4.

Why would a UUID fail validation?+

Common causes are a wrong length, missing or extra hyphens, characters outside 0-9 and a-f, or stray characters such as quotes copied along with the ID. Braces and urn:uuid: prefixes are accepted.

Does letter case matter?+

No. The check is case-insensitive, so uppercase GUID-style IDs pass as long as the format is correct.

Does a valid result mean the UUID exists in my database?+

No. The validator only checks the format. Whether a record with that ID exists is something only your system can tell you.

Can two random UUIDs ever be the same?+

In theory yes, but a version 4 UUID has 122 random bits, so the chance of a collision is negligible for any realistic number of IDs.

Related tools