What Is a UUID?

A UUID (Universally Unique Identifier) is a 128-bit identifier designed to be globally unique without a central authority. Formatted as 32 hex digits in a 8-4-4-4-12 pattern (like 550e8400-e29b-41d4-a716-446655440000), UUIDs are used as database primary keys, session tokens, file names, API identifiers, and distributed system IDs.

UUID Versions

v1 — based on timestamp + MAC address. Sortable by time but reveals device identity. v4 — fully random. Most commonly used. No external state needed. v5 — deterministic hash from a namespace + name. Same inputs always produce the same UUID. v7 (newest) — timestamp-ordered random UUID. Sortable like v1 but without revealing device info.

How to Use This UUID Generator

  1. Click Generate — Click the generate button to create a new UUID instantly. Each one is cryptographically random and globally unique.
  2. Choose the version — Select UUID v4 (random, most common), v1 (timestamp-based), or other versions depending on your requirements.
  3. Copy the UUID — Click Copy to grab the UUID in standard format (8-4-4-4-12 hex digits separated by hyphens).
  4. Generate in bulk — Need multiple UUIDs? Set the quantity and generate a batch of unique identifiers at once.

Tips and Best Practices

Frequently Asked Questions

What is a UUID?
A 128-bit identifier formatted as 32 hex digits (8-4-4-4-12). Designed to be globally unique without a central authority — collision probability is astronomically small.
What is UUID v4?
V4 generates IDs using random numbers — 122 of 128 bits are random. The most commonly used version because it requires no external state or coordination.
UUID vs auto-increment IDs?
Use UUIDs for distributed systems, client-side generation, or when sequential IDs would expose system information. Use auto-increment for simple single-database apps.
What is a UUID?+
A UUID (Universally Unique Identifier) is a 128-bit number used to uniquely identify information in computer systems. It's formatted as 32 hexadecimal digits in five groups separated by hyphens: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx. UUIDs can be generated independently by different systems without coordination and still remain unique.
What is the difference between UUID v1 and v4?+
UUID v1 uses the current timestamp and the machine's MAC address to generate a unique ID — it's sortable by time but can reveal the generating machine's identity. UUID v4 uses random data for all bits (except the version and variant markers), making it the most commonly used version for privacy and simplicity.
Can UUID collisions happen?+
Theoretically yes, practically no. UUID v4 has 2^122 possible values (about 5.3 × 10^36). The probability of generating two identical UUIDs is astronomically low — you'd need to generate a billion UUIDs per second for about 85 years to have a 50% chance of one collision.

📖 Learn More

Related Article How to Generate UUIDs in JavaScript →

Built by Derek Giordano · Part of Ultimate Design Tools

Privacy Policy · Terms of Service