All tools › Text, Fonts & Symbols › Generators
Make random version 4 UUIDs or check the layout, version and variant of one you paste in.
Make random version 4 UUIDs, or check one you already have
This UUID generator creates version 4 UUIDs: 128-bit identifiers written as 32 hex digits, used as database keys, file names and request IDs when a program needs an ID without asking a central server for the next number. You can make 1 to 100 at a time.
The second mode checks a UUID you paste in: whether the layout is valid, and which version and variant digits it carries.
How to use the UUID generator
- Leave What to do on “Generate version 4 UUIDs”.
- Enter How many UUIDs, from 1 to 100.
- Pick the Letter case, whether you want Hyphens, and whether to wrap each value in Braces.
- Leave Seed empty and press Generate. Copy one row, or use the top Copy button for the whole list, one UUID per line.
- To check a value instead, switch What to do to “Check a UUID”, paste it into UUID to check and press the button again.
How a version 4 UUID is built
A UUID is 16 bytes. Written as text, those bytes become 32 hex digits in five groups:
xxxxxxxx-xxxx-Mxxx-Nxxx-xxxxxxxxxxxx (8-4-4-4-12)
- M is the version digit, the first digit of the third group. For version 4 it is always 4.
- N is the variant digit, the first digit of the fourth group. For UUIDs that follow RFC 9562 (the standard that replaced RFC 4122) it is 8, 9, a or b.
- Every other digit is random. That leaves 122 random bits out of 128.
The tool draws 16 random bytes, then overwrites the top four bits of byte 6 with the version and the top two bits of byte 8 with the variant. With no seed, the bytes come from your browser’s cryptographic random source when it has one, and from its ordinary random function otherwise.
Worked example
Settings: How many UUIDs = 3, lowercase, with hyphens, no braces, Seed = 7. The list reads:
| Row | Value |
|---|---|
| UUID 1 | 781034ef-8f19-4ccb-9afd-187c5c6e4c1c |
| UUID 2 | 4f977d7f-220b-47bd-8fa7-d1a69fda2fa3 |
| UUID 3 | daf4c3be-256c-4c08-b4b3-5c8e833e1881 |
The third groups (4ccb, 47bd, 4c08) all start with 4, and the fourth groups start with 9, 8 and b. With one UUID, uppercase, no hyphens and braces, the same seed gives {781034EF8F194CCB9AFD187C5C6E4C1C}, and the Format row reads “Uppercase, no hyphens, braces, 34 characters each”.
A seed is there for tests and demos, where you want the same IDs on every run. Anyone who knows the seed can reproduce them, so leave it empty for real work.
Reading the check result
Paste F81D4FAE-7DEC-11D0-A765-00A0C91E6BF6 into the checker and it answers “Valid UUID” with these rows: Standard form f81d4fae-7dec-11d0-a765-00a0c91e6bf6, Version digit “1 (time-based, Gregorian clock)”, Variant digit “a: the RFC 9562 / RFC 4122 layout”, and Version 4 (random) UUID “No”. Remove the last character and the answer becomes “Not a valid UUID” with the reason “It has 31 hex digits; a UUID has exactly 32”.
| Variant digit | What the checker reports |
|---|---|
| 0 to 7 | Reserved (NCS backward compatibility) |
| 8, 9, a, b | The RFC 9562 / RFC 4122 layout |
| c, d | Reserved (Microsoft backward compatibility) |
| e, f | Reserved for future definition |
The version digit only has a defined meaning for the second row. RFC 9562 lists versions 1 to 8: 1 and 6 are built from a clock, 3 and 5 from a name, 4 is random, 7 starts with a Unix timestamp and 8 is for custom layouts. The all-zero value is the Nil UUID and the all-f value the Max UUID.
What this tool does not do
- It makes version 4 only. It does not build time-based (1, 6, 7) or name-based (3, 5) UUIDs.
- The checker looks at layout only. It cannot tell whether a UUID exists in any system.
- A version 4 UUID is very unlikely to repeat, but that is a matter of odds, not a promise. Keep a unique constraint in your database as well.
- A UUID is an identifier, not a secret. Do not use one as a password or as the only protection on a private link.
Which format should I pick?
Lowercase with hyphens is the standard text form. The no-hyphen form saves four characters in a file name or a compact column. All the formats describe the same 128 bits, and the checker accepts every one of them, plus the urn:uuid: prefix.
Frequently asked questions
Is a GUID the same thing as a UUID?
Yes. GUID is the name Microsoft uses for the same 128-bit identifier. The text layout is the same.
Does upper or lower case matter?
Not to the value. The hex letters a to f mean the same in either case, so comparisons should ignore case. Some systems store UUIDs as text, though, so stay consistent inside one project.
Why do all my UUIDs have a 4 in the same place?
That digit is the version marker. Every version 4 UUID carries a 4 as the first digit of the third group.
Can two people get the same UUID from this page?
With the same seed, yes, by design. With no seed it is extremely unlikely, because each value holds 122 random bits.
Related calculators
- Password Generator for random strings that are meant to stay secret.
- Slug Generator for readable URL parts made from a title.
- Hex Calculator for arithmetic on hexadecimal numbers.
- Random Number Generator for plain whole numbers in a range.
