UUID Generator

Generate UUIDs (Universally Unique Identifiers) online. Supports UUID v4 (random), v1 (time-based), and v7 (sortable). Bulk generate up to 20 UUIDs, choose output format: standard, no-dashes, UPPERCASE, or Microsoft GUID braces.

UUID
Version
Additional UUIDs (if qty > 1)
Extended More scenarios, charts & detailed breakdown
Generated UUIDs v4
Count Generated
Professional Full parameters & maximum detail

Generated UUIDs

Generated UUIDs
First UUID

UUID Reference

Format Breakdown
NIL UUID (all zeros)
Count Generated

How to Use This Calculator

  1. Select the UUID Version — v4 for general use, v7 for databases, v1 for time-based needs.
  2. Set Quantity (1–20 UUIDs per generation).
  3. Click calculate to generate. Each click produces a new set of random UUIDs.
  4. Use the Professional tier to choose output format: standard, no-dashes, UPPERCASE, or Microsoft GUID {braces}.

Formula

UUID v4 format: xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx where x is random hex and y is one of 8, 9, a, b (variant bits).
UUID v7: Starts with 48-bit Unix timestamp in milliseconds, followed by version digit 7, followed by random bits. Lexicographically sortable by creation time.

Example

UUID v4 example: 550e8400-e29b-41d4-a716-446655440000 (note "4" in position 3, "a" in position 4 — version and variant markers).
UUID v7 example: 018e3c07-3210-7a1b-9d35-b3c8e08f3e41 (starts with millisecond timestamp "018e3c07...").

Frequently Asked Questions

  • A UUID (Universally Unique Identifier) is a 128-bit identifier formatted as 8-4-4-4-12 hexadecimal characters (e.g., 550e8400-e29b-41d4-a716-446655440000). The probability of generating two identical UUID v4s is astronomically low — approximately 1 in 5.3 × 10^36.
  • UUID v4 is entirely random (122 random bits) and the most widely used. UUID v1 incorporates the current timestamp and MAC address, making it traceable to a machine and time — a privacy concern. UUID v7 (RFC 9562, 2024) uses a Unix millisecond timestamp prefix followed by random bits, so UUIDs are sortable by creation time — ideal for database primary keys.
  • GUID (Globally Unique Identifier) is Microsoft's implementation of UUID. GUIDs are functionally equivalent to UUIDs. Microsoft often wraps them in braces: {550e8400-e29b-41d4-a716-446655440000}. Both follow RFC 4122 (now superseded by RFC 9562 for v6/v7/v8).
  • UUID v4 is purely random, which causes severe index fragmentation in B-tree indexes (like PostgreSQL or MySQL primary key indexes). Every new v4 UUID inserts at a random position, requiring constant page splits. UUID v7's timestamp prefix ensures new UUIDs are always inserted at the end of the index, like auto-incrementing integers, giving much better write performance.
  • The NIL UUID is a special UUID with all 128 bits set to zero: 00000000-0000-0000-0000-000000000000. It is defined in RFC 4122 and used as a null or placeholder value, similar to null in programming. It is guaranteed to never be generated randomly.

Related Calculators

Sources & References (5)
  1. RFC 4122 — A Universally Unique IDentifier (UUID) URN Namespace — IETF
  2. RFC 9562 — Universally Unique IDentifiers (UUIDs) v6/v7/v8 (2024) — IETF
  3. Microsoft GUID Documentation — Microsoft
  4. PostgreSQL uuid-ossp module — PostgreSQL Global Development Group
  5. Python uuid module documentation — Python Software Foundation