UUID Generator
Generate and validate Universally Unique Identifiers (UUID v4)
🎲 Generate UUIDs
✅ UUID Validator
📖 What is a UUID?
A Universally Unique Identifier (UUID) is a 128-bit number used to uniquely identify information in computer systems. UUID v4 uses random or pseudo-random numbers.
- • 128-bit number (16 bytes)
- • Format: xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx
- • Version 4: Random generation
- • 2^122 possible UUIDs (very low collision probability)
💡 Common Use Cases
- • Database primary keys
- • API request/response IDs
- • Session identifiers
- • File naming and organization
- • Distributed system identifiers
- • Transaction tracking
- • Object references in software
Overview
The UUID Generator creates version 4 UUIDs (universally unique identifiers) in batches of 1, 5, 10 or 50, in lowercase or uppercase, and includes a validator that checks whether any string is a correctly formatted UUID and which version it is.
A UUID is a 128-bit value written as 32 hexadecimal digits in five groups, 8-4-4-4-12, for example 550e8400-e29b-41d4-a716-446655440000. Version 4 UUIDs are random: 6 bits are fixed to mark the version (the first digit of the third group is always 4) and the variant, leaving 122 random bits, or about 5.3 × 10³⁶ possible values. This page uses the browser's crypto.randomUUID, or crypto.getRandomValues as a fallback, so the values come from a cryptographically secure source and are generated on your device.
The validator follows RFC 9562, which replaced RFC 4122 in 2024. It accepts versions 1 to 8 with the standard variant, plus the special Nil and Max UUIDs.
How to Use
- Click Generate 1, Generate 5, Generate 10 or Generate 50. New UUIDs are added to the top of the list.
- Tick Uppercase if your system expects capital letters; existing UUIDs in the list switch case too.
- Click the copy icon beside a UUID to copy just that one, or Copy All to copy the whole list, one UUID per line. Click Clear All to empty the list.
- To check an existing identifier, paste it into the UUID Validator field. The result shows whether it is valid and, if so, its version.
Frequently Asked Questions
What is a UUID and what is it used for?
A UUID is a 128-bit identifier designed to be unique without a central authority handing out numbers. Systems can create them independently, on different servers or offline devices, with a negligible chance of clashing. They are commonly used as database primary keys, request and transaction IDs, file names and identifiers in distributed systems. Microsoft calls the same format a GUID (globally unique identifier).
Can two UUID v4 values ever be the same?
In theory yes, but the probability is extraordinarily small. A version 4 UUID has 122 random bits, or about 5.3 × 10³⁶ possibilities. By the birthday approximation, you would need to generate roughly 2.7 × 10¹⁸ UUIDs, billions of them every second for decades, before reaching even a 50% chance of a single duplicate. Collisions in practice almost always come from faulty random number generators, not from the format.
What is the difference between UUID v1, v4 and v7?
Version 1 combines a timestamp with the generating machine's MAC address, which can reveal when and where it was created. Version 4 is fully random apart from the version and variant bits. Version 7, added in RFC 9562, starts with a Unix millisecond timestamp followed by random bits, so values sort in creation order, which can make database indexes faster. This page generates version 4 only but can validate all versions.
How can I tell which version a UUID is?
Look at the first character of the third group. In 550e8400-e29b-41d4-a716-446655440000 the third group is 41d4, so it is version 4. The first character of the fourth group indicates the variant; for standard UUIDs it is 8, 9, a or b. Paste a UUID into the validator on this page and it will report the version automatically, or identify the all-zero Nil UUID and the all-f Max UUID.
Are UUIDs case-sensitive?
No. RFC 9562 says UUIDs should be generated in lowercase but must be accepted in either case, so 550E8400-E29B-41D4-A716-446655440000 and its lowercase form are the same identifier. Some systems compare them as plain text, though, so stick to one case consistently in your database and code. The Uppercase checkbox lets you match whatever your system expects, and the validator accepts both.
Is a UUID v4 safe to use as a secret token?
UUIDs generated here come from a cryptographically secure random source, so they are hard to guess. However, the UUID specification does not promise secrecy, and other tools may create UUIDs with weaker generators. For password reset links, API keys or session tokens, use a token generator designed for that purpose, typically with at least 128 random bits, and treat UUIDs as identifiers rather than credentials.