UUID Generator
Generate cryptographically random UUID v4s, or time-ordered UUID v7s that index far better as database primary keys.

A UUID generator produces 128-bit identifiers that are unique without a central authority. Version 4 is fully random; version 7 embeds a millisecond timestamp in the leading bits so IDs sort chronologically and index far better as primary keys.
Runs entirely in your browser · no signup · nothing is uploaded · updated 2026-08-29
Version
How many
122 random bits from crypto.getRandomValues.
How to use it
- 1.Pick v4 for pure randomness or v7 for time-ordered IDs.
- 2.Choose how many you need.
- 3.Copy them out - generation uses your browser's crypto API, so the values never touch a server.
Frequently asked questions
What is the difference between UUID v4 and v7?
v4 is 122 random bits. v7 puts a millisecond timestamp in the leading 48 bits, so IDs sort chronologically. Both are 128 bits and collision-safe in practice.
Should I use a UUID as a primary key?
Use v7, not v4. Random v4 keys scatter inserts across a B-tree index, causing page splits and bloat. v7 appends in order, so it behaves much more like a sequential key.
What are the odds of a collision?
For v4, you would need roughly 2.7 x 10^18 UUIDs before a 50% chance of one collision. It is not a practical concern.
Are these random enough for security tokens?
They come from crypto.getRandomValues, so yes for identifiers. For session or reset tokens, generate them server-side and store a hash.
Is UUID v7 safe to use in production yet?
Yes. It was standardised in RFC 9562 in 2024 and is supported by Postgres extensions, most ORMs and every major language's UUID library.
Does a UUID v7 leak information?
It leaks the creation time to the millisecond, since the timestamp is in plain sight. That is usually harmless, but do not use v7 where the creation time is sensitive.
UUID or ULID?
They solve the same problem. ULID is 26 characters in Crockford base32 and sorts lexically as a string; UUID v7 is the standardised, more widely supported equivalent. Prefer v7 unless you need the shorter text form.
Should UUIDs be stored as text?
No. Store them as a native uuid type in Postgres or a 16-byte binary column in MySQL. Storing as a 36-character string roughly doubles the index size for no benefit.
The guide behind this tool
Password strength: what entropy actually measures
What actually makes a password hard to guess, why forced rotation and complexity rules backfired, and how many bits of entropy you should be aiming for.
Cron expression cheatsheet with the mistakes that bite
Every cron field explained with worked examples, plus the off-by-one and timezone mistakes that quietly break scheduled jobs.
UUID v4 vs v7: which one should be your primary key
Why random UUIDs wreck database index performance, how UUID v7 fixes it with a timestamp prefix, and when a plain integer is still the right answer.
Tools that pair with this one
Base64 Encode / Decode
Encode text to base64 or decode it back, with full UTF-8 support and automatic handling of base64url input. Runs entirely in your browser.
Wildcard Mask Calculator
Convert a CIDR prefix or subnet into the wildcard mask Cisco ACLs and OSPF network statements expect, with the subnet mask and address range alongside it.
Diff Checker
Paste two versions of a text and see every added and removed line highlighted, computed in your browser with no upload.
CSV to JSON
Turn a CSV into an array of JSON objects in your browser, with proper handling of quoted fields, embedded commas and custom delimiters.
Built something?
RankCert is a weekly launch board where products rank on domain control we verify ourselves - not upvotes. Listing is free and the link is dofollow whether or not you display our badge.