Generate UUID v1, v4, v7 — bulk generation, validation & formatting
Generate universally unique identifiers (UUIDs) in v1 (timestamp-based), v4 (cryptographically random) and v7 (Unix millisecond sortable) formats. All UUIDs are generated using the Web Crypto API for true randomness. Includes bulk generation and UUID validation.
v1 (timestamp + MAC), v4 (random), v7 (Unix ms, sortable) and NIL (all zeros).
Generate up to 100 UUIDs at once and copy all with a single click.
Validates UUID format and identifies the version from any pasted UUID.
Output with/without hyphens, in {braces}, uppercase or lowercase.
Copy individual UUIDs or the entire bulk list to clipboard instantly.
v4 generation uses crypto.getRandomValues() — never Math.random().
For new distributed systems, prefer UUID v7 over v4 as your primary key. The time-ordered nature of v7 significantly reduces B-tree index fragmentation in relational databases, improving INSERT performance by 2–5× at scale compared to random v4 UUIDs.
| Version | Method | Sortable? | Deterministic? | Best Use Case |
|---|---|---|---|---|
| v4 | Random (crypto) | No | No | General purpose IDs, tokens, keys |
| v7 | Unix ms + random | Yes (ms) | No | DB primary keys, time-sorted IDs |
| v6 | Reordered timestamp | Yes (100ns) | No | Upgrade of v1, sortable IDs |
| v1 | Gregorian ts + node | Yes (100ns) | No | Legacy systems only |
| v5 | SHA-1(ns + name) | No | Yes | Stable IDs from existing data |
| v3 | MD5(ns + name) | No | Yes | Legacy v5 equivalent (avoid) |
| NIL | All zeros | N/A | N/A | Null/empty UUID placeholder |
| MAX | All ones | N/A | N/A | Max/end-of-range sentinel value |