UUID Validator
DataValidate any UUID (v1–v5) instantly — checks the 8-4-4-4-12 hexadecimal format and identifies the version. Free, client-side, no sign-up required.
What is a UUID?
A UUID Validator checks whether a string is a correctly formatted UUID (Universally Unique Identifier) according to the RFC 4122 standard. A UUID is a 128-bit identifier expressed as 32 hexadecimal digits arranged in the pattern 8-4-4-4-12 — for example, 550e8400-e29b-41d4-a716-446655440000. UUIDs appear throughout software development as database primary keys, API request identifiers, session tokens, file names, and anywhere a unique identifier needs to be generated without central coordination.
The RFC 4122 standard defines five UUID versions. Version 1 is time-based and encodes the current timestamp and MAC address. Version 2 is used in DCE security systems. Versions 3 and 5 generate deterministic UUIDs from a namespace and name using MD5 or SHA-1 hashing respectively. Version 4 — by far the most common — uses random or pseudo-random bits, making collisions statistically negligible. Each version encodes its number at a specific position in the UUID string (the 13th hex digit), which is how this validator detects and reports the version.
Beyond format, the RFC 4122 standard also specifies a variant byte at position 19 in the UUID string. RFC 4122-compliant UUIDs use a variant byte of 8, 9, a, or b. Older NCS compatibility UUIDs and Microsoft COM/GUID UUIDs use different variant bytes. This validator checks all three layers: correct hexadecimal characters, correct 8-4-4-4-12 structure, valid version (1–5), and RFC 4122 variant byte.
If you are working with API responses and want to verify that IDs are well-formed, you can also use the URL Validator and Email Validator to check other common identifier formats.
How to use this UUID calculator
- Copy the UUID string you want to check — from a database record, API response, log file, or form input.
- Paste it into the UUID input field on this page.
- The validator runs instantly — no button press needed.
- Check the Valid / Invalid badge below the input.
- If valid, read the details breakdown: format confirmation, version name, and variant.
- If invalid, read the error message — it specifies the exact problem (wrong length, bad characters, unrecognised version, or invalid variant byte).
- Fix the UUID in your source and re-paste to re-validate.
Formula & Methodology
A UUID is validated against this regular expression (case-insensitive):/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/iBreaking this down: -[0-9a-f]{8}— 8 hexadecimal characters (first group) --[0-9a-f]{4}— hyphen + 4 hex chars (second group) --[1-5][0-9a-f]{3}— hyphen + version digit (1–5) + 3 hex chars (third group) --[89ab][0-9a-f]{3}— hyphen + RFC 4122 variant byte (8/9/a/b) + 3 hex chars (fourth group) --[0-9a-f]{12}— hyphen + 12 hex chars (fifth group) Valid example:550e8400-e29b-41d4-a716-446655440000— UUID v1, 36 characters, RFC 4122 variant. Invalid example:550e8400-e29b-61d4-a716-446655440000— fails because position 14 is6, which is not a valid UUID version (valid range: 1–5). Version is read from character at index 14 (0-based) of the UUID string. Version labels: v1 = time-based, v2 = DCE security, v3 = namespace/MD5, v4 = random, v5 = namespace/SHA-1.