UUID Generator

Generate UUIDs online instantly. Supports v1/v4/v7, bulk generation, and validation. Essential developer tool.

About This Tool

UUID Generator creates universally unique identifiers (UUIDs) conforming to RFC 4122 version 4. It can generate single or bulk UUIDs with options for uppercase/lowercase and with or without hyphens. Widely used by developers for database primary keys, distributed system identifiers, session tokens, and correlation IDs.

max 100

How It Works

A UUID (Universally Unique Identifier) is a 128-bit value represented as 32 hexadecimal digits in the format 8-4-4-4-12 (e.g., 550e8400-e29b-41d4-a716-446655440000). Version 4 UUIDs are generated entirely from random or pseudo-random numbers, with two fixed bits: the version field (4 bits set to 0100) and the variant field (2 bits set to 10).

This tool uses `crypto.getRandomValues()` to fill a 16-byte array with cryptographically secure random values. It then sets the version nibble (bits 48-51) to 0x4 and the variant bits (bits 64-65) to binary 10. The resulting 128 bits are formatted as a hexadecimal string with hyphens. The probability of generating a duplicate is astronomically low — with 122 random bits, you would need to generate approximately 2.71 x 10^18 UUIDs to have a 50% chance of a single collision (the birthday paradox bound).

Share

How to Use

  1. Select a UUID version (v4 random / v7 time-ordered / v1 timestamp).
  2. Choose how many to generate (1-100).
  3. Set format options (remove hyphens, uppercase).
  4. Click Generate UUID. Single generation auto-copies to clipboard.
  5. For bulk generation, use Copy All to copy all at once.
  6. Use the Validate tab to check UUID validity and version.

FAQ

What is a UUID?
UUID (Universally Unique Identifier) is a 128-bit identifier. It's represented as 32 hexadecimal characters separated by hyphens (e.g., 550e8400-e29b-41d4-a716-446655440000). UUIDs can be generated without a central server while guaranteeing uniqueness.
What's the difference between UUID v4 and v7?
v4 is fully random and the most widely used. v7 is timestamp-based, enabling time-ordered sorting, which improves database index performance. v7 is recommended for new projects.
What are the chances of UUID collision?
UUID v4 has about 2^122 possible values. Even generating 1 billion UUIDs per second, it would take about 100 years for a 50% chance of collision. Practically, collisions are impossible.
Can I use UUID as a database primary key?
Yes, it's common practice. However, v4's randomness can hurt B-tree index performance. v7 is time-ordered and maintains better index performance, making it more suitable as a DB primary key.
What's the difference between UUID and GUID?
They are essentially the same. UUID is the RFC 4122 standard term, while GUID (Globally Unique Identifier) is Microsoft's term. The format and generation methods are identical.

Related Tools

Related Articles

84+

Tools available

97+

Blog articles

English & 한국어

Languages

Bookmark this page! We add new free tools every week.