This UUID generator creates random version 4 UUIDs, from one to 500 at a time, ready to paste into code, a database or a spreadsheet. You can switch to uppercase, remove hyphens, or wrap each value in quotes with commas for use in a list. The UUIDs are generated in your browser with its secure random number generator, and nothing is sent or stored.
How to use the UUID generator
- Enter How many UUIDs you need, from 1 to 500.
- Tick Uppercase if your system expects capital letters.
- Tick No hyphens for a compact 32-character form.
- Tick Wrap in quotes and commas to get a list you can paste into an array or an SQL
IN (…)clause. - Click Copy to copy them all, or Regenerate for a fresh batch.
How it works
A UUID (universally unique identifier) is a 128-bit number written as 32 hexadecimal digits in five groups: 8-4-4-4-12. Version 4 UUIDs are random. Of the 128 bits, 6 are fixed: four mark the version (the first digit of the third group is always 4) and two mark the variant (the first digit of the fourth group is always 8, 9, a or b). The other 122 bits are random.
The tool calls crypto.randomUUID(), which modern browsers provide. In older browsers it falls back to crypto.getRandomValues() and sets the version and variant bits itself. Both use a cryptographically secure source, not Math.random(), which is predictable and should never be used for IDs.
With 122 random bits there are about 5.3 × 1036 possible values. You would need to generate around a billion UUIDs per second for about 86 years before the chance of a single duplicate reached one half.
Example
With a count of 3 and Wrap in quotes and commas ticked, the output looks like this (your values will differ, because they are random):
"3f2b8c1e-9a4d-4f7b-b2e1-6c0d5a7e9f13",
"a1c94e07-5b3f-4d2a-8e6c-0f7b2d9a4c51",
"e8d03b6a-2c7f-4a91-9d45-b1e6f0c3a782"
Notice the 4 at the start of each third group and the 8, 9, a or b at the start of each fourth group. With No hyphens and Uppercase, the first one would read 3F2B8C1E9A4D4F7BB2E16C0D5A7E9F13.
UUID formats at a glance
| Format | Length | Typical use |
|---|---|---|
| Lowercase with hyphens | 36 | The standard form (RFC 9562); most APIs and databases |
| Uppercase with hyphens | 36 | Windows GUIDs, some .NET and SQL Server tools |
| No hyphens | 32 | Compact keys, filenames, URL slugs |
| Quoted with commas | 38 + comma | Pasting into JSON arrays, code or SQL lists |
UUIDs are compared case-insensitively by the standard, but some systems store them as plain strings. Pick one style and keep it. If you need a random secret rather than an identifier, use our password generator instead.
If you generate UUIDs inside an application, call the same functions this page uses: crypto.randomUUID() in browsers and Node.js, uuid.uuid4() in Python, or gen_random_uuid() in PostgreSQL. Use this page when you need a handful of values for test data, fixtures, config files or a one-off database insert.
Frequently asked questions
Can two generated UUIDs ever be the same?
In theory yes, in practice no. With 122 random bits the odds of a collision are so small that you can treat version 4 UUIDs as unique.
Are UUIDs safe to use as secret tokens?
They are hard to guess when generated securely, as here, but they were designed as identifiers. For passwords, API keys or reset tokens, use a dedicated secret generator.
What is the difference between a UUID and a GUID?
They are the same thing. GUID is Microsoft’s name for a UUID, often shown in uppercase and sometimes inside curly braces.
Should I use version 4 or version 7?
Version 4 is fully random. Version 7 starts with a timestamp, so values sort by creation time, which can help database index performance. This tool creates version 4.
Are the UUIDs saved or sent anywhere?
No. They are created in your browser and disappear when you leave the page.
