Skip to content
MewixMewix

UUID validator

Drop in a UUID string to confirm lowercase or uppercase hex, correct hyphen positions, version digit 1–5, and variant bits 8, 9, a, or b.

Updated by the Mewix team

Which UUID version is this?

After validation passes, read the third group’s first hex digit: 1 means time-based, 2 DCE security, 3 name-based MD5, 4 random, 5 name-based SHA-1. Mewix accepts any of those versions and rejects 0, 6, 7, or 8 in that slot because the regex only allows [1-5].

The fourth group must start with 8, 9, a, or b (case insensitive)—the RFC variant field. A typo like ...-c0a8-... in that nibble fails even if the rest looks plausible.

Format check, not a database lookup

Valid structure does not mean the ID exists in your datastore. Pair this checker with application logs when you are tracing duplicate keys or malformed imports—nothing is sent off-device.

Are nil or max UUIDs supported?
All-zero UUIDs fail the version nibble rule. Special sentinel values need custom logic outside this validator.