How to use the UUID Generator tool
- Pick a versionVersion 4 is entirely random; version 7 begins with a timestamp, so IDs sort by when they were made.
- Set quantity and styleCreate 1 to 1,000 UUIDs in lowercase, uppercase, without hyphens, inside braces or as a JSON array.
- Copy or saveCopy every UUID to your clipboard or download them as a text file.
- Validate (optional)Paste any UUID to check its format, version and variant.
UUID generator features
- Secure random sourceRelies on the browser’s cryptographically secure generator (crypto.randomUUID / getRandomValues).
- UUID v7Time-ordered identifiers defined in RFC 9562, well suited to database primary keys.
- Bulk modeUp to 1,000 UUIDs per click for test data, seed files and fixtures.
- Flexible formattingLowercase, uppercase, hyphen-free, Microsoft-style braces or a JSON array ready to paste.
- UUID validatorChecks an identifier and reports its version, variant and, for v7, its creation time.
What is a UUID?
A UUID, or Universally Unique Identifier, known as a GUID on Microsoft platforms, is a 128-bit value used to label database rows, files, devices, user accounts, API requests and more. It’s normally shown as 32 hexadecimal digits split into five hyphenated groups, such as 9c1e4a7b-2f3d-4b8a-9e6c-1d0f5a2b7c84. Any computer can create one on its own, with no central authority, and it will still be unique for all practical purposes.
UUID v4 vs UUID v7
- What they’re built from: v4 uses 122 random bits, while v7 starts with a 48-bit Unix timestamp in milliseconds followed by random bits.
- Sorting: v4 values fall in random order, whereas v7 values sort chronologically by creation time.
- Privacy: v4 reveals nothing, but v7 exposes when it was generated, to the millisecond.
- Typical use: v4 suits public tokens and identifiers that should give nothing away; v7 suits primary keys, log entries and event IDs.
UUID v7 was standardised in RFC 9562 in 2024. Because each new v7 value is larger than the previous ones, rows land at the end of database indexes, keeping B-tree indexes compact and inserts quick. Random v4 keys scatter across the index, which can slow down very large tables.
How unique is a UUID?
A version 4 UUID contains 122 random bits, allowing roughly 5.3 × 1036 distinct values. You’d have to generate about 2.7 × 1018 of them before reaching even a 50% chance of one collision. In reality a duplicate is far less likely than a hardware fault, provided a secure random generator such as your browser’s is used.
Finding the version and variant
The first character of the third group reveals the version: xxxxxxxx-xxxx-4xxx-… means v4 and …-7xxx-… means v7. The first character of the fourth group indicates the variant, which is 8, 9, a or b for standard UUIDs. Paste any UUID into the validator to decode these automatically. Need random passwords rather than IDs? Use the Password Generator.