UUID Generator
Create one or many UUIDs. Version 4 is fully random; version 7 embeds a millisecond timestamp so IDs sort chronologically. All bytes come from your browser’s CSPRNG.
🔒 100% Client-Side & Private — processed locally in your browser. Files never leave your device.
Options
Your result will appear here
Type or paste your input above, adjust the options, then press Run. Tip: press Ctrl+Enter to run, and ? for every shortcut.
How it works
Versions four and seven and nil
Version 4 draws 122 random bits and sets the fixed version and variant bits, giving a value with no relationship to anything else. Version 7 writes the current millisecond timestamp into the first 48 bits and fills the rest at random, so values generated together sort chronologically. The nil option returns the all-zero UUID 00000000-0000-0000-0000-000000000000, useful as a sentinel.
Why v7 sorts and v4 does not
Because the most significant bits of a v7 are its creation time, lexicographic order equals creation order. That keeps clustered database index pages dense and makes a log of generated IDs easy to scan. Version 4 reveals nothing about when the value was made, so pick it when time information would be a privacy or ordering concern.
Shaping the output for your consumer
The count option emits up to 1000 IDs, one per line waiting for your columns or seed data. Uppercase changes the hex digits, braces wraps each value in { } for some languages and systems, and hyphens can be removed entirely for a 32-character hex string. A single run uses one base time for its v7 values, so they stay ordered even if generation spans a tick.
Randomness comes from the browser CSPRNG
Every random byte is drawn from crypto.getRandomValues, the browser cryptographic random source, so the output is suitable for identifiers and keys — not for any deterministic or predictable scheme. Generation is local, makes no request and uploads nothing, and the list is offered as a uuids.txt download when you want it saved.
Questions
Are these cryptographically random?
The random bits use crypto.getRandomValues, the browser CSPRNG. v7 also mixes in the current time so values are ordered.
When should I use v7 instead of v4?
v7 sorts by creation time, which keeps database indexes tighter and makes logs easier to scan. Use v4 when you want no time information leaked.
What is the nil UUID for?
The nil option returns the all-zero UUID 00000000-0000-0000-0000-000000000000. It is a sentinel value some APIs and data models use to mean "no id yet", and it is never generated by the random or time-ordered modes.
Related tools
See categoryNanoID Generator
Generate compact, URL-safe NanoIDs with unbiased randomness, in bulk.
ULID Generator
Generate sortable ULIDs (timestamp + randomness) in Crockford base32.
Random String Generator
Generate random strings from a chosen character set with an unbiased browser CSPRNG.
Password Generator
Generate strong random passwords with your browser CSPRNG — no bias, nothing uploaded.