LOCAL FILES. CLEAR RESULTS.

UUID v4 Generator

Generate random UUID v4 identifiers — the version built from cryptographic randomness, used for database keys, session IDs and file names. Create one or a bulk list, then copy or download it.

What a version 4 UUID actually is

A UUID is a 128-bit identifier written as 32 hexadecimal digits grouped 8-4-4-4-12. In version 4, six of those bits are fixed markers — the version nibble is always 4 and the variant bits are always 10 — and the remaining 122 bits are random. That randomness is the whole point: no timestamp, no MAC address and no counter is embedded, so a v4 UUID reveals nothing about the machine or moment that created it. The UUID generator above produces them from your browser's cryptographic random generator.

Where v4 is the right choice

Database primary keys in distributed systems, idempotency keys for API calls, upload file names that must never collide, session and correlation IDs in logs — anywhere you need a unique handle without coordinating with a central counter. Because the space holds 2¹²² values, independent services can mint IDs in parallel and merge their data later without a uniqueness service in the middle.

v4 versus the other versions

Version 1 embeds time and a node address — unique, but it leaks both. Version 3 and 5 are deterministic hashes of a name, useful when the same input must always give the same ID. Version 7 is time-ordered and increasingly popular for database indexes. If none of those special properties is what you need, v4 is the default the industry reaches for. Need GUID-flavoured output instead? See the GUID generator, or generate a mixed batch with the random UUID generator.

Generated locally, never sent anywhere

Every UUID on this page is created in your browser. Nothing is transmitted or logged — refresh and the list is gone unless you downloaded it.

Frequently asked questions

What makes a UUID 'version 4'?

The version is marked by the digit 4 at the start of the third group, and the variant bits at the start of the fourth group. In a v4 UUID, every other bit is random — 122 random bits in total, which is what makes collisions practically impossible.

How many UUID v4 values exist?

About 5.3 × 10³⁶ (2¹²²). Generating billions of them still leaves the chance of an accidental duplicate so small that systems worldwide treat v4 UUIDs as unique without checking a central registry.

Should I use v4 or v7 UUIDs?

Version 4 is the safe default for opaque identifiers. Version 7 sorts by creation time, which some databases prefer for index locality. If you do not specifically need time ordering, v4's pure randomness is simpler and leaks nothing about when the ID was made.

Are these UUIDs generated securely?

Yes. They are built from your browser's cryptographic random source (the Web Crypto API), the same quality of randomness used for security tokens — not from Math.random.

What format do the UUIDs come in?

Standard canonical text form: 32 hex digits in five groups separated by hyphens (8-4-4-4-12), lowercase, for example 9b2f207e-4f3c-4a1d-8e5f-0a1b2c3d4e5f.

Related tools