Home › Developer Tools › UUID Decoder & Validator

UUID Decoder & Validator

Paste a UUID (or GUID) to check whether it is valid and see what is inside: version, variant, the creation time hidden in v1, v6 and v7 UUIDs, the clock sequence and the node or MAC address. Switch to bulk mode to validate a whole list at once.

Last updated:

Try:
Advertisement
Advertisement

How to use the UUID Decoder & Validator

  1. Paste a UUID into the box. Hyphens, braces and the urn:uuid: prefix are all accepted, in any letter case.
  2. Read the verdict: the badge says whether the value is a valid RFC 9562 UUID and which version it is.
  3. Check the fields: the color-coded layout shows where the timestamp, version, variant, clock sequence and node live.
  4. See the creation time for time-based UUIDs (v1, v6, v7) in UTC and in your local time.
  5. Validate a list: open the Bulk tab, paste one UUID per line and click Check UUIDs, then copy the valid ones or download a CSV report.

UUID layout by version

Every UUID is 128 bits shown as 32 hexadecimal digits in five groups: xxxxxxxx-xxxx-Mxxx-Nxxx-xxxxxxxxxxxx. M is the version digit and the top bits of N are the variant. For RFC 9562 UUIDs N is always 8, 9, a or b.

VersionContentsTimestampExample
160-bit Gregorian time, 14-bit clock sequence, 48-bit node (MAC)Yes, 100 ns since 1582-10-156ba7b810-9dad-11d1-80b4-00c04fd430c8
2DCE Security: like v1 but with a local user/group IDPartial (about 7 minutes)rarely used
3MD5 hash of namespace + nameNo6fa459ea-ee8a-3ca4-894e-db77e160355e
4122 random bitsNo9b2f6c1e-4a7d-4e3b-8c5f-2d1a0b9e7f63
5SHA-1 hash of namespace + nameNo2ed6657d-e927-568b-95e1-2665a8aea6a2
6v1 fields reordered so the value sorts by timeYes, 100 ns since 1582-10-151ec9414c-232a-6b00-b3c8-9f6bdeced846
748-bit Unix milliseconds + 74 random bitsYes, Unix ms017f22e2-79b0-7cc3-98c4-dc0c0c07398f
8Custom, vendor-defined layoutApplication-specificn/a

How the timestamps are decoded

Version 1: the timestamp is split into three fields. Rebuild it as time_hi (the 3 hex digits after the version digit) + time_mid (group 2) + time_low (group 1). For 6ba7b810-9dad-11d1-… that is 1d19dad6ba7b810 hex, a count of 100-nanosecond ticks since 15 October 1582. Subtract 122,192,928,000,000,000 (the ticks between 1582 and 1970) and divide by 10,000 to get Unix milliseconds: 4 February 1998, 22:13:53.151 UTC.

Version 6 stores the same 60-bit value with the most significant bits first, so you read groups 1 and 2 followed by the three digits after the version. Version 7 is simplest: the first 12 hex digits are Unix time in milliseconds, so 017f22e279b0 = 1,645,557,742,000 ms = 22 February 2022, 19:22:22 UTC.

Validation regular expression

To accept any RFC 9562 UUID (versions 1-8, correct variant) in code, a common pattern is:

^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$ (case-insensitive)

Add an alternative for 00000000-0000-0000-0000-000000000000 and ffffffff-ffff-ffff-ffff-ffffffffffff if the Nil and Max UUIDs should pass too. A purely syntactic check such as ^[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}$ also accepts legacy GUIDs with other variants, which this tool reports as "well-formed but not RFC 9562".

Frequently asked questions

How do I know which version a UUID is?

Look at the first hex digit of the third group. In 6ba7b810-9dad-11d1-80b4-00c04fd430c8 the third group is 11d1, so it is a version 1 UUID. A random UUID such as 3f2b8c1e-5a7d-4e3b-9c5f-2d1a0b9e7f63 has a 4 there. The tool reads this automatically.

What makes a UUID valid?

A UUID is 128 bits written as 32 hexadecimal digits, normally in 8-4-4-4-12 groups. To follow RFC 9562 (formerly RFC 4122) the variant bits must be 10 (the first digit of the fourth group is 8, 9, a or b) and the version digit must be 1 to 8. The Nil UUID (all zeros) and Max UUID (all f) are also defined by the standard.

