UUID Generator (v4)
Generate random UUIDs (version 4) one at a time or in bulk. Created in your browser using a cryptographic random source.
Generate random UUIDs (version 4) one at a time or in bulk. Created in your browser using a cryptographic random source.
A UUID (universally unique identifier) is a 128-bit value that is practically unique without any central coordination. Version 4 UUIDs are random, which makes them popular as database keys and request IDs.
This tool generates v4 UUIDs in your browser using the Web Crypto API.
3b241101-e2bb-4255-8caf-4136c566a962
A UUID is a 128-bit identifier written as 32 hexadecimal digits in groups of 8-4-4-4-12, defined in RFC 4122 and updated by RFC 9562. In a version 4 UUID, 6 bits are fixed: four bits give the version, the digit 4 at the start of the third group, and two bits give the variant, which makes the first digit of the fourth group 8, 9, a or b. That leaves 122 random bits, or about 5.3 times ten to the power 36 possible values.
Collisions are therefore extremely unlikely: you would need to generate around 2.7 quintillion UUIDs to reach a 50 percent chance of one duplicate. That holds only when the random source is good, which is why the Web Crypto API matters; Math.random is not suitable. Pure random UUIDs do have a downside as database primary keys, since they scatter inserts across an index. Time-ordered versions such as v7 in RFC 9562 are designed to address that.
With random v4 UUIDs the chance is so small that it is ignored in practice.
GUID is Microsoft's name for the same thing.
UUIDs are unique, not secret. Use a dedicated token generator for secrets.
No. They are generated in your browser and not sent anywhere.
It holds the same 128 bits as 32 hex characters. Many systems accept it, but some strict validators require the standard hyphenated form, so check what the receiving system expects.
Version 4 is fully random. Version 7 starts with a timestamp, so values sort roughly by creation time, which helps database indexing. This tool generates version 4.