What is a UUID?
A UUID — Universally Unique Identifier — is a 128-bit number used to identify something without a central registry handing out the numbers. It is written as 32 hexadecimal digits in five groups, 8-4-4-4-12, separated by hyphens: 550e8400-e29b-41d4-a716-446655440000. That string is 36 characters long, and it is the form you will see in database rows, API responses, log files and configuration files. The format is standardised by RFC 9562, which replaced RFC 4122 in 2024; anything built to either standard reads the same values.
The point of a UUID is that two people, on two machines that have never spoken to each other, can each generate an identifier and be confident the two will never collide. A version 4 UUID has 122 random bits, which gives about 5.3 × 1036 possible values. You would need to generate roughly a billion UUIDs per second for about 85 years before the chance of a single collision reached 50%. In practice, UUIDs are unique — that is the whole design.
How to generate a UUID
- Pick a version. Version 4 (random) is the default and the right answer for almost everything. Version 1 (timestamp-based) is for IDs that should sort roughly in creation order. NIL is the all-zeros placeholder — it is a fixed value, not a random one.
- Set how many you need. One UUID is the default. Set the count up to 100 when you need test data or database seeds — every UUID in the batch follows the same version and format rules.
- Choose a format. Standard lowercase with hyphens works everywhere. Switch to uppercase, drop the hyphens for a compact 32-character form, or wrap the value in braces for .NET and Windows. Changing a format option re-formats the values on screen; it never regenerates them.
- Copy or download. Copy one UUID with its own button, copy the whole batch with Copy all, or download the list as a plain text file — one UUID per line, ready to paste into a script or a seed file.
- Check a UUID you were given. Paste it into the checker below the generator. It reports the version and the variant, and for version 1 UUIDs it decodes the timestamp embedded in the value.
Which version should you use?
| Version | Built from | Use it for | Watch out for |
|---|---|---|---|
| v4 — random | 122 random bits | Record IDs, API resources, sessions, test data — the default | Random insert order can fragment some database indexes at scale |
| v1 — timestamp | Current time + random node ID | IDs that should sort in creation order; append-heavy tables | Reveals roughly when it was created; two in the same millisecond need a counter |
| NIL | Nothing — all zeros | Placeholder for “no value yet” in tests, seeds and optional fields | It is one fixed value, so it identifies nothing |
Version 4 is the one to reach for unless you have a specific reason not to. All 122 bits come from a cryptographic random source — in this tool, your browser’s crypto.getRandomValues, the same source used for TLS keys — and the remaining 6 bits carry the fixed version (0100) and variant (10) marks. Nothing in a v4 UUID reveals when it was made, where it was made, or what it identifies. That is usually exactly what you want from an identifier.
Version 1 trades that opacity for order. Its first 60 bits are a timestamp — the number of 100-nanosecond ticks since 15 October 1582 — so UUIDs generated later sort after UUIDs generated earlier, which keeps append-heavy database indexes compact instead of scattering inserts at random. The rest is a 14-bit clock sequence and a 48-bit node ID. One honest caveat: a browser cannot read a hardware MAC address, so the node ID in the v1 UUIDs made here is random, with the multicast bit set, exactly as RFC 4122 prescribes when no real address is available. The timestamp itself is real, so a v1 UUID does reveal roughly when it was created — do not use v1 for anything where the creation time should stay private.
NIL is not a version at all in the generating sense: it is the single fixed value 00000000-0000-0000-0000-000000000000, all 128 bits zero. It exists so that “no UUID yet” has a standard spelling. Use it in test fixtures, database seeds and optional fields where the schema demands an ID but no real value exists yet. Generating it always gives the same result — that is the point.
Two versions this tool deliberately does not generate are v3 and v5, the name-based versions: they hash a namespace and a name, so the same inputs always produce the same UUID. They are useful for deriving a stable ID from a name, but for most day-to-day work v4 covers the need.
Format options, explained
A UUID is one 128-bit value, but it is written in several forms, and different systems expect different ones. The standard form is lowercase with hyphens — 550e8400-e29b-41d4-a716-446655440000 — and it is the default here because every library and database accepts it. Uppercase (550E8400-E29B-41D4-A716-446655440000) is the same value in different case; UUID comparison is case-insensitive, so the two forms are interchangeable. The compact form drops the hyphens entirely — 32 characters, 550e8400e29b41d4a716446655440000 — which is handy in URLs and filenames. Braces wrap the standard form in curly braces — {550e8400-e29b-41d4-a716-446655440000} — the GUID style Microsoft tools use. The checker accepts all of these forms, plus a urn:uuid: prefix.
Bulk generation: test data and seeds
One UUID is rarely enough. Seeding a database, writing a test suite or load-testing an API all need dozens at once. Set the count to anything from 1 to 100 and you get a list, one UUID per row, each with its own Copy button — plus Copy all, which puts the whole list on the clipboard with one UUID per line, and Download .txt, which saves the same list as a file. Every UUID in a batch is freshly generated; the batch is never stored, logged or reused, and closing the tab clears it.
How to check a UUID
Sometimes the UUID comes to you: a value in a log file, a database row or an API response. Paste it into the checker and it tells you three things. First, whether it is valid at all — 32 hexadecimal digits in the right grouping. Second, which version it is: the version digit sits in a fixed position, so a v4 UUID always has a 4 there and a v1 always has a 1. Third, which variant it uses: the standard RFC 4122 variant is marked by a leading 8, 9, a or b in the fourth group. And if it is a version 1 UUID, the checker decodes the timestamp embedded in it and shows when it was created, in UTC and in your local time.
Common mistakes to avoid
- Using a UUID as a secret. A UUID is an identifier, not a password or a token. Version 4 UUIDs are unpredictable, but they are routinely logged, shared and stored in plain sight. Never use one as an API key or a session secret on its own.
- Using version 1 where the timestamp leaks. A v1 UUID reveals roughly when it was created, and in systems that use a real MAC address it reveals which machine made it. If either fact should stay private, use v4.
- Treating the NIL UUID as a real ID. All zeros is a placeholder. Two records with the NIL UUID are not the same record — they are both records with no ID yet. Give them real UUIDs before they meet a unique constraint.
- Storing UUIDs as text when the database has a native type. PostgreSQL, MySQL and SQL Server all have a UUID type that stores 16 bytes instead of 36 characters and compares faster. Text works everywhere, but the native type is cheaper at scale.
- Generating IDs on a server you do not trust. A UUID made on someone else’s server travelled over the network and was logged there. For anything security-sensitive, generate locally — which is what this page does.
Frequently asked questions
- What is a UUID?
- A UUID (Universally Unique Identifier) is a 128-bit identifier, written as 32 hexadecimal digits in five groups — 8-4-4-4-12 — separated by hyphens, for example 550e8400-e29b-41d4-a716-446655440000. The format is standardised by RFC 9562, which replaced RFC 4122 in 2024. Two independently generated UUIDs are, for practical purposes, never the same.
- Which UUID version should I use?
- Version 4 for almost everything: it is 122 random bits, carries no information about when or where it was made, and is the default in most libraries. Version 1 when IDs should sort roughly in creation order, for example append-heavy database tables. The NIL UUID — all zeros — is not generated at random; it is the standard placeholder meaning “no value yet”.
- Is this UUID generator safe?
- Yes. UUIDs are generated in your browser with the Web Crypto API (crypto.getRandomValues) and never leave your device. There is no server, no log and no account. You can verify it works offline after the page has loaded.
- Does the version 1 UUID contain my MAC address?
- No. A browser cannot read a hardware MAC address, so the node ID in the version 1 UUIDs made here is random, with the multicast bit set, exactly as RFC 4122 section 4.5 prescribes when no real address is available. The timestamp is real — it is the current time — so a version 1 UUID does reveal roughly when it was created.
- What is the NIL UUID for?
- The NIL UUID, 00000000-0000-0000-0000-000000000000, is the standard “empty” UUID. Use it as a placeholder in tests, database seeds and optional fields where an ID is required by the schema but no real value exists yet. It is a fixed value, so generating it always gives the same result.
- Can two UUIDs ever collide?
- In theory yes, in practice no. A version 4 UUID has 122 random bits, so about 5.3 × 1036 possible values. You would need to generate around a billion UUIDs per second for about 85 years before the chance of a single collision reached 50%. For any real workload, treat UUIDs as unique.
- What is the difference between a UUID and a GUID?
- Nothing, functionally. GUID (Globally Unique Identifier) is Microsoft’s name for the same 128-bit format. The only practical difference is convention: Microsoft tools often write GUIDs in uppercase and wrapped in curly braces, like {550E8400-E29B-41D4-A716-446655440000}. Use the uppercase and braces toggles above to match that style.
- How does the UUID checker work?
- Paste any UUID into the checker. It accepts the standard hyphenated form, the compact 32-character form, braces, and a urn:uuid: prefix. It reports whether the value is valid, which version it is, which variant it uses, and — for version 1 UUIDs — the timestamp embedded in it, shown in UTC and in your local time.
Privacy
Generated UUIDs never leave your browser. There is no account, no server log and no analytics on the values you generate — there is nothing to log, because nothing is sent anywhere. The only thing this page does with the network is load itself. Copy the UUIDs into your code, your database seed or your test file, and close the tab when you are done; nothing remains behind.
Share this tool
Copy the link below and paste it anywhere — a chat message, an email, a document. Whoever opens it gets the same free tool, with no account and nothing to install.