UUID Generator
Random v4 or time-ordered v7 UUIDs (GUIDs), one or a thousand at a time. Made with your browser's secure random generator; nothing is sent anywhere.
Which version should I use?
- v4 — random. The default almost everywhere: IDs that reveal nothing.
- v7 — the creation time in milliseconds, then random bits (RFC 9562). IDs sort in creation order, which keeps database indexes compact and fast. It does reveal roughly when the ID was made.
- Nil — all zeros, used as a "no value" placeholder.
Questions
What's the difference between UUID v4 and v7?
v4 is 122 random bits. v7 starts with the current time in milliseconds followed by random bits, so v7 UUIDs sort in creation order, which keeps database indexes compact. Both are practically unique.
Is a UUID the same as a GUID?
Yes. GUID is Microsoft's name for the same 128-bit identifier. Use the uppercase and braces options for the usual GUID formatting.
Are these UUIDs secure?
They come from your browser's cryptographically secure random generator (crypto.getRandomValues) and are never sent anywhere. Don't use UUIDs as passwords or secret tokens, though; use a password generator for that.