Can I get the creation date from a UUID?

Only for time-based versions. Version 1 and 6 store a 60-bit count of 100-nanosecond intervals since 15 October 1582, and version 7 stores Unix time in milliseconds in its first 48 bits. Versions 3, 4, 5 and 8 contain no standard timestamp.

Does a version 1 UUID reveal my MAC address?

It can. The last 12 hex digits of a v1 UUID are the node field, which older generators filled with the network card's MAC address. Modern libraries often use a random node instead and set the multicast bit to mark it as not a real address; the tool tells you which case applies.

What is the difference between a UUID and a GUID?

GUID is Microsoft's name for the same 128-bit identifier. They share the text format and are interchangeable. Some old Microsoft GUIDs use the reserved Microsoft variant (fourth group starting with c or d), which the decoder labels separately.

Is it safe to paste UUIDs here?

Yes. The decoding runs entirely in JavaScript in your browser. Nothing is sent to a server, so you can check production identifiers without exposing them.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

UUID GeneratorGenerate UUID v4 and v7 / GUIDs in bulk and copy or download them.ULID GeneratorGenerate sortable ULIDs and UUID v7 in bulk, monotonic option, and decode their timestamps.Nano ID GeneratorGenerate secure Nano IDs with custom alphabet, length and count, plus a collision calculator.MongoDB ObjectId to TimestampDecode a MongoDB ObjectId to its creation date, or build ObjectIds from dates for range queries.Password GeneratorCreate strong passwords and passphrases.Hash GeneratorGenerate MD5, SHA-1, SHA-256 and SHA-512 hashes of text or files.MD5 Hash GeneratorGenerate MD5 hashes of text, lines or files and verify checksums.SHA-256 Hash GeneratorSHA-256 and HMAC-SHA256 hashes of text, lines or files, in hex or Base64.Base64 Encoder DecoderEncode or decode Base64 text and files, and make data URIs.URL Encoder DecoderPercent-encode or decode URLs, query strings and form data.HTML Entity Encoder / DecoderEscape and unescape HTML entities, named or numeric.Bcrypt Hash Generator & CheckerCreate bcrypt password hashes and check a password against a hash.Binary TranslatorConvert text to binary, hex, octal and back.HMAC GeneratorGenerate and verify HMAC signatures with SHA-256, SHA-512, SHA-1 or MD5.CRC32 Checksum CalculatorCalculate CRC-32, CRC-32C, CRC-16 and Adler-32 checksums of text or large files.JWT DecoderDecode JSON Web Tokens, read the claims and expiry, and verify HS256 signatures.JWT GeneratorCreate and sign HS256, HS384 or HS512 JSON Web Tokens in your browser and verify them.Password Strength CheckerSee how strong a password really is, how long it takes to crack and how to improve it.Caesar CipherEncode and decode Caesar shift ciphers and crack unknown shifts with a ranked brute force.Vigenère CipherEncrypt and decrypt Vigenère and Autokey ciphers, and crack unknown keys with frequency analysis.Atbash CipherEncode and decode Atbash ciphers (A↔Z, B↔Y) in Latin or Hebrew, with a live letter mapping table.ASCII TableFull ASCII code chart 0–255 in decimal, hex, octal, binary and HTML, with search and copy.Unicode Character LookupFind Unicode characters by name or code point and copy them with UTF-8, HTML and code escapes.Punycode ConverterConvert international domain names, emails and URLs between Unicode and xn-- Punycode, in bulk.JSON Escape / UnescapeEscape text for a JSON string, unescape \n and \" back to text, or stringify a whole object.Binary to HexConvert binary to hex instantly with steps and signed mode.Hex to BinaryConvert hex to binary instantly with steps and signed mode.Binary CalculatorAdd, subtract, multiply, divide, AND, OR, XOR and shift binary numbers with decimal values.Hex CalculatorHexadecimal + − × ÷ and AND, OR, XOR, NOT, shifts with decimal and binary equivalents.Base32 Encoder / DecoderEncode and decode Base32 (RFC 4648), Base32hex, Crockford and z-base-32 from text, hex or files.Base58 Encoder / DecoderEncode and decode Base58 and Base58Check (Bitcoin alphabet) from text or hex, with checksum verification.Unicode Escape / UnescapeConvert text to \uXXXX, \u{...}, \x, &#...; or CSS escapes and decode them back.File Hash CheckerGet MD5, SHA-1, SHA-256 and SHA-512 checksums of files and verify them against a hash.TOTP GeneratorGenerate 2FA one-time codes from a secret key, create otpauth QR codes and verify codes.RSA Key GeneratorGenerate 2048, 3072 or 4096-bit RSA key pairs as PEM, PKCS#1, JWK or OpenSSH, locally.SSL Certificate DecoderDecode PEM SSL/X.509 certificates: subject, issuer, expiry, SANs, key and fingerprints.Text Encryption ToolEncrypt and decrypt text with a password using AES-256-GCM, entirely in your browser.Argon2 Hash GeneratorHash passwords with Argon2id, Argon2i or Argon2d and verify them against an encoded hash.SRI Hash GeneratorCreate Subresource Integrity hashes (sha256/384/512) and ready <script> or <link> tags.SSH Key GeneratorGenerate Ed25519 or RSA SSH key pairs in your browser: OpenSSH public key plus private key.String Escape / UnescapeEscape or unescape strings for JavaScript, Java, C#, Python, C, SQL, regex, CSV and shell.UTF-8 Encoder / DecoderConvert text to UTF-8 bytes in hex, decimal, binary, \x or % and decode bytes back to text.Base64 to FileDecode Base64 or a data URI to a downloadable file; detects the real file type and previews it.File Encryption ToolEncrypt and decrypt any file with a password using AES-256-GCM, entirely in your browser.Passphrase GeneratorMake strong, memorable diceware passphrases from a 7,776-word list, with entropy in bits.CSR DecoderDecode a PEM certificate signing request: subject, SANs, key size, signature and CA readiness checks.Enigma Machine SimulatorEncrypt and decrypt with a virtual Enigma I, M3 or M4: rotors, rings, plugboard and lampboard.Hex Opacity CalculatorConvert opacity percent to a 2-digit HEX alpha code and full #RRGGBBAA color, with a 0-100% table.Playfair CipherEncrypt and decrypt Playfair ciphers from a keyword, with the 5x5 key square and every digraph step.Pwned Password CheckerCheck if a password appeared in data breaches; only 5 characters of its SHA-1 hash are sent.RSA Encryption ToolEncrypt text with an RSA public key and decrypt it with the private key using RSA-OAEP in your browser.SAML DecoderDecode SAMLRequest and SAMLResponse messages to readable XML, attributes and validity times.SSL Certificate ConverterConvert SSL certificates and keys between PEM, DER, PFX/P12 and P7B in your browser.Checksum CalculatorCompute 8-bit sum, two's complement LRC, XOR/BCC, NMEA, Fletcher and Internet checksums of bytes.PBKDF2 Hash GeneratorDerive PBKDF2 keys from a password, salt and iteration count with SHA-1, SHA-256 or SHA-512.Protobuf DecoderDecode raw Protocol Buffers hex or Base64 without a schema, or add a .proto for field names.XML Escape / UnescapeEscape & < > " ' for XML text and attributes, unescape entities back, or wrap text in CDATA.Binary Search Tree VisualizerInsert, delete and find in BST, AVL and red-black trees with animated rotations and traversals.Base64 to PDFDecode a Base64 string to a PDF with preview and download, or encode a PDF to Base64.Bitwise CalculatorCalculate AND, OR, XOR, NOT and bit shifts at 8–64 bits with a bit grid and all bases.CSR GeneratorCreate a certificate signing request (CSR) and private key with SANs, RSA or ECDSA, in your browser.PGP Encrypt / DecryptEncrypt, decrypt, sign and verify PGP messages with your armored keys, entirely offline.PGP Key GeneratorGenerate an OpenPGP key pair (Curve25519, NIST ECC or RSA) with passphrase and expiry, offline.Quoted-Printable Encoder / DecoderEncode or decode quoted-printable email text (MIME) with UTF-8 and 76-character soft line breaks.Self-Signed Certificate GeneratorCreate a self-signed SSL certificate and key for localhost or dev servers, as PEM or PFX.SHA-1 Hash GeneratorSHA-1 and HMAC-SHA1 of text or files in hex or Base64, plus Git blob hashes and verify.SHA-512 Hash GeneratorSHA-512 and SHA-384 hashes of text or files in hex or Base64, HMAC and hash verification.
See all 65 Encoders, Hashes & Crypto →