Random. 122 bits straight from the browser's cryptographic random source, and the right default unless you need the ids to sort.
Random. 122 bits straight from the browser's cryptographic random source, and the right default unless you need the ids to sort.
The UUID Generator produces identifiers in every version RFC 9562 defines, which is the 2024 specification that replaced RFC 4122. Version 4 is pure randomness and the sane default; version 7 puts a millisecond timestamp in the leading bits so ids sort by creation time, which is what makes it the version to reach for when the UUID becomes a database primary key. Versions 3 and 5 are the deterministic pair: give them a namespace and a name and they always return the same UUID, on any machine, for as long as the algorithm exists. Versions 1 and 6 carry the older 100-nanosecond timestamp layout, with a random node id instead of a MAC address. Everything is generated in your browser, version 4 through the browser's own crypto.randomUUID and the rest over crypto.getRandomValues.
The guide behind this tool
Which UUID Version to Use, and Why v7 Changed the Answer
A random primary key splits B-tree pages and scatters an InnoDB table. RFC 9562 fixed that in 2024 by putting the clock first. What each version really holds.
Pick a version. If you have no particular reason, v4 is the one you want; if the id is going to be a database key, use v7.
For v3 and v5, choose a namespace and type the name to derive the UUID from, such as a domain or a URL.
For the random versions, drag the slider if you need more than one at a time.
Tick Uppercase, Hyphens or Braces to match the format your target system expects.
Copy the result, download a longer batch as a text file, or press Generate for a fresh set.
v4 unless you have a reason not to, and v7 when the UUID will be a primary key or anything else that gets indexed or sorted. v5 when the id has to be reproducible from some existing name, so two systems can derive the same id without talking to each other. v1 and v6 only when you are joining a system that already uses them, and v3 only when something already depends on MD5.
30+ Free Tools
Explore all categories
From text processing to developer utilities, all free, all instant, no sign-up.