UUID v4 Generator
Generate up to 1,000 random version 4 UUIDs at once, in the format your database or code expects.
How to generate UUIDs
- Enter how many identifiers you need in the How many UUIDs box. You can create anything from 1 to 1,000 at a time.
- Choose lowercase or uppercase letters. Most databases and programming languages expect lowercase, while some Windows tools show capitals.
- Choose a format. "Standard" uses the familiar hyphenated layout, "No hyphens" gives 32 characters in a row, "Braces" wraps each value in curly brackets for Windows GUIDs, and "urn:uuid:" adds the prefix used in some XML and identity systems.
- Press Generate. Use Copy all to paste the list elsewhere, or Download .txt to save one value per line.
Changing the case or format reformats the list you already have, so you do not lose values you have already used.
Worked example
A developer needs five test customer IDs for a database seed file. With the count set to 5 and the standard lowercase format, pressing Generate produced values such as 2872a4ab-e95a-46f9-9d89-5662ec4b687f. Each one is 36 characters long: 32 hexadecimal digits split into groups of 8, 4, 4, 4 and 12. Look at the first digit of the third group. It is always 4, which marks the value as version 4. The first digit of the fourth group is always 8, 9, a or b, which marks the standard variant. Switching the format to Braces and the case to uppercase turned the same kind of list into values like {C89F5744-B9BD-49F0-88E9-957C2F096629}, ready to paste into a Windows registry file. Your own results will differ every time, because they are random.
How it works
A version 4 UUID is made almost entirely of random bits: 122 of its 128 bits are random, and the remaining 6 record the version and variant. This page uses your browser's cryptographically secure random number generator, the same source used for encryption keys, through the built-in crypto.randomUUID function where available. The values are created on your device, shown on screen and never stored or sent anywhere, so nobody else has a copy of the identifiers you generate.
Where UUIDs are useful
Because anyone can create a UUID without asking a central server for the next number, they are ideal when records are created in several places at once, such as mobile apps that work offline, separate microservices or data merged from different branches. They are also handy for file names that must never clash, tracking IDs in analytics events and test fixtures that need realistic keys.
Tips
- Store UUIDs in a native UUID column type if your database has one. It takes 16 bytes instead of 36 characters of text.
- Random UUIDs make poor clustered primary keys in some databases, because new rows land all over the index. Time-ordered identifiers can perform better for very large tables.
- Do not treat a UUID as a secret or a password. It is designed to be unique, not to be hidden.
- Keep one format across a project. Mixing upper and lower case, or hyphenated and plain values, causes failed comparisons in code that matches text exactly.
Frequently asked questions
Can two UUIDs ever be the same?
In theory, yes, but the chance is astronomically small. You would need to generate billions of identifiers every second for many years before a duplicate became likely.
What is the difference between a UUID and a GUID?
They are the same idea. GUID is the name Microsoft uses, and GUIDs are often written in capitals inside curly braces, which the Braces format provides.
Why version 4 rather than version 1?
Version 1 includes the time and a hardware address, which can reveal when and where an ID was made. Version 4 reveals nothing, which makes it the usual default.
Are the IDs saved anywhere?
No. They exist only in this browser tab until you copy or download them. Refreshing the page clears them.