UUID Generator
Published Updated
Generate 1 to 50 random version 4 UUIDs with your browser's crypto.randomUUID, in lowercase or uppercase, with or without hyphens and curly braces.
Version 4 only, straight from the browser
Every UUID here comes from crypto.randomUUID, the browser's built-in generator, which returns a 36-character version 4 UUID drawn from a cryptographic random source. The tool asks for up to 50 at a time and then reformats them the way you choose.
A version 4 UUID is 128 bits. RFC 9562, which replaced RFC 4122 in 2024, fixes 6 of those bits to mark the version and variant and leaves 122 random. That is why the generator needs no clock, no network card address and no coordination between machines.
The three switches
The same UUID in each format the switches produce:
| Switches on | Result | Length |
|---|---|---|
| Hyphens (the default) | 36b8f84d-df4e-4d49-b662-bcde71a8764f | 36 |
| Hyphens, Uppercase | 36B8F84D-DF4E-4D49-B662-BCDE71A8764F | 36 |
| Hyphens, Braces | {36b8f84d-df4e-4d49-b662-bcde71a8764f} | 38 |
| None (hyphens off) | 36b8f84ddf4e4d49b662bcde71a8764f | 32 |
The 8-4-4-4-12 hyphen layout is the text form RFC 9562 defines. The 32-character form without hyphens is common in storage and URLs but is not a form the RFC describes, so check that the receiving system accepts it.
100,000 UUIDs from this page, checked
We opened this tool in Google Chrome 156, Chromium 153 (Playwright build, not Google Chrome), Firefox 155 and Playwright's WebKit build (not the Safari app), set the quantity to 50 and pressed Generate UUIDs 2,000 times in each (two runs in Chromium 153), reading every UUID back off the page. For comparison, Node 22.23.1 made 1,000,000 with crypto.randomUUID, the method the page calls.
| Engine | UUIDs | Version digit 4 | Variant digit 8, 9, a or b | Repeats | Hex digits pooled: chi-square, 15 degrees of freedom | 30 digit positions together: p | Time per press of 50 |
|---|---|---|---|---|---|---|---|
| Chrome 156 | 100,000 | 100,000 of 100,000 | 100,000 of 100,000 | 0 | 13.2 (p = 0.5839) | 0.4567 | 5.6 ms |
| Chromium 153 | 100,000 | 100,000 of 100,000 | 100,000 of 100,000 | 0 | 9.7 (p = 0.8357) | 0.0324 | 5.6 ms |
| Chromium 153, second run | 100,000 | 100,000 of 100,000 | 100,000 of 100,000 | 0 | 17 (p = 0.3173) | 0.4384 | 5.5 ms |
| Firefox 155 | 100,000 | 100,000 of 100,000 | 100,000 of 100,000 | 0 | 6.6 (p = 0.9674) | 0.2663 | 9.4 ms |
| WebKit build | 100,000 | 100,000 of 100,000 | 100,000 of 100,000 | 0 | 9.6 (p = 0.8419) | 0.3583 | 9.3 ms |
| Node 22.23.1, crypto.randomUUID | 1,000,000 | 1,000,000 of 1,000,000 | 1,000,000 of 1,000,000 | 0 | 17.7 (p = 0.2795) | 0.7141 | - |
The version digit (the first of the third group) and the variant digit (the first of the fourth group) were right in every UUID, and no UUID came twice. For the 30 hex digits that are random, each value from 0 to f appeared about equally often. One position in the first Chromium 153 run stood out (p = 0.0001; the 30 positions together p = 0.0324), so we ran Chromium 153 again: the second 100,000 showed nothing unusual (smallest single p 0.026, together p = 0.4384). With 150 position tests in the first five runs (four browsers and Node), a p-value that small turns up by chance about 1.5% of the time, so it is reported here, not read as a fault. Every one of the 122 random bits was 1 in 49.52% to 50.49% of the UUIDs in every run. A chi-square test can only fail to find a bias; it does not prove randomness, so the page relies on the browser's generator for that.
Each press of Generate made 50 UUIDs and redrew the list in 5.6 to 9.4 ms on average.
Where the version and variant bits sit
The W3C Web Cryptography API draft (Editor's Draft of 22 October 2026, section 10.1.2) describes randomUUID in four steps: 16 bytes are filled "with cryptographically secure random bytes", the top four bits of byte 6 are set to 0100 (version 4), the top two bits of byte 8 to 10 (the variant), and the bytes are written out as lowercase hex with hyphens. RFC 9562, section 5.4, gives the same layout: the version field "set to 0b0100 (4)" and "122 bits total" of random data.
| Position in the text | Bits | What it holds | In our test |
|---|---|---|---|
| Hex digits 1 to 12 (groups 1 and 2) | 0 to 47 | Random | Each value 0 to f about equally often |
| Hex digit 13 (first of group 3) | 48 to 51 | Version, set to 4 | 4 in every UUID |
| Hex digits 14 to 16 | 52 to 63 | Random | Each value about equally often |
| Hex digit 17 (first of group 4) | 64 to 67 | Two variant bits (10) and two random bits | 8, 9, a and b, each about a quarter |
| Hex digits 18 to 32 | 68 to 127 | Random | Each value about equally often |
RFC 9562, section 4, says of the text form: "the alphabetic characters may be all uppercase, all lowercase, or mixed case". The page's Uppercase switch only changes that case; the version and variant digits stay where they are.
Making a batch of UUIDs
Step 1
Set the quantity
Type any number from 1 to 50. Values outside that range are pulled back to the nearest limit.
Step 2
Choose the format
Uppercase, braces and hyphens are applied at the moment you generate, so set them before pressing the button.
Step 3
Generate and copy
Each UUID has its own copy button, and Copy All gives the whole batch with one UUID per line.
When another ID fits better
Version 4 is a common default for naming records across systems. These cases call for something else:
- IDs that should sort by creation time, such as database keys: ULID Generator, with a 48-bit millisecond timestamp first.
- Shorter IDs for URLs: Nano ID Generator.
- Secrets that grant access: Password Generator, since the RFC forbids using UUIDs that way.
UUID questions
Can two of these UUIDs ever collide?
In theory yes, but the odds are tiny. A version 4 UUID carries 122 random bits, about 5.3 x 10^36 possible values. You would need roughly 2.7 x 10^18 of them before the chance of a single repeat reached one in two; for a million UUIDs the chance is about 1 in 10^25. In our test, 500,000 UUIDs from this page in four browsers and 1,000,000 in Node 22.23.1 held no repeat.
Uppercase or lowercase?
Both are valid: RFC 9562, section 4, says "the alphabetic characters may be all uppercase, all lowercase, or mixed case". crypto.randomUUID returns lowercase, so keep that unless the system you paste into expects capitals, because a plain text comparison treats A and a as different.
Is a GUID the same thing?
Yes. GUID is the name Microsoft uses for the same 128-bit identifier. The RFC notes that some implementations, Microsoft's and Python's among them, print it inside curly braces, which is what the braces switch adds.
How can I tell that a UUID is version 4?
Check the first character of the third group, which is always 4, and the first character of the fourth group, which is 8, 9, a or b. In 36b8f84d-df4e-4d49-b662-bcde71a8764f those are 4 and b.
Are version 4 UUIDs good database keys?
They work, but each new value lands at a random spot in the index. RFC 9562 (section 2.1) says that versions that are not time ordered, "such as UUIDv4", "have poor database-index locality", and section 6.11 describes versions 6 and 7 as designed to sort as raw bytes for uses such as database indexes. This tool only makes version 4.
Can I use a UUID as a secret link or API key?
No. RFC 9562, section 8, says implementations "SHOULD NOT assume that UUIDs are hard to guess" and that UUIDs "MUST NOT be used as security capabilities (identifiers whose mere possession grants access)". Use them to name things, and generate secrets with a password or token generator.
Why did the list not change when I ticked Uppercase?
The switches are applied at the moment you press Generate UUIDs. Flipping all three switches after generating left the UUID on screen as it was in all four browser engines; pressing Generate again gave the new format, with a fresh UUID.
Why does the quantity box jump back to 1 or 50?
It corrects the value as you type. In all four engines, an empty box and 0 or -3 became 1, 51 became 50, and 2.5 became 3. Type the number you want directly; there is no separate check when you press the button.
What does Copy All put on the clipboard?
The UUIDs as shown, one per line, joined by a line break with none after the last. In Chrome 156 and Chromium 153 we read the clipboard back after Copy All: 50 lines, the same as the list. In Firefox 155 and the WebKit build our test could not check it, because its simulated click does not count as a user action for the clipboard.
How many UUIDs can I make at once?
Up to 50 per press of Generate UUIDs. A press of 50 took 5.6 to 9.4 ms on average in the four browser engines, so 100,000 UUIDs took 2,000 presses. Copy All then copies the 50 on screen.