How to use the UUID generator tool
- Enter how many identifiers you need under UUID count, from 1 to 500.
- Select Generate UUIDs. Select Example to get three at once.
- Read the list in the Result box, one lowercase UUID per line.
- Select Copy to copy the whole list, or select Generate UUIDs again for a fresh set.
What a version 4 UUID is
A UUID is a 128-bit identifier written as 32 hexadecimal digits in five groups of 8, 4, 4, 4 and 12. The format is defined by RFC 9562, which replaced RFC 4122 in 2024. Version 4 fills the value with random bits, then overwrites six of them: four bits record the version and two record the variant. That leaves 122 random bits.
You can recognize a v4 UUID by eye. The first digit of the third group is always 4, and the first digit of the fourth group is 8, 9, a or b.
How this UUID generator works
Each identifier comes from crypto.randomUUID, a browser function that uses a cryptographically secure random number generator and sets the version and variant bits for you. No timestamp, MAC address or counter is involved, so a UUID reveals nothing about when or where it was made. The tool calls the function once per requested UUID and joins the results with line breaks.
In the sample run of three below, the third groups start with 4 (419e, 447c, 4ba8) and the fourth groups start with a, a and 9. Your output will differ on every run.
69771faa-13d7-419e-a0d2-1c25646b15f5
b563da3d-abcb-447c-a756-8b7c9b4f2ff6
8f24c957-57fc-4ba8-9977-8fe87a7cbdc3How likely is a collision
With 122 random bits there are about 5.3 x 10^36 possible values. By the birthday bound, you would need to generate roughly 2.7 x 10^18 UUIDs before the chance of a single duplicate reaches 50 percent. At one billion per second that takes about 86 years.
When to use v4 and when not to
Version 4 is the default choice when an ID only has to be unique. It is not always the right one.
- Good fit: primary keys created on clients or across services with no central sequence.
- Good fit: idempotency keys, correlation IDs in logs, and file or object names.
- Poor fit: large B-tree indexes with heavy inserts. Random keys scatter writes, while time-ordered version 7 UUIDs keep them close together.
- Poor fit: access tokens. RFC 9562 warns against relying on a UUID alone as a security capability.
Output format and options
Output is the canonical form: lowercase hexadecimal with hyphens. The tool has no options for uppercase, braces, removing hyphens or other UUID versions. UUID count must be a whole number from 1 to 500, and an empty or decimal value returns an error.
Frequently asked questions
Is a GUID the same as a UUID?
Yes. GUID is Microsoft's name for the same 128-bit identifier and uses the same 8-4-4-4-12 text layout. A version 4 UUID from this page can be used where a random GUID is expected, though some APIs want it uppercased or wrapped in braces.
Are these UUIDs generated on a server?
No. They are created by your browser through crypto.randomUUID, and the page neither sends nor logs them. Two people using the tool get unrelated values because each browser draws its own random bits.
Can two generated UUIDs ever be identical?
In theory yes, in practice no. Each one has 122 random bits, so a repeat within a batch of 500, or among billions, is vanishingly unlikely. Add a unique constraint in your database if a duplicate would cause harm.
What is the difference between UUID v4 and v7?
Version 4 is entirely random apart from the version and variant bits. Version 7 puts a 48-bit Unix millisecond timestamp first and random bits after it, so values sort by creation time. This tool generates version 4 only.
Can I use a UUID as a database primary key?
Yes, and many systems do. Store it in a native uuid or 16-byte binary column, not as a 36-character string, to save space. Expect more index fragmentation than with sequential keys, because random values land all over the index.