UUID & GUID Generator & Validator

Generate cryptographically secure v4 UUIDs, v1 timestamp IDs, and Nil UUIDs. Customize format with uppercase, no hyphens, braces, or JSON array export. Inspect and validate existing identifiers against RFC 4122.
Instant Secure UUID (v4)
-
Generated Bulk Identifiers 5 UUIDs
UUID Inspector & Validator (RFC 4122)
Paste any identifier below to inspect its version, variant, timestamp, and syntactic validity:
Status Valid
Version Version 4
Variant RFC 4122 / Leach-Salz
Length & Hyphens 36 chars (4 hyphens)
Decoded Timestamp / Information Randomly generated (CSPRNG pseudo-random sequence)

UUID / GUID Engineering Architecture & RFC 4122 / 9562

A Universally Unique Identifier (UUID)—also standardized by Microsoft as a Globally Unique Identifier (GUID)—is a 128-bit numerical label used to uniquely identify information in computer systems without centralized coordination. Formalized under RFC 4122 and recently updated in RFC 9562, UUIDs guarantee uniqueness across distributed databases, microservices, and network nodes.

1. Bit-Level Layout & The 8-4-4-4-12 Canonical String

A UUID consists of 16 octets (128 bits), canonically rendered as a 36-character hexadecimal string divided into five groups separated by hyphens:

xxxxxxxx-xxxx-Mxxx-Nxxx-xxxxxxxxxxxx
  time_low    mid  ver  var  node / random

2. UUID Versions Compared

Version Mechanism Deterministic Primary Use Case
v1 Timestamp + 48-bit MAC address No Legacy systems (reveals hardware MAC)
v3 MD5 namespace hash Yes Deprecated in favor of v5
v4 Cryptographic random numbers (122 bits entropy) No Default primary keys, sessions, web IDs
v5 SHA-1 namespace hash Yes Idempotent ID generation across systems
v7 (RFC 9562) Unix Epoch ms timestamp + random No B-Tree database index friendly IDs

3. Collision Probability Mathematics

A Version 4 UUID reserves 6 bits for metadata (4 bits version, 2 bits variant), leaving exactly 122 bits of true cryptographic entropy. The total number of possible UUID v4 values is:

2¹²² ≈ 5.3169 × 10³⁶ unique values

By applying the Birthday Paradox approximation for collision probability $p \approx 1 - e^{-n^2 / (2 \times 2^{122})}$:

4. Database Indexing & Storage Architecture

Engineers must carefully weigh how UUIDs are indexed in relational stores (PostgreSQL, MySQL, SQLite):

5. Frequently Asked Questions (FAQ)

Are the UUIDs generated here cryptographically secure?
Yes. This generator uses the browser's hardware-backed Web Crypto API (crypto.randomUUID() and crypto.getRandomValues()), ensuring high-entropy cryptographic security suitable for production sessions, access tokens, and primary keys.
What is the difference between a UUID and a GUID?
GUID (Globally Unique Identifier) is Microsoft's implementation of the UUID standard. Both represent identical 128-bit numbers and follow RFC 4122 specifications.
What is the Nil UUID?
The Nil UUID is a special identifier defined in RFC 4122 where all 128 bits are set to zero (00000000-0000-0000-0000-000000000000), commonly used as an initial placeholder or unassigned entity flag.
Why does the 13th character in UUID v4 always show '4'?
The 13th character represents the 4-bit version field (time_hi_and_version). A value of 4 designates that the identifier was generated using cryptographic pseudo-random numbers.

Security Verification

Copied to clipboard!

We use cookies to enhance your browsing experience, serve personalized ads, and analyze traffic in compliance with GDPR and CCPA. Read our Privacy Policy.