UUID generator

Make random version 4 UUIDs, or version 7 UUIDs that sort in the order you made them. Make up to 1,000 at a time, change the format to match a GUID, then copy the list or save it as a text file. The ids are made in this browser and nothing is sent anywhere.

UUID generator

How to generate a UUID

  1. Choose v4 (random) or v7 (sorts by time).
  2. Type how many you need, from 1 to 1,000.
  3. Tick Uppercase, No hyphens or Wrap in { } if your program expects that form. A new list is made each time you change an option.
  4. Press Copy all, or Download .txt to get a file named uuids.txt.

v4 or v7: which one to pick

A UUID is a 128-bit identifier written as 32 hex digits. Both versions here are defined in RFC 9562. Version 4 is random: 122 of the 128 bits come from the browser's secure random generator, the other six mark the version and the variant. Nothing in it says when it was made.

Version 7 starts with the time. The first 48 bits are the Unix time in milliseconds, so ids made later sort later, even as plain text. That helps a database that keeps rows in key order, because new rows land at the end of the index instead of in random places. The price is that the id shows roughly when it was made. If that matters, use v4.

A UUID is an identifier, not a secret. Do not use one as a password or a token that grants access. For those, use the password generator.

How v7 ordering works, and where it stops

Many ids can be made in one millisecond. A v7 id has 12 bits after the version digit, and this page uses them as a counter that goes up by one for each id in the same millisecond. We made 1,000 v7 ids in one click. They fell into just 2 milliseconds, with 658 of them in one, and sorting them as plain strings gave exactly the creation order. In all 998 neighbouring pairs that shared a millisecond, the counter went up.

The guarantee covers one click. Each click starts its own counter at a random value. In a test that pressed Generate 300 times in a row from a script, 34 of the 299 boundaries between clicks sorted the wrong way, because the two clicks landed in the same millisecond. A person clicking by hand is far slower than that, but if you need strict order across a whole set, make it in one batch.

What we checked in the ids

We generated 1,000 ids of each version and tested every one against the UUID layout. All 2,000 matched. Every v4 id had a 4 in the version position and every v7 id a 7, the variant digit was always 8, 9, a or b, and there were no repeats. Across 20 clicks of 1,000 v4 ids (20,000 in all), all 20,000 were different.

These checks find faults, they do not prove randomness. The bits come from crypto.getRandomValues, and 200 ids made 0 calls to Math.random.

As arithmetic, not a test: with 122 random bits you would need about 2.7 quintillion v4 ids for a 50 percent chance that any two match.

GUID style, hyphens and braces

GUID is Microsoft's name for the same 128-bit value. We tried all eight combinations of Uppercase, No hyphens and Wrap in { } for both versions. The lengths were 36 characters by default, 32 without hyphens, 38 in braces and 34 with both.

Changing an option makes new ids. When we ticked Uppercase after making three, the three new ids were different ones, not the old ones in capitals. Copy the list after you set the options.

Count, copy and download

The count must be a whole number from 1 to 1,000. We typed 0, 1001, -5, an empty box and letters. Each showed a message and left the earlier list in the box. A decimal is cut down: 2.5 made 2 ids and 999.9 made 999. The form 1e2 made 100.

Copy all put exactly the box text on the clipboard. Download .txt saved a file called uuids.txt with the same text, one id per line, line feeds only, and no newline after the last id.

Where your ids go

We opened the page with outside connections blocked, then made 1,000 ids five times and pressed Copy all. The page made 12 requests in total. 2 went to outside scripts (the Google ad script and tag), which we blocked, so we cannot say what they would send. No request carried a body, and localStorage and sessionStorage held no keys.

Other tools

A v7 id holds a Unix time in milliseconds. To read it as a date, take the first 12 hex digits of the id, convert them to a decimal number and paste that into the timestamp converter. To check a file download, use the hash checker.

v4 and v7 side by side

Test runs of the page in headless Chromium 158, 1,000 ids of each version.
v4v7
Version digit4 in all 1,0007 in all 1,000
Variant digit8, 9, a or b8, 9, a or b
Repeats00
Sorts in creation ordernoyes, within one click
Shows when it was madenoyes, to the millisecond
Length by default36 characters36 characters

Prefer desktop software?

PowerShell has [guid]::NewGuid() and most Linux and macOS shells have uuidgen. Both make one id per call and are meant for scripts. We did not test them, so which version and format they return may differ from this page. Python has uuid.uuid4() and Node.js has crypto.randomUUID().

Frequently asked questions

Is a UUID the same as a GUID?

Yes. GUID is the name Microsoft uses for the same 128-bit value. Tick Uppercase and Wrap in { } if the program you use writes GUIDs that way.

Should I use v4 or v7?

Use v4 when the id only has to be unique. Use v7 when ids become database keys and you want new rows to sort after old ones. A v7 id also shows when it was made.

Can two UUIDs be the same?

It is possible but extremely unlikely. With 122 random bits, about 2.7 quintillion v4 ids would give a 50 percent chance of one match. We found no repeats in 20,000 v4 ids.

Do v7 ids sort correctly?

Within one click, yes: 1,000 ids sorted as plain text in the order they were made. Across separate clicks, ids made in the same millisecond can sort the wrong way, so make a whole set in one batch.

Can I use a UUID as a password or API key?

No. A UUID identifies something. A v7 id also contains the time it was made. Use the password generator for secrets.

Does this page upload my ids?

No. The ids are made in your browser. Our network test saw no request that carried a body.