UUID Generator
Generate UUIDs (Universally Unique Identifiers) for your projects. Support for V1 (time-based) and V4 (random) versions.
Key Terms
- UUID: 128-bit unique identifier standard
- V4 (Random): UUID generated from random numbers
- V1 (Time-based): UUID using timestamp and system info
- Hexadecimal: Base-16 number system (0-9, a-f)
- GUID: Microsoft's term for UUID (same thing)
What Are These Terms?
UUID (Universally Unique Identifier)
A 128-bit number represented as 36 characters (32 hex digits + 4 hyphens). Format: xxxxxxxx-xxxx-Mxxx-Nxxx-xxxxxxxxxxxx. Used for unique identification in databases, APIs, and distributed systems.
V4 (Random)
Most common UUID version. Uses random numbers to generate IDs. Format guarantees uniqueness through statistical probability (collision chance: 1 in 5.3×10³⁶). Perfect for most applications.
V1 (Time-based)
Uses current timestamp plus system-specific information. Includes creation time in the ID itself, allowing chronological sorting. Less random than V4 but contains temporal information.
Hexadecimal
Base-16 numbering using 0-9 and a-f. Each UUID character can be one of 16 values, providing massive combination space (2¹²⁸ possible UUIDs).
How Does The Tool Work?
Generation Methods
V4 (Random):
- Generates 122 random bits
- Sets version bits to '4'
- Sets variant bits to RFC4122 standard
- Formats as 8-4-4-4-12 hex pattern
V1 (Time-based):
- Uses current timestamp
- Adds random component
- Sets version bits to '1'
- Formats same as V4
Real-World Examples
Example 1: Database Primary Keys
- Count: 5, Version: V4
- Result:
550e8400-e29b-41d4-a716-446655440000f47ac10b-58cc-4372-a567-0e02b2c3d4796ba7b810-9dad-11d1-80b4-00c04fd430c8123e4567-e89b-12d3-a456-426614174000c73bcdcc-2669-4bf6-81d3-e4ae73fb11fd
Example 2: API Request IDs
- Count: 1, Version: V4
- Result:
902f0e3a-8c48-4d1f-a8c4-7c5b9d3f2e1a - Use for tracking single API request
Example 3: File Naming
- Count: 3, Version: V1
- Result: Time-ordered IDs for chronological file tracking
Common Use Cases
- Database primary keys
- API request/response tracking
- File naming (unique, sortable)
- Session identifiers
- Distributed system coordination
- Microservices correlation IDs
- Cloud resource identifiers