UUID Generator

Pick version 4 for fully random IDs or version 7 for IDs that sort by the time they were made. They are made on this device from the browser’s secure random source, and nothing is sent anywhere.

How it works

A UUID is a 128-bit number written as 32 hex digits in five groups, like 919108f7-52d1-4320-9bac-f847db4148a8. Two places in it are fixed: one hex digit says which version it is, and two bits say it follows RFC 9562, the standard that defines UUIDs.

Version 4 fills the other 122 bits with random bits. Version 7 puts the current time, in milliseconds since 1970, in the first 48 bits and fills the remaining 74 with random bits. That makes version 7 IDs sort in the order they were made, which keeps database indexes compact.

The random bits come from crypto.getRandomValues, the same source the browser uses for encryption keys, never from Math.random. When many version 7 IDs are made in the same millisecond, the random part of the previous ID is counted up by one, so a bulk list still comes out in order.

How to use it

  1. 1 Choose the Version: v4 (random) or v7 (time-ordered).
  2. 2 Set How many, from 1 to 1,000. Each UUID goes on its own line.
  3. 3 Turn on Uppercase, turn off Hyphens, or turn on Braces {} if the place you are pasting into wants that shape.
  4. 4 Copy the list or download it as a .txt file. Regenerate makes a fresh set.

Good to know

  • For a database primary key, version 7 is usually the better choice: new rows land at the end of the index instead of at random places in it.
  • A version 7 UUID shows roughly when it was made. If that is something you would rather not reveal, use version 4.
  • Hex digits are not case sensitive. Uppercase and lowercase UUIDs are the same value, though a plain string comparison will treat them as different.
  • A UUID is an identifier, not a secret. Do not use one as a password or a session token on its own.

Browser support

  • Chrome 94 and later
  • Firefox 93 and later
  • Safari 16.4 and later
  • Edge 94 and later

These are the oldest versions with everything the tool uses. They are worked out from the tool itself, so they change when it does.

Version numbers checked on 2026-09-04.

Reading a version 7 UUID by hand

A UUID looks like a random blob, but a version 7 UUID carries readable information. RFC 9562, the standard that defines UUIDs, gives this example: 017f22e2-79b0-7cc3-98c4-dc0c0c07398f. Take the hyphens out and you have 32 hex digits, which is 128 bits. Every one of those bits has a job, and we can read them all with nothing more than a calculator.

The first 12 hex digits, 017f22e279b0, are 48 bits of time. As a decimal number that is 1,645,557,742,000. It counts milliseconds since the start of 1970 in UTC, so it is 22 February 2022 at 19:22:22 UTC. That is 2:22:22 in the afternoon in New York, a date the authors of the standard clearly chose on purpose. Because the time comes first, sorting version 7 UUIDs as text also sorts them by when they were made.

The next digit is 7, the first digit of the third group. That is the version, and it is the same in every version 7 UUID. The three digits after it, cc3, are 12 random bits. The fourth group starts with 9, which is 1001 in binary. Its top two bits, 10, are the variant: they say this UUID follows the RFC layout and not one of the older Microsoft or NCS layouts. That is why the first digit of the fourth group is always 8, 9, a or b. The two bits left over in that digit, and the 15 digits after it, are 62 more random bits.

So a version 7 UUID is 48 bits of time, 4 bits of version, 2 bits of variant and 74 random bits. A version 4 UUID keeps the same version and variant positions and makes everything else random, 122 bits in all. How many is enough? The birthday rule says a collision becomes likely long before you have used up the space. For 122 bits, the number of UUIDs at which there is a 1% chance that any two match is about 3.3 × 10^17. If you made a million every second, that would take more than 10,000 years.

Version 7 has fewer random bits, 74, but they only have to be unique within the same millisecond. Two IDs made in different milliseconds already differ in their first 48 bits. This generator goes one step further for bulk lists. When it makes a second ID in the same millisecond, it does not draw fresh random bits; it takes the previous ID’s random part and adds one. RFC 9562 calls this method 2. The result is that a list of 1,000 version 7 UUIDs made in one click is already in sorted order, and each one is still unguessable from outside, because the starting point was random.

The honest limits. A UUID is unique, not secret: version 4 is hard to guess, but nothing about the format promises that, and version 7 openly shows its creation time. Use a real random token for anything that grants access. The clock in a version 7 UUID is your device’s clock, so a computer with the wrong time makes IDs with the wrong time in them. And these are only as random as crypto.getRandomValues, which every modern browser backs with the operating system’s secure random source.

Frequently asked questions

What is the difference between UUID v4 and v7?

Version 4 is 122 random bits. Version 7 starts with a 48-bit timestamp in milliseconds, then 74 random bits. Both are unique in practice. Version 7 also sorts by creation time, which helps databases; version 4 reveals nothing about when it was made.

Can two UUIDs ever be the same?

In theory, yes. In practice, no. With 122 random bits you would need to make about 330 million billion version 4 UUIDs before there is even a 1% chance that two of them match.

Are these UUIDs made on a server?

No. They are made in your browser with crypto.getRandomValues. Nothing is sent anywhere, and the page keeps working with the internet switched off.

What is a GUID?

GUID is Microsoft’s name for the same thing. A GUID is a UUID, often written in uppercase and wrapped in braces, which is what the Uppercase and Braces {} switches are for.

Why is there a 4 or a 7 in the same place in every UUID?

That digit, the first of the third group, is the version. The first digit of the fourth group is always 8, 9, a or b, because its top two bits mark the RFC 9562 variant.

Related tools

Your files are processed on your device and are not uploaded. You can verify this in your browser’s developer tools under the Network tab.