UUID Generator
Generate version 1, 3, 4, 5 and 7 UUIDs in bulk, or decode an existing UUID to see its version and timestamp.
Version 4 — 122 random bits. The everyday choice when you just need a unique ID.
About the UUID Generator
A UUID (universally unique identifier, called a GUID in the Microsoft world) is a 128-bit value written as 32 hexadecimal digits in five groups, such as 2ed6657d-e927-568b-95e1-2665a8aea6a2. The first digit of the third group is the version, which says how the rest of the bits were produced. This tool follows RFC 9562, the 2024 standard that replaced RFC 4122 and added version 7.
Random bits come from your browser's crypto.getRandomValues and SHA-1 from the Web Crypto API, so every UUID is generated on your device and nothing is sent to a server. Version 1 UUIDs use a random node ID with the multicast bit set, as RFC 9562 recommends, instead of your network card's MAC address.
Frequently asked questions
Which UUID version should I use?
Use version 4 when you just need a unique random ID. Use version 7 for database primary keys: it starts with a millisecond timestamp, so new rows sort to the end of the index and inserts stay fast. Use version 5 (or 3) when the same input must always map to the same ID. Version 1 is mainly for compatibility with older systems.
Can two UUIDs ever collide?
In theory yes, in practice no. A version 4 UUID has 122 random bits; you would need to generate about 2.7 quintillion of them to reach a 50% chance of a single duplicate. Version 7 has 74 random bits per millisecond, and this generator also keeps a counter so IDs made in the same millisecond stay unique and in order.
What is the difference between version 3 and version 5?
Both hash a namespace UUID together with a name, so www.example.com in the DNS namespace always gives the same result. Version 3 uses MD5 and version 5 uses SHA-1. RFC 9562 recommends version 5 for new systems; neither is meant to hide the name, so don't use them for secrets.
Is a UUID the same as a GUID?
Yes. GUID is Microsoft's name for the same 128-bit format. Windows tools often show GUIDs in uppercase and wrapped in braces, like {2ED6657D-E927-568B-95E1-2665A8AEA6A2} — tick Uppercase and Braces to get that style.
Does a version 7 UUID reveal when it was created?
Yes. The first 48 bits are a Unix timestamp in milliseconds, which you can read with the decoder above. Version 1 also contains a timestamp. If creation times are sensitive, use version 4 for IDs that are shown to users.