About the UUID Generator
The UUID Generator creates random version 4 UUIDs, the 36-character identifiers used as database keys, request IDs and file names. It also makes time-ordered version 7 UUIDs. Generate up to 1000 at a time, switch to uppercase, no hyphens or braces if your system expects it, and copy or download them.
How it works
A version 4 UUID is 128 bits, of which 122 are random. The remaining six bits are fixed: the first digit of the third group is always 4 (the version), and the first digit of the fourth group is always 8, 9, a or b (the RFC variant). The random bytes come from the browser's crypto.getRandomValues.
A version 7 UUID (RFC 9562) starts with the current Unix time in milliseconds, followed by random bits, so IDs created later sort after earlier ones. That keeps database indexes compact. Nil is the all-zero UUID. Formatting options change only how the IDs are shown: uppercase, without hyphens, or wrapped in braces.
How to use
- 1
Choose Version 4 (random), Version 7 (time-ordered) or Nil.
- 2
Enter how many you want, from 1 to 1000.
- 3
Tick Uppercase, Hyphens or Braces to match the format your system expects.
- 4
Click Generate, then copy one ID, Copy all, or Download the list as a text file.
Worked examples
Seed data for a database
You need three IDs for test rows.
Note the 4 at the start of the third group and the a at the start of the fourth group; those positions mark version 4 and the RFC variant.
GUIDs for a Windows project
A .NET config file uses uppercase GUIDs.
Frequently asked questions
How unique is a generated UUID really?+
With 122 random bits, you would need to generate about 2.7 quintillion UUIDs to have a 50% chance of a single duplicate. For practical purposes, collisions do not happen.
Can I use UUIDs as primary keys in a database?+
Yes, it is a common pattern. They take more space than integers. Random v4 values aren't sorted by creation time, which can slow inserts on very large indexes, so version 7 is the better choice for keys.
What is the difference between a UUID and a GUID?+
They are the same thing. GUID is Microsoft's name for a UUID, and GUIDs are often written in uppercase, which the Uppercase option provides.
Are uppercase and lowercase UUIDs different?+
No. The hex digits are case-insensitive, so both represent the same value. RFC 9562 recommends lowercase output, but systems should accept either.
How can I tell which version a UUID is?+
Look at the first character of the third group: 4 for a version 4 UUID, 7 for version 7.