UUID Generator — v4 and v7
Generate one or hundreds of UUIDs. Version 4 is fully random; version 7 is ordered by creation time.
Text Tools
Generate one or hundreds of UUIDs. Version 4 is fully random; version 7 is ordered by creation time.
A UUID (Universally Unique Identifier), called a GUID in Microsoft ecosystems, is a 128-bit ID written as 32 hexadecimal digits in five groups: 8-4-4-4-12, for example 3f2b8c1e-9d4a-4e7b-b1c2-5a6f7e8d9c0b. UUIDs let separate systems create IDs independently — on different servers, phones or browsers — without asking a central database for the next number, and without realistic risk of two being the same.
| Version 4 | Version 7 | |
|---|---|---|
| Built from | 122 random bits | 48-bit Unix timestamp (ms) + 74 random bits |
| Sort order | Random | Sorts by creation time |
| Database indexes | Inserts scatter across the index | Inserts append near the end — faster and smaller |
| Reveals creation time | No | Yes, to the millisecond |
| Best for | Tokens, public IDs, anything that should not leak timing | Primary keys, event IDs, logs |
Version 7 was standardised in RFC 9562 (2024), which replaced the original RFC 4122. It is now the recommended choice for database primary keys in PostgreSQL, MySQL and similar systems, because time-ordered keys keep B-tree indexes compact.
A v4 UUID has 2122 possible values, about 5.3 × 1036. You would need to generate roughly 2.7 quintillion (2.7 × 1018) of them before there is even a 50% chance of a single duplicate. In practice, collisions only happen when the random number generator is broken. This tool uses crypto.getRandomValues, the browser's cryptographically secure source, for every UUID.
UUIDs are generated in your browser and never sent to a server.
Password Generator, Hash Generator, JSON Formatter, JWT Decoder.