122 bits of chaos
Only 6 of the 128 bits are reserved, so v4 leaves 2122 (~5.3×1036) possibilities—more identifiers than grains of sand on Earth.
Tip: Press Ctrl/Cmd + Enter to regenerate with the same settings.
XXXXXXXX = time_low XXXX = time_mid 4XXX = time_hi_and_version XX XX = clock_seq (variant in high bits) XXXXXXXXXXXX = node
A UUID v4 generator creates unique identifiers that are safe to use in databases, APIs, and software projects. A UUID (Universally Unique Identifier) is a 128‑bit value formatted as a 36‑character string with hyphens, like xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx. Version 4 UUIDs are based on random numbers, which makes collisions extraordinarily unlikely in normal use.
This tool is ideal when you need an ID that will not clash with others across systems, teams, or services. Common uses include primary keys in databases, document IDs in JSON APIs, session identifiers, and unique filenames. Because UUIDs do not rely on timestamps or device information, they are also a good choice when you want identifiers that are difficult to guess.
A UUID v4 is 16 bytes (128 bits) long. Most of those bits are random, while a few are reserved to mark the version and variant. The “4” in the third group indicates version 4, and the first two bits of the next group set the RFC 4122 variant. The rest is random, which is what gives UUID v4 its strength.
Under the hood, the generator uses your browser’s secure random number source via crypto.getRandomValues(). It produces 16 random bytes, then sets the version and variant bits to follow the UUID v4 standard. Everything runs locally in your browser, so no data leaves your device.
In the hyphenated view, the color legend highlights the five sections of a UUID:
4 (blue)If you are comparing ID formats, UUID v4 is a reliable default: readable, widely supported, and safe for distributed systems. Use it whenever you need identifiers that won’t collide, even across multiple servers or apps.
Only 6 of the 128 bits are reserved, so v4 leaves 2122 (~5.3×1036) possibilities—more identifiers than grains of sand on Earth.
You could mint 1 million UUIDs every second for 68 years before the 50/50 chance of a collision kicks in. That is 2.1×1015 identifiers.
This tool taps crypto.getRandomValues(), which pulls from your OS’s secure RNG (keyboard jitter, clock drift, hardware noise)—not Math.random().
The blue nibble is forced to 4 and the next byte starts with 10. Those locked bits let every language instantly recognise a v4 + RFC variant.
Generate up to 200 IDs at once, colour-check them in the preview, then copy or download in one click—handy for staging databases and API fixtures.