UUID Generator.
How this generator works.
A UUID is a 128-bit number — 16 bytes — usually rendered as 32 hex digits with hyphens: xxxxxxxx-xxxx-Mxxx-Nxxx-xxxxxxxxxxxx. The M digit is the version; the leading bits of N are the variant. Both versions here use the OS-backed cryptographic random source via crypto.randomUUID() or crypto.getRandomValues().
// V4 — RANDOM
122 bits of entropy. No structure, no information leak. The default for most use cases — session IDs, public-facing references, any time you need a unique value with no ordering or correlation between IDs.
// V7 — TIME-ORDERED
First 48 bits encode a Unix-millisecond timestamp; the remaining 74 bits are random (after subtracting version + variant bits). Same uniqueness guarantees as v4 in practice, but the timestamp prefix means UUIDs sort in creation order. This is huge for database indexes — v7 inserts are append-friendly to B-trees while v4 scatters writes randomly.
Recommended for: new database primary keys (Postgres 18+ ships uuidv7() natively), event IDs, anywhere you want chronological ordering for free.
// FORMAT TOGGLES
- UPPER — uppercase hex digits. Some legacy systems require this.
- { BRACES } — wraps with curly braces. Common in C# / .NET interop.
- NO HYPHENS — strips the four hyphens. Useful for compact storage or URLs.
// BATCH GENERATION
Pick a count preset (1, 5, 10, 50, 100) and hit Generate. Use COPY ALLfor a newline-separated dump suitable for pasting into a database fixture, a test file, or a config.

