uuid generator
Generate UUID v4, v7, v1, nil, and max identifiers. No install, no account, nothing sent to any server.
UUID versions explained
122 bits of CSPRNG randomness. No structure beyond version and variant bits. Best for most use cases — session IDs, API keys, database rows.
48-bit ms-precision Unix timestamp + 74 bits random. RFC 9562 (2024). Better for database primary keys — sequential inserts avoid B-tree page splits.
100-ns time + clock sequence + node ID (random here). Time fields are interleaved across the UUID structure. Superseded by v7 for new projects.
Nil is all zeros. Max is all ones (ffffffff-…). Both are RFC 9562 sentinels — useful as default/placeholder or range boundary values.
FAQ
crypto.randomUUID() or crypto.getRandomValues() — the same CSPRNG that browsers use for TLS. v7 uses crypto.getRandomValues() for the random bits and Date.now() for the timestamp. Neither v4 nor v7 can be predicted by an attacker.uuid npm package or Python’s uuid.uuid4().