HomeToolsUUID Generator
All Tools

UUID Generator - v1, v4, v7 Online

UUID Generator

Generate random UUID v4 identifiers

Format: xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx
Version 4 (Random) | 128 bits | 36 characters with hyphens
Click "Generate" to create UUIDs

UUID v4 Properties

  • Random 128-bit number
  • 2^122 possible values (5.3 x 10^36)
  • Collision probability is negligible
  • No central authority needed

Common Use Cases

  • Database primary keys
  • Session identifiers
  • Transaction IDs
  • Distributed system object IDs

What are UUIDs and what is the difference between v1, v4, and v7?

A UUID (Universally Unique Identifier) is a 128-bit identifier formatted as 32 hexadecimal digits in 5 groups separated by hyphens (e.g., 550e8400-e29b-41d4-a716-446655440000). UUID v1 is generated from the current timestamp and the machine's MAC address, making it unique but potentially revealing location information. UUID v4 is generated using random or pseudo-random numbers — it has 122 random bits, giving a collision probability so low (1 in 2^122) that duplicates are effectively impossible. UUID v7 (RFC 9562, 2024) is the newest version: it embeds a Unix timestamp in the first 48 bits followed by random data, making it both time-sortable and random. UUID v7 is recommended for database primary keys because its time-ordering improves B-tree index performance compared to random v4 UUIDs. GUIDs (Globally Unique Identifiers) are Microsoft's implementation of UUIDs.

Built with care by Alpiaal