01 / v4
122 random bits
The usual choice: no information inside, just randomness from crypto.getRandomValues. Two the same is not a real worry.
Free tool
Make UUIDs for a database, an API or a test. Version 4 is random, version 7 starts with the time so IDs sort in the order they were made, versions 1 and 6 hold a time and a random node, and versions 3 and 5 turn a name into the same UUID every time. Make one or a thousand, with or without dashes, in capitals, in braces, quoted, or as a JSON array or SQL values. Paste any UUID into the checker to see if it is valid, which version it is and, for v1, v6 and v7, when it was made.
Need a custom tool, app or website? Contact us →Version 7 puts the time first, so new rows land at the end of a database index instead of all over it.
UUIDs are made in your browser with its secure random generator. They are never stored or sent; only your format settings are kept in this browser.
Which version
01 / v4
The usual choice: no information inside, just randomness from crypto.getRandomValues. Two the same is not a real worry.
02 / v7
The first 48 bits are the Unix time in milliseconds (RFC 9562), so v7 IDs sort by age. IDs made in the same millisecond still come out in order.
03 / Checker
Paste any UUID to see its version and variant, and the time it was made for v1, v6 and v7.
Guide
A UUID generator makes universally unique identifiers: 128-bit IDs you can create anywhere, with no central server, and still trust not to clash. This one makes versions 1, 3, 4, 5, 6 and 7, the all-zero nil UUID and the all-ones max UUID, one at a time or up to 1,000 at once. It also reads any UUID you paste and tells you its version, its variant and, for time-based versions, when it was made.
urn:uuid: prefix.uuids.txt.A UUID is 32 hexadecimal digits, normally written in five groups of 8, 4, 4, 4 and 12. Two of those digits are fixed markers. The first digit of the third group is the version, and the first digit of the fourth group shows the variant: 8, 9, a or b for the standard layout in RFC 9562.
| Group | Example (v7) | What it holds in v7 |
|---|---|---|
| 1 and 2 | 01a14932-5dc0 | Unix time in milliseconds, 48 bits |
| 3 | 7a3f | Version digit 7, then a counter |
| 4 | 9b2e | Variant digit 9, then random bits |
| 5 | 4c81d0e5f6a7 | Random bits |
Read the first 12 digits as one hex number and you get the time. 01a149325dc0 is 1,792,229,400,000 milliseconds after 1 January 1970, which is 17 October 2026 at 09:30:00 UTC. Paste 01a14932-5dc0-7a3f-9b2e-4c81d0e5f6a7 into the checker and it shows that time along with "Version 7".
How unlikely is a clash with version 4? There are 2 to the power of 122 possible values, about 5.3 followed by 36 zeros. You would need to make roughly 2.7 billion billion of them before the chance of any two matching reached one in two.
| Setting | Looks like | Good for |
|---|---|---|
| Dashes, small letters | 3f2b9c1e-8d4a-4f6b-9a2c-1e5d7b3a9f04 | The standard form, most databases and APIs |
| No dashes | 3f2b9c1e8d4a4f6b9a2c1e5d7b3a9f04 | URLs, file names, fixed-width columns |
| Capital letters, braces | {3F2B9C1E-8D4A-4F6B-9A2C-1E5D7B3A9F04} | Windows registry and other GUID fields |
| Quotes, with commas | "3f2b9c1e-...", | Pasting a list into JSON, JavaScript or an SQL IN (...) list |
| urn:uuid: | urn:uuid:3f2b9c1e-... | XML and standards that want a URN |
Upper and lower case mean the same value. The standard writes UUIDs in lower case, and many systems compare them as text, so stick with one case across a project.
The checker accepts the plain form, no dashes, braces, quotes or the urn:uuid: prefix. It tells you if the text is not a UUID, for example when a digit is missing or a group has the wrong length. For a valid one it names the version (1 time and node, 3 name with MD5, 4 random, 5 name with SHA-1, 6 reordered time, 7 Unix time, 8 custom) and the variant. For versions 1, 6 and 7 it also prints the creation time in UTC and in your own time zone. It recognises the nil UUID and the max UUID, which is all f digits.
macOS comes with a uuidgen command. Open Terminal, type uuidgen and press Return to get a random version 4 UUID in capital letters. Use this page when you need version 7, a batch, a different format, or a quick check of an ID you found in a log.
Working with the JSON that holds your IDs? The JSON formatter tidies and checks it. To turn a version 7 timestamp, or any Unix time, into a date, try the Unix timestamp converter.
Questions
Pick v5 (or v3), choose a namespace such as DNS or URL, and type the name. The same namespace and name always give the same UUID, on any machine. The list takes one name per line.
A 128-bit ID written as 32 hex digits in five groups, like 3f2b9c1e-8d4a-4f6b-9a2c-1e5d7b3a9f04. Anyone can make one without asking a central list, and they will not clash.
v4 when the ID should give nothing away. v7 for database keys: it sorts by time, which keeps indexes tidy, but it shows roughly when the ID was made.
Microsoft's name for the same thing. A GUID in braces, like {3f2b9c1e-...}, is a UUID; pick Braces to get that format.
For v4 the odds are so small that it is not a practical concern. They come from your browser's secure random generator, not Math.random.
No. They are made in this page and not stored or sent.
Yes, it is the same 128-bit format under another name. GUIDs are often shown in capital letters inside braces, which you can get by ticking Capital letters and picking Braces.
These are made with the browser's secure random generator, so they are hard to guess. Still, a UUID is built to be unique rather than secret, and it is often logged or shown in URLs, so use a purpose-made token for passwords or keys.
Look at the first digit of the third group: in 3f2b9c1e-8d4a-4f6b-... it is 4, so that is version 4. Or paste it into the checker on this page.
Yes. When several are made in the same millisecond, a counter after the version digit goes up by one each time, so a batch of 1,000 sorts in the order it was made.