UUID generator

Make random version 4 UUIDs or time-ordered version 7 UUIDs, one at a time or up to 1,000 at once.

FreeNo sign-upRuns on your device

Loading the tool…

How to use it

  1. Choose v4 for fully random IDs, or v7 for IDs that sort by time.
  2. Set how many you need, up to 1,000.
  3. Choose upper or lower case and whether to keep the hyphens.
  4. Press Generate, then copy them all or download a .txt file.

v4 or v7

A UUID is a 128-bit ID written as 32 hex digits in five groups, like 3f2b8c1e-9a4d-4f6e-b1c2-7d8e9f0a1b2c. Version 4 is almost entirely random: 122 random bits. The chance of two matching is so small you can ignore it, even across billions of IDs.

Version 7, from the RFC 9562 standard published in 2024, starts with the current time in milliseconds, followed by random bits. IDs made later sort after IDs made earlier. Databases like that, because new rows land at the end of the index instead of in random places, which keeps inserts fast. Use v7 for database keys, and v4 when you don't want the ID to show when it was made.

How these are made

v4 IDs come from your browser's crypto.randomUUID, which uses the operating system's secure random source. v7 IDs are built to the RFC 9562 layout: 48 bits of Unix time in milliseconds, the version number 7, a 12-bit counter, the variant bits, and 62 random bits. The counter goes up for IDs made in the same millisecond, so a batch of 1,000 still comes out in order.

Anyone can read the creation time back out of a v7 UUID. That's harmless for most uses, but don't use v7 in public links if the time something was made is private.

Hyphens are part of the standard format, but some systems store UUIDs as 32 hex digits without them. Untick Hyphens for that. Upper and lower case mean the same thing; lower case is the standard form.

Privacy

The IDs are generated on your device and never sent anywhere. We don't keep a list, so each one is yours alone.

Questions

Can two UUIDs ever be the same?

In theory yes, in practice no. With 122 random bits you would need to make about a billion v4 UUIDs every second for decades to have a real chance of one repeat.

Is a GUID the same as a UUID?

Yes. GUID is Microsoft's name for the same 128-bit format. Windows tools often show them in upper case, which you can choose here.

Should I use UUID v7 for my database?

It is a good default for primary keys, because the IDs sort by time and keep inserts fast. PostgreSQL 18 added a built-in uuidv7() function for the same reason.

Can I use a UUID as a password or secret token?

A v4 UUID has 122 random bits, which is strong, but it is better to use a purpose-made token. A v7 UUID has fewer random bits and shows its creation time, so don't use it as a secret.