Database and API keys
Create primary keys, record IDs and idempotency keys that can be made offline and never collide.
Generate up to 1,000 UUIDs at a time using your browser’s secure random generator. Choose random v4, sortable v7 or name-based v5, format them as plain lines, a JSON array or a quoted SQL list, and paste any UUID to check its version and creation time. Nothing is sent to a server.
Understand UUID versions, choose the right one, and use them safely in databases and apps.
A UUID (universally unique identifier) is a 128-bit label written as 32 hexadecimal digits, like 123e4567-e89b-42d3-a456-426614174000. It lets separate systems create IDs on their own, without a central counter, and still be confident that no two IDs will ever be the same.
Developers use them as database keys, file names, session tokens, device IDs and correlation IDs in logs. This generator makes random (v4), time-ordered (v7) and name-based (v5) UUIDs in bulk, formats them as you need, and can check any UUID you paste. For related developer tasks, try the Binary to Decimal Converter and the Case Converter.
Create primary keys, record IDs and idempotency keys that can be made offline and never collide.
Fill spreadsheets, JSON files and seed scripts with realistic unique identifiers in one click.
Make device IDs, request IDs and file names, or compare the output against UUID.randomUUID() in Kotlin and Java.
| Version | How it is made | Best for |
|---|---|---|
| v1 | Time and a node (often a MAC address) | Legacy systems. It can reveal when and where it was made. |
| v4 | 122 random bits | General use. Unpredictable and the most widely supported. |
| v5 | SHA-1 hash of a namespace and a name | The same input must always give the same ID. |
| v7 | Millisecond timestamp plus random bits | Database keys. They sort by creation time and index well. |
| Nil / Max | All zeros / all ones | Placeholders and special values. |
This page uses the browser’s cryptographically secure random generator for v4 and v7, the same source that crypto.randomUUID() uses. Version 7 is defined in RFC 9562, which replaced RFC 4122 in 2024.
A v4 UUID has 122 random bits. You would need to create around 2.7 quintillion of them (2.7 × 1018) before there was even a 50% chance of one duplicate. For practical purposes, collisions do not happen unless the random source is broken.
Uniqueness is not secrecy. A UUID is fine as an identifier, but for passwords, API secrets or password-reset tokens, use a purpose-built token generator with enough length and a security review.
UUIDs are generated in your browser and are never sent to our server. Only your chosen type, count and format are remembered on your device.
Version 1, 3 and 6 are not generated here, though version 1 can be inspected. Version 7 values created in a very short burst are kept in order, but ordering across different browsers or machines depends on their clocks.
A UUID is a 128-bit identifier written as 32 hexadecimal digits in groups of 8-4-4-4-12. It is designed so that anyone can generate one without coordination and be almost certain that it is unique.
They are the same thing. GUID is the name Microsoft uses, and UUID is the name used in the standards. Both are 128-bit values in the same format.
Use version 4 for general-purpose random IDs. Use version 7 for database keys, because its timestamp prefix makes IDs sort by creation time. Use version 5 only when you need the same input to always give the same ID.
In theory yes, in practice no. With 122 random bits in a v4 UUID, you would need billions of billions of IDs for a realistic chance of a duplicate, provided the random source is good.
No. UUIDs are meant to be unique, not secret. Use a dedicated cryptographic token generator for passwords, API keys and reset links.
Yes. Versions 4 and 7 draw their random bits from the browser’s cryptographically secure generator, crypto.getRandomValues, which is what crypto.randomUUID() uses too.
It hashes a namespace UUID and a name together with SHA-1 and formats the result as a UUID. The same namespace and name always give the same UUID, which makes it good for stable IDs. Anyone who knows the inputs can recompute it.
The first 48 bits are the Unix time in milliseconds, so UUIDs made around the same moment begin the same way. That is what makes them sort by time. The rest is random, with a counter that keeps them in order within a millisecond.
No. They are created in your browser and never leave your device. Only your type, count and format choices are remembered.
Yes. Add ?type=v7&count=10 to the page address. Types are v4, v7, v5, nil and max.
The homepage features dozens more free tools that don't require an API key.
Create Code 128, Code 39, EAN, UPC and ITF barcodes as PNG or SVG.
Open toolBuild colour palettes from any base colour and export them as code.
Open toolEliminate extra spaces and clean up messy line spacing.
Open toolCompare two texts line by line to see what has changed.
Open toolNo matching question.
Share your thoughts on this tool with other visitors.