UUID Generator

Random, time-ordered and name-based UUIDs, and an inspector.

Runs in your browser. Nothing is uploaded.

Updated

UUIDsRuns in your browser
Made in your browser with its secure random numbers. Nothing is sent or saved.

How to use UUID Generator

  1. Choose the version and how many.
  2. Pick the format.
  3. Copy the list, or inspect a UUID.

UUID Generator at a glance

Typical use: Make 100 sortable v7 IDs for test data.

Made with your browser’s secure random numbers.

Which version to choose

  • Version 4: 122 random bits. The usual choice for IDs; the chance of two being the same is negligible.
  • Version 7: starts with the creation time in milliseconds, so new UUIDs sort after older ones. Better as a database key, because inserts stay in order. UUIDs made in the same millisecond still sort correctly.
  • Version 5 and 3: made from a namespace and a name, so the same name always gives the same UUID. Prefer 5 (SHA-1) over 3 (MD5) for new systems.

Reading a UUID

The Inspect tab shows any UUID’s version and variant. For versions 1, 6 and 7, which contain a time, it shows when the UUID was made; for version 1 it also shows the clock sequence and node (often the computer’s network address, which is why v1 can reveal the machine that made it).

UUID Generator example

You need 100 IDs for test data in a table that is sorted by key. Choose Version 7, 100, and copy the list: the IDs are already in order. To give each customer e-mail a stable ID without storing a mapping, choose Version 5 with the URL namespace and paste the addresses, one per line.

Prefer the terminal?

The same in a terminal:

uuidgen

uuidgen (macOS and most Linux) makes a random version 4 UUID. For name-based ones: python3 -c "import uuid; print(uuid.uuid5(uuid.NAMESPACE_DNS, 'example.com'))".

References

Frequently asked questions

Are these UUIDs really unique?

Version 4 and 7 UUIDs come from your browser’s cryptographic random numbers. With 122 random bits (v4), or 62 random bits plus a time and counter (v7), a repeat is so unlikely that it can be ignored in practice.

Is a UUID the same as a GUID?

Yes. GUID is Microsoft’s name; the format is the same. Choose “{braces}” for the style used in Windows and .NET.

Does the page store the UUIDs?

No. They are made in your browser and disappear when you leave the page.

Should I use UUIDs as database keys?

Version 7 works well: it is unique and sorts by time, which keeps indexes efficient. Random version 4 keys spread inserts across the whole index, which is slower on large tables.