UUID Generator: Create Random v4 and Time-Ordered v7 UUIDs Online

Generate random version 4 UUIDs or time-sortable version 7 UUIDs, singly or up to 1,000 at once, in whichever format you need. A built-in UUID validator is included.

  • UUID v4 and v7
  • Bulk: up to 1,000
  • Cryptographically random

Validate a UUID

How to use the UUID Generator tool

  1. Pick a versionVersion 4 is entirely random; version 7 begins with a timestamp, so IDs sort by when they were made.
  2. Set quantity and styleCreate 1 to 1,000 UUIDs in lowercase, uppercase, without hyphens, inside braces or as a JSON array.
  3. Copy or saveCopy every UUID to your clipboard or download them as a text file.
  4. 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.

Frequently asked questions

How is a UUID different from a GUID?
They’re identical. GUID (Globally Unique Identifier) is simply Microsoft’s term, often written in uppercase inside braces.
Can two UUIDs ever collide?
In theory, but the odds are astronomically low; with 122 random bits you’d need billions upon billions of UUIDs before a clash became likely.
Should database keys use UUID v4 or v7?
v7 is usually the better primary key because it’s time-ordered and keeps indexes efficient. Choose v4 when the ID mustn’t reveal its creation time.
Are these UUIDs secure enough for tokens?
They come from a cryptographically secure generator. For secret tokens prefer v4, because v7 exposes when it was made.
Are generated UUIDs stored anywhere?
No. They’re created in your browser and never sent to a server.