UUID / GUID Generator

UUID / GUID Generator

Copied!

What Is a UUID?

A UUID (Universally Unique Identifier) is a 128-bit value used to identify information without requiring a central authority to hand out IDs. Unlike an auto-incrementing database number, any system, anywhere, can generate a UUID on its own and be confident it won't collide with one generated by anyone else - making it "unique enough" for all practical purposes without any coordination.

This tool generates Version 4 UUIDs, the most common variant, where 122 of the 128 bits are chosen at random using a cryptographically secure random number generator. The remaining 6 bits are fixed to mark the version and variant, which is why every UUID this tool produces has a 4 as the first character of the third group.

UUID Format & Structure

PartDetail
Canonical layoutxxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx
Total length36 characters (32 hex digits + 4 hyphens), or 32 characters with hyphens removed
Version nibbleAlways 4 for Version 4 (random) UUIDs, like the ones this tool generates
Variant bitsFirst character of the fourth group is always 8, 9, a, or b

Toggle "No hyphens" above to get a compact 32-character hex string - a common format when a UUID needs to be embedded in a filename, a URL slug, or a system that doesn't allow dashes.

Common Use Cases

Database Primary KeysAssign IDs to new rows without a central counter, so multiple services or replicas can insert records without ID collisions.
Distributed System IDsGive every node, message, or resource in a distributed system a unique ID it can generate offline, with no coordination required.
Session & Request Tracing IDsTag each user session, API request, or log entry with a unique trace ID to follow it across services when debugging.
File & Object NamingName uploaded files, cache keys, or storage objects with a UUID to avoid naming collisions between unrelated uploads.

Frequently Asked Questions

How likely is it that two Version 4 UUIDs collide?

Astronomically unlikely. A Version 4 UUID has 122 random bits, giving about 5.3 x 10^36 possible values. You'd need to generate roughly a billion UUIDs per second for about 85 years before the probability of a single collision reached just one in a billion.

Is anything sent to a server when I generate UUIDs here?

No. Every UUID is generated locally in your browser using the Web Crypto API's cryptographically secure random number generator (crypto.randomUUID()) - nothing is ever transmitted to a server.

Is a GUID the same thing as a UUID?

Yes, for practical purposes. GUID (Globally Unique Identifier) is Microsoft's name for the same 128-bit identifier format standardized as UUID (Universally Unique Identifier) in RFC 4122. The terms are used interchangeably across most tools and languages.