UUID Generator
Generate UUID v4, v7 or v1, one at a time or up to 1,000. Output as standard, uppercase, braces (GUID), no hyphens, URN or Base64, and decode any UUID you paste.
Generating…
01 · Definition
What is a UUID?
A UUID (universally unique identifier) is a 128-bit value written as 32 hexadecimal digits in five groups, such as 76b8143e-15e4-4924-a9cf-472faf048983. It can be generated on any machine without a central registry and still be unique in practice. RFC 9562 defines the format and its versions; version 4 is random and version 7 is time-ordered.
02 · Overview
How the UUID Generator works
Generates version 4 (random), version 7 (Unix-time ordered) and version 1 (timestamp and node) UUIDs, 1, 10, 100 or 1,000 at a time, with copy and .txt download. Format options cover lowercase or uppercase, no hyphens, {braces} as used for GUIDs, urn:uuid: and Base64. The decoder accepts any of those notations and shows the version and variant, the embedded UTC timestamp for v1, v6 and v7, and the clock sequence and node for v1 and v6. UUIDs are generated in your browser and are not sent to our server.
03 · Guide
UUID v4 vs v7 vs v1
Six bits of every UUID are fixed: four for the version and two for the variant. The other 122 bits depend on the version. Version 4 fills them with random data. Version 7 puts a 48-bit Unix timestamp in milliseconds first, then 74 bits of random or counter data, so values created later sort later as text and as bytes. Version 1 stores a 60-bit timestamp counted in 100-nanosecond steps from 15 October 1582, a 14-bit clock sequence and a 48-bit node.
Use v4 when the ID should reveal nothing and order does not matter. Use v7 for database primary keys, where roughly increasing values keep index inserts at the end of the index. Use v1 only for compatibility with systems that expect it. Both v1 and v7 reveal when they were created; the decoder on this page shows that time.
| Version | Contents | Sorts by time | Reveals creation time |
|---|---|---|---|
| v4 | 122 random bits | No | No |
| v7 | 48-bit Unix ms timestamp + 74 random or counter bits | Yes | Yes, to the millisecond |
| v1 | 60-bit timestamp + 14-bit clock sequence + 48-bit node | No | Yes, to 100 nanoseconds |
04 · Guide
How likely is a UUID collision?
A version 4 UUID has 122 random bits, so there are 2^122, about 5.3 × 10^36, possible values. By the birthday bound you would need to generate about 2.7 × 10^18 of them, 2.7 quintillion, for a 50% chance that any two are the same. Collisions in practice come from a broken random source, not from the size of the space.
05 · Guide
UUID vs GUID
GUID (globally unique identifier) is Microsoft's name for the same 128-bit identifier. The values are interchangeable. The difference is notation: Windows tools and .NET often write a GUID in uppercase inside braces, {76B8143E-15E4-4924-A9CF-472FAF048983}. Choose the {Braces} format and Uppercase to get that form.
06 · Use cases
When to use the UUID Generator
- 01
Generate a primary key for a test row
- 02
Fill a fixture file with 1,000 IDs and download them as a text file
- 03
Get a time-ordered UUID v7 for a sortable identifier
- 04
Paste a UUID from a log to find its version and when it was created
07 · Examples
UUID Generator examples
1 UUID, version 4
ex 0176b8143e-15e4-4924-a9cf-472faf048983
A random UUID. The 4 after the second hyphen is the version.
3 UUIDs, version 7
ex 0201a1ca50-0732-702c-8929-08ba1e83104c, 01a1ca50-0732-702c-8929-0d4ae6326104, 01a1ca50-0732-702c-8929-10c080c28e08
Generated in the same millisecond, so the first 12 hex digits (the timestamp) are equal and the rest still increases.
Version 4, {Braces} format, Uppercase
ex 03{76B8143E-15E4-4924-A9CF-472FAF048983}
The notation Windows and .NET tools use for a GUID.
Decode 017f22e2-79b0-7cc3-98c4-dc0c0c07398f
ex 04Valid UUID, version 7 · Variant RFC 9562 · Timestamp 22 Feb 2022, 19:22:22.000 UTC
The version 7 test vector from RFC 9562, Appendix A.
Decode c232ab00-9414-11ec-b3c8-9f6bdeced846
ex 05Valid UUID, version 1 · Timestamp 22 Feb 2022, 19:22:22.000 UTC · Clock sequence 13,256 · Node 9f:6b:de:ce:d8:46
The version 1 test vector from RFC 9562, Appendix A.
08 · FAQ
UUID: frequently asked questions
What is the difference between UUID v4 and v7?
Are these UUIDs random enough to use as IDs?
Can it decode or validate a UUID?
How do I generate a GUID?
What is UUID v8, and can this tool generate it?
Does a v1 UUID expose my MAC address?
How many UUIDs can I generate at once?
Should I store UUIDs as text or binary in a database?
09 · Guides
UUID guides
- UUID v4 vs v7: Differences and Which to Use→
UUID v4 is 122 random bits. UUID v7 starts with a millisecond timestamp, so IDs sort by creation time. Bit layouts, collision odds and when to use each.
- UUID vs ULID vs Nano ID: Size, Sorting and Collisions→
UUID, ULID and Nano ID compared: length, alphabet, random bits, whether they sort by time, and computed collision odds. With a guide to choosing one.
10 · Reference
Specs and further reading
These are the primary sources this tool follows. Where a specification defines the behaviour, we link the specification, not a summary of it.
- RFC 9562: Universally Unique IDentifiers (UUIDs)
IETF. The current UUID specification (May 2024). Defines versions 1 to 8, the nil and max UUIDs, and the test vectors used in the examples above.
- RFC 4122: A Universally Unique IDentifier (UUID) URN Namespace
IETF. The 2005 specification, obsoleted by RFC 9562 but still widely cited.
- Crypto.getRandomValues()
MDN Web Docs. The browser's cryptographically secure randomness source.
11 · More
Tools that pair with UUID
Hash Generator
Hash text or a file with MD5, SHA-1, SHA-256 or SHA-512, and compare it with an expected checksum. Create and check bcrypt password hashes.
API Key Generator
Generate random API keys and secrets with an optional prefix such as sk_test_. Choose base64url, alphanumeric, base32 or hex, 8 to 96 characters, up to 100 keys.
Random Number Generator
Generate random integers or decimals between any two numbers, up to 10,000 at a time. Allow or forbid repeats, and add a seed for a repeatable sequence.
Cron Expression GeneratorAI-powered
Turn plain English into a cron expression, or paste one to get a plain-English reading, a field-by-field breakdown and its next 5 run times.
JWT Decoder & Encoder
Decode a JWT to read its header and claims, verify its signature with a secret or public key, and sign new tokens with HS, RS, PS and ES algorithms.
JSON to TypeScript Types
Paste JSON and get TypeScript interfaces, type aliases, a Zod schema or a Valibot schema. Updates as you type, in your browser.