X Xerobit

UUID Generator

Generate UUIDs in bulk — v4 (random) or v7 (time-sorted, the modern choice for database primary keys). Copy as JSON array, CSV, or SQL VALUES clause. Up to 10,000 at once.

Ready. Click Generate.

Live Market Insight

DataForSEO · 2026-04-25
Vol (US)
22,200
"uuid generator"
CPC
$5.99
Cluster
3 kws
Top competitor
uuidgenerator.net
3/10 SERPs

v4 vs v7 — which to use in 2026

v4 is 122 random bits plus 6 version/variant bits. Random throughout — great for opaque identifiers where order must not leak, bad for database primary keys (random insertion order destroys B-tree locality).

v7 (RFC 9562, 2024) puts a 48-bit Unix millisecond timestamp at the front, followed by random bits. Lexicographic sort = time sort. Use v7 for database primary keys, event IDs, log IDs, anything where you want "insert order ≈ creation time." Most new schemas in 2026 default to v7.

How to use

  1. Pick version (v4 default).
  2. Pick count (1–10,000). 10 is a common need for quick local testing.
  3. Toggle formatting — uppercase, no dashes (the 32-char hex form), or braces (.NET Guid style).
  4. Copy all, or export as JSON array, CSV, or SQL VALUES clause for direct paste.

How random is this?

Uses crypto.randomUUID() (native v4) and crypto.getRandomValues() for v7 entropy — both cryptographically secure, backed by your OS's CSPRNG. Collision probability for v4: after generating 1 billion UUIDs, the chance of any collision is about 1 in 2¹⁸ — which means never in practice.

When to use a UUID (and when not to)

FAQ

Why not v1 or v5?

v1 leaks MAC address + timestamp (privacy leak). v5 is for namespace-based IDs (rare). v4 and v7 cover ~99% of real use.

Can I use these as primary keys in MySQL?

v7, yes — use BINARY(16) for storage. v4 works but will fragment your clustered index. Either way, store as bytes, not VARCHAR.

Is this offline?

Yes. All randomness comes from your browser's CSPRNG. No network activity.

Related tools

Pillar

Part of Encoding & Crypto — Base64, URL, JWT, hashes, UUID, QR, password.


Written by Mian Ali Khalid. Last updated 2026-04-25.