Home/Tools/UUID Generator

UUID/GUID Generator

Generate universally unique identifiers instantly. Support for UUID v1, v4, v5, and v7. Parse and decode existing UUIDs. 100% client-side and private.

Privacy Notice: All UUIDs are generated client-side in your browser. No data is transmitted to any server.
UUID v4 (Random): Randomly generated UUID using cryptographically secure random numbers. Recommended for general use.

UUID Parser & Decoder

What are UUIDs?

A UUID (Universally Unique Identifier), also known as a GUID (Globally Unique Identifier) in Microsoft contexts, is a 128-bit value used to uniquely identify information in computer systems. UUIDs are designed to be unique across space and time without requiring a central coordinating authority.

UUID Structure

A standard UUID is displayed as 32 hexadecimal digits in five groups separated by hyphens:

550e8400-e29b-41d4-a716-446655440000

Format: 8-4-4-4-12 hexadecimal digits = 128 bits total

Common Use Cases

  • Database primary keys
  • Session identifiers
  • Transaction and request IDs
  • File and object identifiers
  • Distributed system coordination

UUID Versions Explained

v1

Timestamp + MAC Address

Generated using current timestamp and the machine's MAC address. Sortable by creation time.

Privacy Concern: May expose the MAC address of the generating machine. Consider using v7 instead for sortable time-based UUIDs.
v4

Generated using cryptographically secure random numbers. Completely unpredictable and privacy-preserving.

Best for: General-purpose unique identifiers, session IDs, API keys, and any use case requiring unpredictable IDs.
v5

Name-Based SHA-1

Deterministic UUID generated by hashing a namespace UUID and a name using SHA-1. Same input always produces the same UUID.

Best for: Creating consistent IDs from names, URLs, or other identifiers. Useful when you need the same input to always generate the same UUID.
v7

Unix Timestamp + Random (Modern)

Newest specification combining Unix timestamp with random data. Sortable by creation time without privacy concerns.

Best for: Database primary keys and distributed systems. Better indexing performance than v4 due to time-based sorting, no privacy issues like v1.
VersionMethodSortableDeterministicPrivacy Safe
v1Timestamp + MACYesNoNo
v4RandomNoNoYes
v5Name + SHA-1NoYesYes
v7Timestamp + RandomYesNoYes

UUID Best Practices

Do These

  • Use UUID v4 for general purposes: Best for session IDs, API keys, and general unique identifiers
  • Use UUID v7 for database keys: Better indexing performance due to time-based ordering
  • Store as binary in databases: Save space and improve performance by using BINARY(16) or native UUID types
  • Use UUID v5 for deterministic IDs: Perfect when you need consistent IDs from names or URLs
  • Validate UUIDs on input: Always verify UUID format before storing or processing

Avoid These

  • Don't use UUID v1 by default: May expose MAC addresses - use v7 for sortable IDs instead
  • Don't store as VARCHAR unnecessarily: Wastes 20+ bytes per UUID compared to binary storage
  • Don't generate UUIDs server-side only: Client-side generation reduces server load in distributed systems
  • Don't assume uniqueness without version info: Check UUID version when parsing to understand generation method
  • Don't use sequential IDs for security: Predictable IDs can leak information - use UUID v4 instead

Frequently Asked Questions

Find answers to common questions

A UUID (Universally Unique Identifier) is a 128-bit value used to uniquely identify information in computer systems. UUIDs are ideal for distributed systems because they can be generated independently without coordination, are practically guaranteed to be unique, and work across different databases and services. They are commonly used as database primary keys, session identifiers, and API request IDs.

Need Help with Your Development Infrastructure?

Our experts can help you implement best practices for unique identifiers, database design, distributed systems, and application security.