UUID Generator
Generate universally unique identifiers (UUIDs) in standard formats. Create version 1, 4, or 5 UUIDs for database keys and identifiers.
Generate Multiple UUIDs
About UUIDs
A UUID (Universally Unique Identifier) is a 128-bit identifier that is unique across both space and time.
UUID Versions
| Version | Description |
|---|---|
| Version 1 | Based on timestamp and MAC address |
| Version 4 | Randomly generated (most commonly used) |
UUID Structure
xxxxxxxx-xxxx-Mxxx-Nxxx-xxxxxxxxxxxx
- M indicates the UUID version
- N indicates the UUID variant
How to Use UUID Generator
How to Use the UUID Generator
- Select UUID version: Choose v1 (time-based), v4 (random), or v5 (name-based). V4 is recommended for most uses.
- Set quantity: Choose how many UUIDs to generate (1-100).
- Format options: Select with hyphens, without hyphens, or uppercase.
- For v5: Enter a namespace and name to generate deterministic UUIDs.
- Generate: Click Generate to create your UUIDs.
- Copy: Copy individual UUIDs or all at once.
UUID Probability of Collision
The probability of generating two identical v4 UUIDs is astronomically small. You would need to generate 2.71×10^18 UUIDs to have a 50% chance of one collision. For practical purposes, they are unique.
Features
- UUID v1, v4, and v5 generation
- Bulk UUID generation (up to 100)
- With or without hyphens format
- Uppercase or lowercase option
- Namespace and name input for v5
- One-click copy single UUID
- Copy all UUIDs at once
- Guaranteed uniqueness
- RFC 4122 compliant
- No registration required
- Works offline
- Mobile-friendly interface
About UUID Generator
UUIDs (Universally Unique Identifiers) provide globally unique identification without central coordination. Whether you're designing databases, building APIs, or tracking distributed events, UUIDs ensure every identifier is unique across space and time.
UUID Versions Explained
Different versions serve different needs:
- Version 1: Based on timestamp and MAC address, sortable by creation time
- Version 4: Purely random, most commonly used, highest privacy
- Version 5: Generated from namespace and name using SHA-1 hash
When to Use Each Version
Version 4 (random): Default choice for most applications. No information leakage, uniform distribution. Version 1 (time-based): When chronological ordering matters, like event logs. Version 5 (name-based): When you need deterministic IDs from consistent inputs.
Database Primary Keys
UUIDs as primary keys avoid bottlenecks of sequential integers: no need for central ID generation, safe for distributed systems, no information leakage about record count. Tradeoffs include larger storage size and less cache-friendly access patterns.
UUID Format
Standard format: 8-4-4-4-12 hexadecimal characters (e.g., 550e8400-e29b-41d4-a716-446655440000). The 128-bit value provides 2^122 possible UUIDs—enough that collisions are statistically impossible in practical applications.