🆔 UUID Generator
Cryptographically random v4 or sortable v7 UUIDs, one or a thousand, ready to paste into code or a database.
How to use the UUID Generator tool
- Pick v4 (random) or v7 (time-ordered).
- Set how many and the format (uppercase, no hyphens, braces).
- Copy all or download as a .txt file.
Frequently asked questions
Should I use UUID v4 or v7?
Use v7 for database primary keys: it starts with a millisecond timestamp, so new rows insert at the end of B-tree indexes and sort by creation time. Use v4 when you do not want the ID to reveal when it was created.
Can two generated UUIDs collide?
Practically never. v4 has 122 random bits; you would need about 2.7 quintillion IDs for a 50% chance of one duplicate. v7 adds a timestamp and monotonic counter on top of 62 random bits.
Are these UUIDs secure random?
Yes – they use crypto.getRandomValues, the browser's cryptographically secure generator, not Math.random. Still, do not use UUIDs as secret tokens; they are identifiers.
What is RFC 9562?
The 2024 standard that replaced RFC 4122. It keeps versions 1–5 and adds v6, v7 and v8; v7 is the recommended choice for new time-based IDs.