UUID Generator
Generate UUIDs (Universally Unique Identifiers) for database keys, test data and more.
How the UUID Generator works
Generate a random version 4 UUID with one click, using your browser's built-in crypto.randomUUID() function.
- Click Generate UUID.
- Read the new UUID under Generated UUID: 36 lowercase characters, for example 3f2b8c1e-9d4a-4f6b-a2c7-5e1d0b9f8a34.
- Select the text and copy it. There is no copy button.
- Click Generate UUID again for another one. Each click replaces the previous UUID.
What a version 4 UUID contains
A UUID is 128 bits written as 32 hexadecimal digits in groups of 8-4-4-4-12. In a version 4 UUID, the first digit of the third group is always 4 (the version) and the first digit of the fourth group is 8, 9, a or b (the variant). The remaining 122 bits come from the browser's cryptographically secure random number generator.
How likely is a duplicate?
There are 2^122, about 5.3 × 10^36, possible version 4 UUIDs. You would need to generate roughly 2.7 × 10^18 of them before the chance of any duplicate reached 50%, so for practical purposes each one is unique without checking against a central list.
UUIDs are generated on your device and are not logged or sent anywhere.
Frequently asked questions
What is a UUID v4?
It is a 128-bit identifier made almost entirely of random bits, defined in RFC 9562. Because it is random rather than based on a counter or clock, any system can generate one independently without coordinating with others.
Are UUIDs really unique?
Not guaranteed, but a collision is so unlikely that it is ignored in practice. With 122 random bits, generating a billion UUIDs per second for about 85 years gives roughly a 50% chance of a single duplicate.
What is the difference between a UUID and a GUID?
They are the same format. GUID is Microsoft's name for it, and GUIDs are often written in uppercase or inside braces. This tool outputs lowercase without braces, which most systems accept either way.
Can I generate many UUIDs at once?
No. The tool creates one UUID per click. For bulk generation, call crypto.randomUUID() in a browser console or script, or use your language's UUID library.
Can I use a UUID as a password or secret token?
It is not recommended. These UUIDs are random, but RFC 9562 advises against treating UUIDs as hard to guess, and identifiers tend to end up in logs and URLs. Use a dedicated token or password generator for secrets.
Should I use UUID v4 or v7 for database keys?
v7 UUIDs start with a timestamp, so new keys sort in creation order and keep database indexes compact. v4 UUIDs are fully random, which spreads inserts across an index. This tool generates v4 only.
Similar Developer tools
Hex to RGB Converter
Convert hexadecimal color codes to RGB color values effortlessly with our Hex to RGB Converter. Perfect for web and graphic designers.
Markdown Previewer
Preview your Markdown content in real-time with our Markdown Previewer. Perfect for documentation, notes, and blog posts.
Base64 Encoder/Decoder
Encode and decode UTF-8 text as standard Base64. Supports Unicode; this is encoding, not encryption.