UUID Generator
Generate unique UUID identifiers instantly: v4, fully random, or v7, which start with the date and time and so come out in order. Make 1 to 1,000 at once, in lowercase or UPPERCASE, with braces or without hyphens, and copy or download them. It also validates a UUID and tells you its version, its variant and, if it has one, the date it was created.
Works anywhere in the world, wherever you are.
From 1 to 1,000.
UUIDs generated
0
Version 4: 122 random bits from the browser's cryptographic generator.
Your UUIDs
Each UUID is made in your browser with its cryptographic generator. “Generate new” makes fresh ones; changing the format keeps them.
UUIDs are generated and validated in your browser: they are not sent to any server, are not in the Share link, are not saved and are not sent to analytics. Only the options (version, count and format) are remembered.
Related tools
Secure Password Generator
Everyday
Random passwords from 8 to 128 characters, in your browser.
OpenRandom Number Generator
Everyday
Random numbers in a range, dice and coin flips.
OpenJSON Formatter and Validator
Everyday
Pretty-print, minify and validate JSON, with the exact error line.
OpenBase64 Encoder and Decoder
Everyday
Text or files to Base64 and back, with accents and emoji right.
OpenAbout this calculator
How to use it
In "Generate UUIDs", choose the version and how many you want, from 1 to 1,000. They show up instantly, one per line. "Generate new" makes fresh ones; changing the format (UPPERCASE, with braces { } or without hyphens) does not change them, only how they are written. "Copy result" copies them all and "Download .txt" saves them to a file.
In "Validate a UUID", paste one and see whether it is valid, its version, its variant and, for versions 1, 6 and 7, when it was created, in your time and in UTC. It takes upper or lower case, with or without hyphens, in braces or with urn:uuid: in front.
v4 or v7: which to use
A v4 UUID has 122 random bits and nothing else. It is the usual choice when all you need is an identifier that will not repeat: database keys, file names, order or session IDs.
A v7 UUID, defined in the 2024 RFC 9562 standard, starts with 48 bits of Unix time in milliseconds and continues with random bits. Because the time comes first, v7 UUIDs sort by creation time on their own, which makes them better as a database primary key: new rows go to the end of the index instead of landing anywhere. The trade-off is that anyone who sees a v7 can tell when it was made.
When you generate many v7s in the same millisecond, this tool uses the 12 bits after the time as a counter, as the standard allows (section 6.2, method 1), so every UUID in the list sorts after the one before, even when you make 1,000 at once.
Example
The UUID 017F22E2-79B0-7CC3-98C4-DC0C0C07398F, which is RFC 9562's v7 example, comes out valid: version 7 (the 7 that opens the third group), variant RFC 9562 (the 9 that opens the fourth group, one of 8, 9, a or b) and created at 2022-02-22T19:22:22.000Z in UTC, which was 3:22:22 PM in Puerto Rico.
The UUID 919108f7-52d1-4320-9bac-f847db4148a8 is a v4: version 4 from the 4 in “4320”, variant RFC 9562 from the 9 in “9bac”, and no date, because it is all random.
Can they repeat?
In practice, no. A v4 UUID has 2¹²² possible values. For a 50% chance of two coming out the same you would have to generate about 2.7 quintillion (2.7 × 10¹⁸); at a billion per second, that would take about 86 years.
That depends on good randomness. This tool uses the browser's cryptographic generator (crypto.randomUUID or crypto.getRandomValues), not Math.random, which is not fit for this.
Made in your browser
UUIDs are generated and validated entirely in your browser. They are not sent to any server, are not in the "Share" link, are not saved and are not recorded in the site's statistics; the "Share" link only carries the options (version, count and format), so whoever opens it gets fresh UUIDs.
Important limitations
- It generates versions 4 and 7, the general-purpose ones today (RFC 9562 recommends 7 over 1 and 6 where possible). It does not generate versions 1 and 6 (which use the device's MAC address) or 3 and 5 (which come from a name).
- A v7 reveals when it was made, to the millisecond. If that matters, use v4.
- A v7's time is your device's clock; if the clock is wrong, so is the UUID's date.
- The validator checks the format, version and variant; it cannot know whether a UUID has already been used somewhere.
Frequently asked questions
This calculation runs in your browser and is never sent to a server. Your last values may be saved on your device only, for convenience. Results are estimates and are not financial, tax, accounting or legal advice.