What is a UUID validator?
A UUID validator checks whether a string is a valid UUID — a universally unique identifier — and reports its version and variant. The default UUID, 550e8400-e29b-41d4-a716-446655440000, is a valid version 4 UUID with the RFC 4122 variant, which is the kind most systems generate.
UUIDs are the standard way to identify things without a central registry. A database row, a session, an API request, or a file can each get a UUID, and two systems generating UUIDs independently will not collide — the space of possible UUIDs is so large that a collision is effectively impossible.
This tool checks the shape and reads the two embedded fields. It does not check whether the UUID exists anywhere — a UUID is not a lookup key, it is a format — so a valid UUID here means the string is well formed, not that it belongs to anything.
How UUID validation works
A UUID is 32 hex digits in five groups — 8, 4, 4, 4, and 12 digits — separated by dashes. The validator checks that shape exactly: 8 hex digits, a dash, 4 hex digits, a dash, and so on, ending with 12 hex digits. A string with the wrong number of digits, a missing dash, or a character that is not a hex digit fails at once.
The version lives in the first digit of the third group. The default UUID's third group is 41d4, so its first digit is 4, which means version 4 — a random UUID. Version 1 is time-based, version 3 is MD5-based, version 5 is SHA-1-based, and version 7 is time-ordered.
The variant lives in the first digit of the fourth group. The default UUID's fourth group is a716, so its first digit is a, which is in the range 8 to b — the RFC 4122 variant, which is the standard one. A first digit of c or d means the Microsoft variant, e or f means reserved, and 0 to 7 means the old NCS variant.
Versions and variants, explained
Version 4 is the most common UUID: 122 random bits, generated by the system when it is needed. It has no information in it — no time, no machine — which is why it is safe to use as a public identifier. The default UUID is a version 4, as are the UUIDs the UUID generator on this site produces.
Version 1 carries a timestamp and a machine address, which makes it sortable by time but also leaks information: anyone who sees the UUID can read when it was made and on which machine. Version 7 fixes that trade-off by putting the timestamp first in a sortable form, and it is the version new systems are adopting.
The variant is a compatibility marker from the early days of UUIDs, when several systems defined their own layouts. RFC 4122 is the standard variant, and it is the one every modern system uses. A UUID with any other variant is either very old or from a non-standard generator.
Versions are the digit that tells you how the UUID was made, and it sits in a fixed place. The thirteenth hex digit — the first digit of the third group — is the version: 1 means time-based, 3 means MD5-based, 4 means random, and 5 means SHA-1-based. The variant is the next fixed digit: the first digit of the fourth group must be 8, 9, a, or b for the standard variant, which is the one almost every UUID uses. The validator reads both digits and reports them, so a UUID that is well formed but has an unknown version is still flagged.
A worked example: reading a UUID
Take the default UUID: 550e8400-e29b-41d4-a716-446655440000. Count the groups: 8 digits, then 4, then 4, then 4, then 12 — the shape is right, and every character is a hex digit, so the result is "Valid UUID".
Read the version: the third group is 41d4, and its first digit is 4, so the version is 4. Read the variant: the fourth group is a716, and its first digit is a, which sits in the range 8 to b, so the variant is RFC 4122. The report is "Valid UUID, Version 4, RFC 4122 variant."
Try a failure: "not-a-uuid" has the wrong shape and the wrong characters, so the result is "Invalid UUID" with no version and no variant. Try a version 1 UUID — 6ba7b810-9dad-11d1-80b4-00c04fd430c8 — and the report is version 1, RFC 4122 variant, which is the well-known namespace UUID for DNS.
Who uses a UUID validator, and why
Developers are the main users. An API returns an id, a log line contains an id, or a database column holds an id, and the first question is whether it is a well-formed UUID at all. A validator answers that in a second, before the id is used in a query that would fail on a malformed value.
Testers are the second group. A test that creates records needs to check that the ids it gets back are valid UUIDs of the expected version — a version 4 where random ids are expected, or a version 7 where time-ordered ids are expected. The validator names the version, so the test can assert it.
Data engineers are a third group. A pipeline that moves records between systems needs to know whether the ids are UUIDs or something else, because the handling differs. A UUID generator creates new UUIDs when one is needed, while this tool checks the ones that already exist.
Database engineers are a third group. A table that uses UUIDs as primary keys will receive ids from many sources — an API, an import, a migration — and a malformed id can break a join or a lookup in a way that is hard to trace. The validator is the check before the import: paste the id and the result says whether it is a UUID and which version it is. A version 1 id in a table that expects version 4 is a sign that the source changed, and the validator finds it before the import runs.
UUID validator vs UUID generator
A validator checks UUIDs; a generator makes them. The UUID generator on this site produces version 4 UUIDs, one or many at a time, in hyphenated or plain form. This tool takes a UUID you already have and tells you whether it is valid and what kind it is. Version 3 UUIDs are MD5-based and version 5 are SHA-1-based, and a hash generator computes the MD5 and SHA-1 values those versions are built from.
The two tools share the same rules, so a UUID made by the generator always passes the validator. That is a useful cross-check: generate a UUID, paste it here, and the report should read "Valid UUID, Version 4, RFC 4122 variant." If it does not, one of the tools is wrong.
A ULID is the newer time-sortable alternative to UUIDs, which is worth knowing about when a system needs ids that sort by creation time. UUIDs do not sort by time, except for version 7.
A validator is not a generator, and the distinction matters when the goal is to make an id rather than to check one. A generator makes a new UUID, usually version 4, and guarantees it is well formed. A validator checks a UUID you already have and tells you whether it is well formed and which version it is. Use the generator to make an id and the validator to check one that arrived from elsewhere — the two tools do opposite jobs, and the validator cannot fix a bad id, only report it.
Common UUID mistakes
The first mistake is a missing or extra dash. A UUID without dashes — 550e8400e29b41d4a716446655440000 — is 32 hex digits and is a valid representation, but it is not the standard hyphenated form, so this validator reports it as invalid. Add the dashes in the 8-4-4-4-12 positions.
Second: the wrong version digit. A UUID with a third group starting in 3 is a version 3 UUID, not a version 4, and a system that expects version 4 will reject it. The version is part of the contract, not decoration.
Third: uppercase hex digits. Uppercase is allowed — A through F are valid hex digits in either case — but some systems compare UUIDs as strings, and "550E8400" does not equal "550e8400" as a string. Lowercase is the convention; a case converter can lower a UUID pasted in uppercase.
Fourth: assuming a valid UUID exists. A UUID is a format, not a lookup. A well-formed UUID can still be unknown to every system, because it was never registered anywhere. Validity means the shape is right, not that the thing it names is real.
A second mistake is treating a UUID as a secret. A version 4 UUID is random, but it is only 122 bits of randomness, and it is written in plain text wherever it is used — in a URL, in a database, in a log file. Anyone who sees it can use it, so a UUID must never be the only thing protecting a resource. If a link must be private, it needs a real secret behind it, and the UUID is only the identifier, not the password.
How to use this UUID validator
Paste a UUID into the box — the default is 550e8400-e29b-41d4-a716-446655440000, a valid version 4 UUID. The result updates live: valid or invalid, with the version and the variant below it, and a one-line summary in the box underneath.
To check another UUID, replace the text. To make a new one, use the UUID generator, then paste it here to confirm it. To copy the report, use the Copy button next to the output box.
Everything runs in your browser. No sign-up, no account, no data sent anywhere — your UUID never leaves your device. It works offline once the page has loaded.
Paste the UUID and the result appears at once, with the version, the variant, and the validity shown underneath. The result says whether the string is a UUID at all, and if it is, which version it is and whether the variant is standard. To check a UUID from a log file, paste it with any surrounding punctuation removed — the validator checks the string as given, and a trailing comma or bracket will make it fail. When the result says valid, the UUID is safe to use as an identifier.