UUID Generator
Generate cryptographically random UUIDs in your browser, with the differences between v1, v4 and v7 and when each is appropriate.
Last reviewed by the Radiatus Cloud team
UUID Generator
Generate Universally Unique Identifiers (UUID v4).
Need this built for your product?
We design, build & host secure software & APIs.
What a UUID is for
A universally unique identifier is 128 bits, written as 32 hexadecimal digits in five hyphenated groups. Its purpose is letting independent systems mint identifiers that will not collide without coordinating with each other, which is what makes distributed systems, offline clients and database sharding practical.
Version 4 and why collisions are not a concern
Version 4 is 122 random bits, with six bits fixed for version and variant. The collision probability is negligible in a way that is hard to convey: you would need to generate roughly 2.7 quintillion UUIDs before reaching a one-in-a-billion chance of a single duplicate. In practice, v4 collisions come from a broken random source, never from exhausting the space. That is why generating them with a cryptographic random source rather than a pseudo-random one matters.
Version 7 solves the database problem
Random v4 identifiers are poor primary keys at scale. Because they sort randomly, each insert lands in an arbitrary position in a B-tree index, fragmenting it and destroying cache locality. On large tables this measurably degrades insert throughput. Version 7 puts a millisecond timestamp in the leading bits, so identifiers sort roughly in creation order, inserts append to the end of the index, and the problem disappears. Where you control the schema and want UUID keys, v7 is now the sensible default.
Version 1 leaks information
Version 1 combines a timestamp with the machine's MAC address. That makes it sortable but means every identifier discloses when it was created and which machine created it. It has been used to attribute anonymous documents to specific hardware. Avoid it unless you specifically need those properties and accept the disclosure.
UUIDs are not secrets
A v4 UUID is unguessable, which tempts people to use one as a capability token in a URL. That works only while the URL stays private, and URLs leak: through referrer headers, browser history, server logs, chat previews and shoulder-surfing. Use a UUID as an identifier and a real access control for authorisation.
Generated locally
Values come from the browser's Web Crypto API and are never transmitted.
Related tools
- JSON Formatter — Format and beautify JSON in your browser. Pinpoints syntax errors by line and column, flags unsafe integers, and never uploads your data to a server.
- JSON Validator — Validate JSON syntax with precise line and column errors, and check documents against a JSON Schema. Runs locally in your browser, nothing uploaded.
- Regex Tester — Test regular expressions against sample text with live match highlighting, capture groups and flag control. Runs entirely in your browser.
- HTML Minifier — Minify HTML by removing comments and redundant whitespace, without breaking inline elements or pre blocks. Runs entirely in your browser.
Frequently Asked Questions
What is the difference between UUID v4 and v7?
v4 is fully random; v7 puts a millisecond timestamp in the leading bits so identifiers sort by creation time. v7 is far better as a database key because inserts append to the index rather than fragmenting it.
Can two UUIDs collide?
Practically never for v4. You would need roughly 2.7 quintillion before reaching a one-in-a-billion chance of a single duplicate. Real-world collisions come from a broken random source, not from exhausting the space.
Why avoid UUID v1?
It embeds a timestamp and the generating machine's MAC address, so every identifier discloses when and where it was created. That has been used to attribute anonymous documents to specific hardware.
Is a UUID safe to use as a secret token?
No. It is unguessable but not secret: URLs leak through referrer headers, browser history, server logs and chat previews. Use it as an identifier and enforce real access control separately.
Are the UUIDs generated on a server?
No. They come from the browser's Web Crypto API and are never transmitted, so nothing you generate is visible to anyone else.
Privacy & Security
Generated locally in browser using crypto API.
How to Use
Choose how many UUIDs you want and click Generate.
Disclaimer: This tool is provided "as is" without warranty of any kind. Results are for educational and utility purposes.
Related Tools
JSON Formatter
DeveloperFormat and beautify JSON in your browser. Pinpoints syntax errors by line and column, flags unsafe integers, and never uploads your data to a server.
JSON Validator
DeveloperValidate JSON syntax with precise line and column errors, and check documents against a JSON Schema. Runs locally in your browser, nothing uploaded.
Regex Tester
DeveloperTest regular expressions against sample text with live match highlighting, capture groups and flag control. Runs entirely in your browser.