What the UUID Generator does
A UUID (universally unique identifier), also called GUID on Windows, is a 128-bit identifier written as 32 hexadecimal digits in five groups, for example 3f2b8c1e-9d4a-4f6b-8a2e-1c7d5e9f0a3b. Because UUIDs can be created independently on any computer without a central registry, they are widely used as database keys, file names, request IDs and identifiers in distributed systems.
This generator creates random version 4 UUIDs — 1, 5, 10, 25, 50 or 100 at a time. You can switch to uppercase, remove the hyphens or wrap each value in curly braces, which is the format used by Microsoft tools and the Windows registry. Copy the whole list with one click.
The UUIDs are generated in your browser using its cryptographically secure random number generator. They are not sent to or stored on any server, so every ID you see exists only on your screen.
When to use it
Database records
Use UUIDs as primary keys when records are created in several places, such as mobile apps that sync later, without risking duplicate IDs.
Test data
Generate a batch of IDs for fixtures, mock APIs, spreadsheets or seed scripts.
Software development
Create identifiers for message queues, correlation IDs in logs, idempotency keys or new project and component GUIDs.
Unique file names
Name uploads or exports with a UUID so files never overwrite each other.
Tips for the best results
- Keep the standard lowercase, hyphenated format unless a system requires something else; it is what RFC 9562 recommends.
- Store UUIDs in a native UUID or 16-byte binary column where your database supports it — it is smaller and faster than text.
- Version 4 UUIDs are random, so they are not sorted by time. If you need time-ordered keys for database indexes, look at UUID version 7.
- Do not use a UUID as a secret such as a password-reset token unless your framework explicitly allows it; dedicated token generators are safer.
How the UUID Generator works
A version 4 UUID consists of 122 random bits. The remaining 6 bits are fixed: the 13th hexadecimal digit is always “4” (the version), and the 17th is always 8, 9, a or b (the variant). That is why every v4 UUID has the form xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx.
The tool uses crypto.randomUUID() where available, or crypto.getRandomValues() with the version and variant bits set manually in older browsers. Both draw from the operating system’s secure random source, not from the predictable Math.random().
With 2¹²² possible values, you would need to generate about a billion UUIDs per second for around 85 years to have a 50% chance of a single collision.