UUID Generator
Create unique identifiers for databases, tests and APIs.
OUTPUT
CHARS: 0WORDS: 0LINES: 0
How the UUID Generator works
Version 4 UUIDs are 122 random bits, formatted as the familiar 8-4-4-4-12 groups, and they are the usual choice when you just need a unique ID. Version 7 UUIDs begin with a millisecond timestamp followed by random bits, so they sort in creation order, which makes database indexes more efficient.
Generate up to 1000 at a time, and use the options to produce uppercase values, remove hyphens for a compact 32 character form, or wrap each in braces as some Windows tools expect.
UUID Generator examples
Generate random RFC 4122 v4 UUID
Input
[Standard UUID v4]
Result
3b9a8f21-7c4d-4e89-a1b2-0f3d5e7c9a1b
When it is useful
- •Seeding databases and fixtures with unique keys.
- •Creating correlation IDs and request IDs.
- •Generating file and record names that never collide.
- •Choosing time ordered keys for tables that are written heavily.
Frequently Asked Questions
Can two UUIDs ever be the same?
In practice no. With 122 random bits, the chance of a collision among billions of IDs is vanishingly small.
When should I pick version 7?
When the ID is a database primary key. Because they are roughly ordered by time, inserts land near each other in an index.
Is a UUID a secret?
Do not use them as passwords or access tokens unless generated by a secure random source and treated as secrets. Version 7 also reveals its creation time.
Guides that use this tool
Related tools
- Strong Password GeneratorCreate passwords that are long, random and different every time.
- Hash GeneratorGet the SHA family checksums of a string.
- Random Number GeneratorSet a range and a count and get unbiased random numbers.
- Random IP Address GeneratorMake sample IP addresses for tests, documentation and mock data.