UUID Generator

Random version 4 UUIDs (GUIDs), generated locally.

What is a UUID?

A UUID is a 128-bit identifier written as 32 hexadecimal digits in five groups, like 123e4567-e89b-42d3-a456-426614174000. Version 4 UUIDs are random, so the chance of two ever matching is negligible. Developers use them as database keys, file names and request IDs.

FAQ

Are these truly random?

They come from your browser’s cryptographically secure generator (crypto.getRandomValues).

UUID or GUID?

Same thing — GUID is the term used in Microsoft environments.

How to generate UUIDs

  1. Type how many identifiers you need in the "How many" box. The tool accepts 1 to 500; a larger number is capped at 500 and an empty or zero value falls back to 1.
  2. Choose the format you want: Uppercase, No hyphens and Braces can be combined freely. The list is regenerated whenever you change a box, so you do not have to press anything.
  3. Press Generate for a fresh batch with the same settings, then Copy all to put the whole list on the clipboard, one UUID per line.

Note that every change of an option creates brand-new values rather than re-formatting the old ones. If you need the same identifier in two formats, copy it first and convert it in your editor.

What is inside a version 4 UUID

A UUID is 128 bits, shown as 32 hexadecimal digits grouped 8-4-4-4-12. In a version 4 UUID most of those bits are random, but two fields are fixed so that software can recognise the type. The first digit of the third group is always 4 (the version), and the first digit of the fourth group is always one of 8, 9, a or b (the variant). That leaves 122 random bits.

Take f47ac10b-58cc-4372-a567-0e02b2c3d479. The third group starts with 4 and the fourth with a, so it is a valid v4 UUID. If you ever see a different digit in those positions, the value came from some other version or generator.

This page asks the browser for crypto.randomUUID() when it exists. In older browsers it falls back to filling 16 bytes with crypto.getRandomValues and then setting the version and variant bits by hand, which produces the same layout. Nothing is sent anywhere, and no list of earlier results is kept.

How likely is a duplicate?

With 122 random bits there are about 5.3 × 1036 possible values. Because of the birthday effect, you would need to generate on the order of 261 (roughly 2.3 × 1018) UUIDs before the chance of any two matching reaches one half. For a table of a few million rows the probability is far smaller than the chance of a hardware fault, so most systems simply treat v4 UUIDs as unique. A database unique constraint is still a sensible safety net, because it costs nothing and catches bugs such as copying the same value twice.

Common uses

Choosing a format

The standard textual form is lowercase with hyphens, and that is what most libraries print and parse. Uppercase is the same number, just written differently; comparisons should be case-insensitive or you should normalise to one case before storing. The no-hyphen form is 32 characters and is handy for URLs, file names or systems that dislike dashes, but check that the receiving code accepts it, because strict parsers sometimes demand the hyphens.

Tips and limits

More questions

Can I get the same UUID twice by pressing Generate again?

No, each press draws new random bits. If you need to reproduce a value, copy it before regenerating, because the page does not store history.

Why do some of my UUIDs have a 8, 9, a or b after the third hyphen?

That digit marks the variant defined by the UUID standard. Every v4 UUID carries one of those four characters there, so seeing them is a sign the output is correctly formed.

Is a UUID the same as a GUID?

For practical purposes yes. GUID is the Microsoft name for the same 128-bit format. The only visible difference people meet is the curly braces some Windows tools add, which you can switch on here.