Code Tools · Guide
UUID Generator guide
Generate cryptographically secure UUID v4 values in bulk.
Open the UUID GeneratorAbout the UUID Generator
A UUID (Universally Unique Identifier) is a 128-bit value used as a database key, request ID, file name or idempotency key. Version 4 UUIDs are generated from random numbers, so they can be created anywhere without coordination.
This generator uses your browser's cryptographically secure random number generator (crypto.randomUUID() / crypto.getRandomValues()). It never uses Math.random(), which is predictable and unsuitable for identifiers.
How to use
- Set how many UUIDs you need (1–1,000).
- Optionally choose uppercase, remove hyphens or wrap values in braces.
- Click Generate. Copy a single value with its copy button, copy them all, or download a
.txtfile with one UUID per line.
Examples
Standard UUID v4
Output
3f2b8c1e-9d4a-4e7b-a1c6-5f0e2d9b7a34Uppercase without hyphens
Output
3F2B8C1E9D4A4E7BA1C65F0E2D9B7A34Anatomy of a UUID v4
A UUID is written as 32 hex digits in five groups: xxxxxxxx-xxxx-4xxx-Nxxx-xxxxxxxxxxxx. The 4 marks version 4 and N is always 8, 9, a or b (the RFC 9562 variant). The other 122 bits are random.
UUID vs GUID
GUID (Globally Unique Identifier) is Microsoft's name for the same thing. A GUID is a UUID; Windows tools often display them in uppercase and wrapped in braces, like {3F2B8C1E-9D4A-4E7B-A1C6-5F0E2D9B7A34} — use the formatting options to match.
Frequently asked questions
Can two generated UUIDs collide?
In practice, no. With 122 random bits you would need to generate about 2.7 quintillion UUIDs to have a 50% chance of a single duplicate.
Should I use UUID v4 or v7 as a database key?
v4 is fully random, which can fragment B-tree indexes on very large tables. UUID v7 embeds a timestamp and sorts by creation time. This tool currently generates v4, the most widely supported version.
Are these UUIDs secure enough for tokens?
They are generated with a CSPRNG, so they are unpredictable. However, for secrets such as session tokens or password-reset links, a dedicated random token of at least 128 bits is clearer about intent.
Are generated values stored?
No. UUIDs exist only in this page's memory until you navigate away.
Ready to try it? Everything runs locally in your browser.
Open the tool