UUID (GUID) generator
Generate random or time-ordered UUIDs in bulk, formatted the way you need.
How it works
Inside a UUID
Every UUID is 128 bits (16 bytes), written as 36 characters with hyphens or 32 without. A few of them say which version it is (the first digit of the third group, 4 or 7 here) and which variant (8, 9, a or b at the start of the fourth group). The rest carry the actual value.
- Version 4: 122 random bits. No meaning, no order.
- Version 7: the first 48 bits are the creation time in milliseconds, then 74 random bits. Newer IDs sort after older ones, which databases like.
Both are defined in RFC 9562 (2024), which updated the original UUID standard. DevBenchr uses your browser's cryptographically secure random number generator for the random bits.
Wondering about versions 1, 3, 5, 6 and 8, what RFC 9562 changed, or how v7 helps database indexes? See UUID versions explained, which also lists the length of a UUID in every common format.
More tools
More on the bench
- JSON formatter and validatorPretty-print, minify and validate JSON, with the exact line of any error.
- Base64 encoder and decoderEncode text to Base64 and back, including URL-safe Base64 and emoji.
- URL encoder and decoderPercent-encode and decode URLs and query values, and break a URL into parts.
- Regex testerTest JavaScript regular expressions live, with groups, replace and common patterns.
- Text diff checkerCompare two texts or code snippets line by line or word by word.
- CSV to JSON and JSON to CSVConvert CSV to JSON and JSON to CSV, with delimiter detection.
- JWT decoderRead the header and claims of a JSON Web Token, with expiry dates in plain English.
- MD5 and SHA hash generatorMD5, SHA-1, SHA-256, SHA-384 and SHA-512 hashes of any text, with a match check.
- Unix timestamp (epoch) converterEpoch seconds or milliseconds to a readable date and back in any time zone, ISO 8601 too.
- Lorem Ipsum generatorPlaceholder paragraphs, sentences or words, plain or as HTML.
Frequently asked questions
What is a UUID?
A UUID (universally unique identifier), also called a GUID, is a 128-bit number written as 32 hexadecimal digits in five groups, like 550e8400-e29b-41d4-a716-446655440000. It lets any system create IDs without asking a central server, with practically no risk of two being the same.
Should I use version 4 or version 7?
Version 4 is fully random and the most widely supported. Version 7 starts with a timestamp, so new IDs sort after older ones. That makes v7 a better choice for database primary keys, because inserts stay in order and indexes stay efficient.
Can two UUIDs ever be the same?
In theory yes, in practice no. A version 4 UUID has 122 random bits: you would need to generate about a billion UUIDs per second for around 85 years to have a 50% chance of a single duplicate.
Are these UUIDs secure?
They are generated with the browser's cryptographically secure random number generator. Still, don't use a UUID as a password or secret token: it isn't designed for that, and a version 7 UUID reveals when it was created.