Which UUID version should you choose?
A UUID (universally unique identifier) is a 128-bit number, written as 36 characters like 3f2b8c1e-5a47-4d9e-b6a0-1c7e2f9d4a83. Its strength: you can generate them anywhere, with no coordination, and the chance of a collision is negligible.
Version 4 is made of 122 random bits: it is the default choice, simple and with no hidden information. Version 7, defined by RFC 9562, starts with a timestamp in milliseconds: the identifiers sort in the order they were created, which is easier on database indexes. Within one batch, this tool keeps the v7 values in ascending order.
What are these formats for?
Depending on the language or the database, a UUID is expected in a different shape:
- standard, with hyphens: the most common (PostgreSQL, REST APIs, JSON);
- without hyphens: 32 characters, handy for keys and file names;
- in braces: the traditional Windows and .NET style;
- urn:uuid: the URN form, used in XML and in some protocols.
The analyzer
Paste a UUID to find out its version and variant. For a v7 (and a v1), the tool also reads the creation date, since it is stored in the identifier itself: worth remembering before you publish v7 values, which reveal when they were created.
Frequently asked questions
Are the generated UUIDs really unique?
In practice, yes: with 122 random bits, you would need billions of billions of identifiers to have a serious chance of a collision. It is not a mathematical guarantee, though, so a database should keep its uniqueness constraint.
Can I use one as a password or a secret token?
A v4 UUID comes from a cryptographic generator, but it is not designed to keep a secret: use a password or key generator instead. A v7 is partly predictable because it contains the time.
Are my identifiers sent anywhere?
No. Everything is computed in your browser with the system's random generator. Nothing is sent or stored.
What are the Nil and Max UUIDs for?
They are two special values: all zeros (nil) and all ones (max). They are used as an “empty” value or as an upper bound in tests.