UUID Generator
Generate cryptographically random UUID v4 identifiers — one or a whole batch — in any format, and validate any UUID's version and variant.
Randomness comes from your system's cryptographic RNG — not Math.random().
Paste any identifier — braces and missing hyphens are accepted.
How it works
A UUID v4 is 128 bits written as 32 hex digits in 8-4-4-4-12 groups. The generator fills a 16-byte array with crypto.getRandomValues(), then forces the version digit (13th hex digit) to 4 and the two most significant bits of the 17th hex digit to 10 (the RFC 4122 variant). That leaves 122 truly random bits — enough that you could generate a billion IDs per second for a century and still not expect a collision. The validator strips braces and hyphens, checks the 32-hex-digit shape, then reads the version digit and the variant bits back out. Everything runs on your device; nothing is uploaded.
Frequently asked questions
What is a UUID version 4?
A UUID (universally unique identifier) is a 128-bit label written as 32 hexadecimal digits in 8-4-4-4-12 groups. Version 4 means all but 6 of the bits are random — the version digit is forced to 4 and two bits mark the RFC 4122 variant. With 122 random bits, accidental collisions are practically impossible.
Why does this generator use crypto.getRandomValues?
A UUID is only as unique as the randomness behind it. This page fills its 122 bits from your system's cryptographic random number generator (the same source HTTPS encryption uses), not from a predictable pseudo-random sequence. For database keys, request IDs or session tokens, that distinction matters.
Which format should I pick: hyphens, braces, uppercase?
The canonical form is lowercase with hyphens: xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx. Databases and most APIs expect exactly that. Braces are a Windows/.NET convention. Uppercase works anywhere lowercase does. Changing options here re-formats your existing IDs without regenerating them.
Are generated IDs sent anywhere?
No. Generation and validation run entirely in JavaScript on your device; nothing leaves your browser.