UUID Generator (v4 & v7)
Create unique IDs for database rows, files, requests and test data. Version 4 is fully random; version 7 starts with the creation time, so new IDs sort after older ones and keep database indexes compact. The checker tells you the version of any UUID and when a v7 or v1 UUID was made.
How to use this tool
- Choose version 4 (random) or version 7 (time-ordered).
- Set how many you need, up to 100.
- Choose uppercase or no hyphens if your system needs them.
- Copy one UUID or all of them. Paste any UUID in the checker to see its version and variant.
What this tool can do
Version 4 and version 7
Both follow RFC 9562. Version 4 has 122 random bits; version 7 has a 48-bit Unix time in milliseconds followed by random bits.
Bulk and formats
Up to 100 at once, in lowercase or uppercase, with or without hyphens, ready to paste into SQL or a fixture file.
Validator
Checks a UUID or GUID (with braces or urn:uuid: too), shows its version and variant, and reads the creation time of version 7 and version 1 UUIDs.
Secure randomness
Random bits come from crypto.getRandomValues, so the IDs cannot be predicted.
Tips and common problems
v4 or v7 for a database key?
v7. Because it grows with time, new rows land at the end of the index instead of at random places, which keeps inserts fast in PostgreSQL, MySQL and SQL Server.
Does a v7 UUID reveal anything?
It shows when it was created, to the millisecond. If that must stay hidden, use v4.
GUID or UUID?
GUID is Microsoft's name for the same 128-bit identifier. Use uppercase with braces if a Windows tool asks for that form.
Frequently asked questions
Can two generated UUIDs be the same?
In practice no. With 122 random bits you would need to create billions of UUIDs every second for many years before a duplicate became likely.
Are the UUIDs generated on a server?
No. They are created in your browser and nothing is recorded.
What is the difference between UUID v4 and v7?
v4 is completely random. v7 begins with the current time, so v7 IDs sort by creation time while still having 74 random bits.
Is a UUID a good secret or API key?
No. A UUID is an identifier, not a secret. For tokens and keys use the Secret Key Generator, which gives 256 bits of randomness.
More developer tools
Secret Key Generator
Random secrets in hex, Base64 or Base64URL, API keys and passwords, with the entropy shown.
Open tool →Hash Generator
MD5, SHA-1, SHA-256, SHA-384 and SHA-512 of text or files, HMAC, and checksum comparison.
Open tool →Key Pair Generator
RSA, ECDSA and Ed25519 key pairs as PEM, PKCS#1, OpenSSH and JWK, with the SSH fingerprint.
Open tool →