UUID Generator: Create Version 4 UUIDs One at a Time or in Bulk

Generating...
Version 4 UUID, freshly generated in your browser

Generate UUIDs in bulk

Your batch of UUIDs will appear here.

Every code is made in your browser, from random values produced by your browser and, for the time based versions, the current time. Nothing is sent to a server, so the UUIDs you generate here are yours alone.

UUID validator

What Is a UUID?

A UUID is a code of 32 letters and digits, shown in five groups with hyphens between them, that labels something so it can be told apart from everything else. UUID stands for Universally Unique Identifier. This page makes version 4 UUIDs, which are built from random values rather than from a place in a list.

You can make one code at a time in the panel above, or create a whole batch at once for testing and data work. This uuid generator is part of the free utilities here at AI Holic, and you can reach the rest of them from the AI Holic homepage.

The Parts of a UUID

Every UUID has 36 characters in total. Thirty two of them are hexadecimal digits, meaning each one is a number from 0 to 9 or a letter from a to f. The other four are hyphens that split the code into groups of 8, 4, 4, 4 and 12.

Two positions inside the code are fixed by the rules rather than chosen at random. The first character of the third group shows the version, and in version 4 it is always the digit 4. The first character of the fourth group shows the variant, and it is always 8, 9, a or b in the standard layout.

GroupCharactersWhat it holds in version 4
18Random digits
24Random digits
34Starts with 4, the version marker, then random digits
44Starts with 8, 9, a or b, the variant marker, then random digits
512Random digits

Those two markers are why software can look at any UUID and tell how it was made. A code whose third group starts with 1 was built from the time and the machine that made it. A code whose third group starts with 4, like every code on this page, was built from randomness.

UUID Versions Compared

Version 4 is the most widely used, but it is one of several versions set out in the standards. The original standard, RFC 4122, dates from 2005. A newer standard, RFC 9562, arrived in 2024 and added versions 6, 7 and 8 for systems that need codes in time order.

VersionHow it is builtWhere it is used
1Time plus the address of the machine that made itOlder systems that want time based codes
3A name hashed with MD5Repeatable codes made from names, older method
4Random valuesThe general default for new records and apps
5A name hashed with SHA-1Repeatable codes made from names
6Time in a smoother order than version 1Newer database keys that sort by time
7Unix time plus random valuesModern database keys that sort by creation time

This generator makes version 4 because it needs nothing about you or your machine. There is no clock reading and no device address inside the code. That makes it the safest default choice for most projects.

How Likely Is a Duplicate UUID?

Out of the 128 bits in a version 4 UUID, 122 bits are random, and the other 6 are the fixed version and variant markers. That leaves more than 5 × 10^36 possible codes. The number is so large that guessing or clashing is not a practical concern.

Chance only starts to matter after an enormous number of codes. You would need to generate about 2.7 quintillion version 4 UUIDs before the odds of even one duplicate reached 50 percent. At a billion codes per second, that would take roughly 85 years of non-stop generation.

This is why big systems happily let many servers create IDs at the same time without coordinating. The risk that two of them pick the same code is far smaller than the risk of a server failing. A duplicate in a real database almost always traces back to a software fault, not to chance.

How to Use This UUID Generator

  1. Copy the UUID shown in the dark box, or press the Generate New button for a fresh one.
  2. For a batch, type how many codes you need, from 1 to 100.
  3. Choose uppercase letters if your system expects them, and turn hyphens off only if your system asks for that format.
  4. Press Generate Bulk and the list appears in the text box, one code per line.
  5. Use the Copy All button to take the whole list to your file or database tool.

Where UUIDs Are Used

Databases and Records

Many databases give every row a UUID instead of a plain counting number. This works well when records are created on more than one server, because each server can make its own IDs without asking a central list. The records can later be merged with very little risk of two rows sharing the same ID.

Software, Sessions and Files

Apps and websites use UUIDs to label user sessions, uploaded files, orders and background jobs. A random ID is hard for anyone to guess, which makes it safer than a short counting number in a web address. Developers also use batches of UUIDs as sample data while they build and test new features.

UUIDs and Other ID Systems

The plain alternative is a counting number, where each new record takes the next value in line. Counting numbers are short and easy to read, but anyone can guess the next one, and several servers cannot hand them out at once without a central list. UUIDs trade a little length for freedom from that coordination.

Two newer systems sit between the two extremes. A ULID is a 26 character code that starts with the time, so a list of ULIDs sorts in the order they were made. A Nano ID is a short random string, often 21 characters, that web apps use when a full UUID looks too long in an address bar.

None of these systems is best for everything. Counting numbers suit a single small database, and ULIDs suit feeds that must stay in time order. Version 4 UUIDs remain the safe default when records are made in many places and merged later.

How Version 4 Randomness Works

A version 4 UUID has 122 bits that come from a random source, and the rest of the code is fixed pattern that marks the version. Your browser has a built in random number maker designed for security work, and this page uses it for every code. Because the random part is so large, two people generating codes at the same moment still end up with different results.

The format is easy to spot once you know it. The third group always starts with the digit 4, which is the version marker. The fourth group starts with 8, 9, a or b, which marks the standard layout the code follows.

For a change of pace from developer tools, our discount calculator works out sale prices and savings from a percent off. Both tools are free and run on your own device.

UUID Generator FAQs

Are UUIDs really unique?

No system can promise that a duplicate is impossible, but version 4 gives you so many possible codes that a clash is not a realistic worry. In practice, databases and apps treat UUIDs as unique and rely on them every day. If two codes ever did match, it would almost always point to faulty software rather than bad luck.

What is the difference between a UUID and a GUID?

They are the same idea with two names. GUID stands for Globally Unique Identifier and is the term Microsoft uses in its products and documents. A GUID made to the same rules works in the same way as any other UUID.

Can a UUID be traced back to a person?

A version 4 UUID holds no personal data at all. It does not contain your name, your device details or the time it was made, because every part of it is random. A website could still record a UUID next to an account in its own database, but the code itself tells an outsider nothing about you.

Which version does this generator make?

This page makes version 4 only, which is the most common choice for new systems. Version 4 needs no central register and no information about your machine. That keeps it simple and private at the same time.

How can I tell if a UUID is valid?

Count the digits first, because a standard UUID has 32 of them, plus four hyphens that fall after the 8th, 12th, 16th and 20th digits. Every digit must be 0 to 9 or a letter from a to f. In a version 4 code, the 13th digit is always 4 and the 17th digit is 8, 9, a or b.

Can I generate a UUID with no hyphens or in uppercase?

Yes. The bulk panel on this page has both options, and they change only how the codes look, not how unique they are. Some databases store UUIDs without hyphens, and some older systems expect uppercase letters, so the batch tool formats the list the way your system needs it.

Can I use these UUIDs in real projects?

Yes. Codes made here follow the same standard format that databases and programming tools expect. Many developers generate test and production IDs with tools like this one, then store them as text in their database.

Is anything I generate stored or sent anywhere?

No. The codes are created inside your browser and are gone when you close the page. There is no account, no upload and no record kept on our side.

Conclusion

A good ID is one you never have to think about twice. Version 4 UUIDs give every record, file and session a label that is random, private and practically impossible to repeat. Generate one code or a full batch above, paste it into your project, and move on to the work that matters.

Building a test page that needs a canonical? Generate a clean tag with the Canonical Tag Generator.

If your configs use unique IDs, check the file first with our YAML Validator so a bad indent never breaks a deploy.