What a UUID actually is
A UUID, short for Universally Unique Identifier, is a 128-bit value used to label something without asking anyone for permission first. You may also see it called a GUID, or Globally Unique Identifier, which is simply the name Microsoft gave to the same idea inside Windows and the .NET world. The two terms describe the same 128-bit number in nearly every case that matters, so when a colleague says GUID and you say UUID, you are almost always talking about the exact same thing.
Those 128 bits are normally written as 32 hexadecimal digits split into five groups by hyphens, in an 8-4-4-12 pattern. A typical value looks like 123e4567-e89b-12d3-a456-426614174000. The hyphens carry no meaning of their own; they exist purely so a human can read the value without losing their place. Every character is a hex digit from 0 to f, which is why a UUID feels denser than an everyday number even though it is, under the surface, just one very large integer.

Versions, and why v4 wins
The standard defines several versions, and they differ in how the bits are filled. Version 1 is time-based: it weaves together the current timestamp and the machine's network MAC address. That makes v1 values sortable by creation time, but it also leaks information about where and roughly when they were made, which is not always welcome. Versions 3 and 5 are name-based, hashing a namespace plus a name so the same input always yields the same identifier.
Version 4 takes a different route entirely. It is almost pure randomness. Of the 128 bits, six are reserved to mark the version and variant, leaving 122 bits to be filled with random data. There is no timestamp, no MAC address, no namespace, just noise. That is exactly why most generators, including this one, produce v4 by default. It reveals nothing about the device or the moment of creation, and it needs no coordination between the parties making it. The tool on this page runs entirely in your browser, so the random values never leave your machine.
How unlikely a collision really is
The reasonable worry is that two random UUIDs might one day be identical. With 122 random bits, the space of possible v4 values is 2 to the power of 122, which is roughly 5.3 followed by 36 zeros. To put that in human terms, you would need to generate billions of UUIDs every second for many decades before the odds of a single duplicate climbed to anything you could measure. The standard itself describes the chance of a clash as close enough to zero to be negligible. In practice teams treat v4 as unique and move on, and they are right to.

Where developers reach for them
Because uniqueness needs no central authority, UUIDs shine in places where coordination is expensive or impossible. They are a natural fit for database primary keys, especially when several services each insert rows and you cannot pause to ask a shared counter for the next number. In distributed systems, two nodes on opposite sides of the planet can both mint identifiers at the same instant without ever colliding. They also power API idempotency keys, where a client attaches a UUID to a request so the server can safely ignore a duplicate if the network retries. Session tokens, file names, event IDs, and message keys all lean on the same property.
UUID versus auto-increment IDs
The classic alternative is the auto-increment integer: 1, 2, 3, and so on. Sequential IDs are compact, sort naturally, and are easy to read, but they have real downsides. They expose how many records exist and let outsiders guess neighbouring values, and they force every insert through a single counter, which becomes a bottleneck when you shard a database or merge data from many sources. UUIDs solve those problems by letting any party generate a key independently and by giving away nothing about volume or order. The trade is size and a little less locality in indexes. For systems that scale out or that must hide their internals, that trade is usually worth making. You can explore this and similar utilities through our all generators collection, or browse the wider set of developer tools for related building blocks.
Frequently asked questions
Is a GUID the same as a UUID?
For everyday purposes, yes. GUID is Microsoft's name for the same 128-bit identifier. The only real difference is byte ordering in the raw binary form on some Windows systems; in string form they are identical and interchangeable.
Which UUID version does this tool generate?
It generates version 4, the random variant. Of its 128 bits, 122 are filled with random data, which makes each value extremely unlikely to repeat and means it carries no timestamp or device information.
Can two UUIDs ever be the same?
In theory the probability is not exactly zero, but with around 5.3 times 10 to the 36 possible v4 values it is so small that it is treated as negligible. You would have to generate astronomical numbers of them before a clash became likely.
Why use a UUID instead of an auto-increment number?
UUIDs can be created independently by any service without a shared counter, they do not reveal record counts or order, and they make merging data from many sources painless. Auto-increment IDs are smaller but become a bottleneck and leak information at scale.
Are the UUIDs generated on a server?
No. This tool runs entirely in your browser, so the random values are produced locally and never sent anywhere. That makes it safe to use for keys and tokens you intend to keep private.
What does the hyphen pattern mean?
The 8-4-4-4-12 grouping is just a readability convention. The hyphens carry no data; they split the 32 hex digits into chunks so people can scan and compare values more easily.
