QREndless

UUID Generator

Batch v4 UUIDs from crypto.randomUUID — hyphens & case options.

100% on-device
Count
UUID Version
Generated UUIDs0 UUIDs · V4
Free online UUID generator creating random UUID v4 identifiers in bulk with copy and download

The Best UUID Generator

3 UUID Versions

Generate RFC 4122 v4 (random), v1 (time-based with Gregorian timestamp + random node), or RFC 9562 v7 (Unix-ms timestamp + random). All bits drawn from the Web Crypto API.

100% Private

Every UUID is generated entirely in your browser with `crypto.getRandomValues`. Nothing is uploaded, logged, or sent to any server. No signup, no tracking.

Bulk Generation

Generate 1, 5, 10, 50, or 100 UUIDs in one click. Copy-all copies the full list joined by newlines; copy-first grabs just the top UUID. Instant regeneration on any option change.

Format Control

Toggle uppercase hex, toggle hyphens on/off (32 contiguous hex chars when off). One-click copy with clipboard fallback for non-secure contexts. Fully responsive on any device.

How to Use It in 3 Steps

  1. Pick Version + Count

    Choose UUID v4 (random), v1 (time-based), or v7 (Unix-ms sortable), and how many you need: 1, 5, 10, 50, or 100 per batch.

  2. Tune the Format

    Toggle hyphens (8-4-4-4-12 vs 32 contiguous hex chars) and uppercase/lowercase hex. Every change regenerates the full batch instantly from the Web Crypto API.

  3. Copy All or Copy First

    Copy the whole list joined by newlines for a seed file or fixture, or grab just the top UUID. Click Regenerate any time for a fresh batch.

UUID Generator for Every Need

Database Primary Keys

Generate v4 or v7 IDs for records that must be unique across shards, merges, and offline writes — no sequence server or auto-increment coordination needed.

Tokens & Request IDs

Hand out one-off session tokens, API request IDs, download links, and idempotency keys. 122 random bits means nobody can guess an issued value.

Test Fixtures & Seeds

Generate 100 UUIDs in one click and paste them into seed scripts, unit tests, or staging data instead of inventing fake IDs by hand.

API Design

Expose opaque resource identifiers (/orders/550e8400-…) instead of sequential integers that leak volume and can be enumerated by scrapers.

Time-Series Data

UUID v7 embeds a millisecond timestamp, so newly generated IDs sort chronologically — ideal for B-tree indexes on event logs and append-heavy tables.

Apps & Games

Unique IDs for saved games, user-generated content, device installs, or A/B experiment arms — generated on-device with no backend round-trip.

Complete Guide

UUID Generator: The Complete A-to-Z Guide

What a UUID actually is, how v4, v1, and v7 differ, why the randomness source matters, and how to pick the right version for databases, APIs, and tokens.

What Is a UUID?

A UUID (Universally Unique Identifier) is a 128-bit label written as 32 hexadecimal digits in five groups — 550e8400-e29b-41d4-a716-446655440000. The promise is in the name: two UUIDs generated anywhere, by anyone, at any time can be assumed to be different without a central authority checking. That is why UUIDs are the standard identifier for records created on distributed systems — mobile apps, microservices, offline-first databases — where a shared auto-increment counter is impossible.

This generator produces RFC-compliant UUIDs entirely in your browser. The randomness comes from crypto.getRandomValues, the same cryptographic primitive your browser uses for TLS sessions.

UUID v4 vs v1 vs v7: Which Should You Pick?

  • v4 — the default choice. 122 fully random bits. No timestamp, no MAC address, nothing to correlate. Pick v4 whenever you just need unique IDs and have no strong opinion.
  • v1 — time-based, the legacy format. A 60-bit Gregorian timestamp (100-ns ticks since October 1582) plus a clock sequence and a 48-bit random node. It encodes when an ID was made but sorts awkwardly because the timestamp bytes are split across the string. Still required by some older specs (Microsoft COM, some enterprise systems).
  • v7 — the modern time-based format (RFC 9562). A 48-bit Unix-millisecond timestamp first, then 74 random bits. v7 IDs sort chronologically as plain strings, which makes them excellent for database indexes and log lines. If you want time-ordering, choose v7; use v1 only when a legacy spec demands it.

Why the Randomness Source Matters

Plenty of tutorials build UUIDs from Math.random() — do not. Math.random() is a fast but predictable pseudo-random generator: its output can be reconstructed from a couple of observed values, which is catastrophic if the UUID doubles as a secret (a download link, a password-reset token). crypto.getRandomValues is a cryptographically secure random number source seeded by the operating system. Every v4 UUID from this tool has its 122 random bits drawn from it, so generated IDs are unguessable as well as unique — safe to embed in URLs where guessability would be a security hole.

How Likely Is a Collision, Really?

For v4, the random space is 2¹²² ≈ 5.3 × 10³⁶. The famous birthday-paradox math says you would need to generate about 2.7 quintillion v4 UUIDs before the probability of even one collision reaches 50%. Put practically: a server generating a billion UUIDs per second for 85 years would still have a collision probability under 50% — and at realistic volumes the risk is not just negligible, it is unmeasurable. v7 gets the same guarantee from its 74 random bits plus the guarantee that IDs from different milliseconds cannot collide on the timestamp alone. In day-to-day engineering, treat UUID collisions as impossible and spend your worry elsewhere.

Hyphenated or Compact? Uppercase or Lowercase?

The canonical rendering is lowercase with hyphens — 8-4-4-4-12 — and that is what most validators, regexes, and databases expect. But both toggles exist for good reasons:

  • Hyphens OFF gives 32 contiguous hex characters: useful for compact storage, URL path segments without percent-encoding concerns, or CSV columns where the dashes cause spreadsheet auto-formatting (Excel turning IDs into dates is a real bug).
  • Uppercase ON matches environments that canonically uppercase (some .NET and Oracle contexts). Hex digits compare case-insensitively in every UUID implementation, so AB and ab are the same ID — just keep your convention consistent across systems.

UUIDs as Database Primary Keys

UUID keys trade index locality for global uniqueness. Random v4 keys land anywhere in a B-tree, which causes page splits and cache misses at scale — that is precisely the problem v7 solves: its leading timestamp makes new keys monotonic-ish, so inserts stay right-packed like an auto-increment while remaining globally unique and merge-safe. Common practice: v7 or v4 for externally visible IDs and cross-system merges; plain integers only when the dataset is small, single-writer, and never leaves one database.

If you store UUIDs in Postgres, use the native uuid type (16 bytes) rather than varchar(36) — half the storage, faster comparisons, and no quoting mistakes.

Step-by-Step: Using the UUID Generator

  1. Choose the count. 1, 5, 10, 50, or 100 UUIDs per batch — the output area scrolls for large batches.
  2. Choose the version. v4 for general use, v7 when you want time-sortable IDs, v1 for legacy compatibility.
  3. Set format toggles. Hyphenated on/off and uppercase on/off apply to the whole batch immediately.
  4. Copy All for the full newline-joined list (seed files, spreadsheets), or Copy First for a single ID.
  5. Regenerate whenever you want a fresh batch — nothing is cached server-side because there is no server involved.

Ready to Generate UUIDs?

You know which version fits your use case, why the cryptographic randomness source matters, why collisions are a non-issue, and how to format IDs for spreadsheets and databases. Scroll back up, pick a count, and copy a batch of cryptographically secure UUIDs in one click.

Jump back to the UUID generator above ↑

Frequently Asked Questions

Everything you need to know about uuid generator.
Is this UUID generator safe to use?

Yes. All randomness comes from `crypto.getRandomValues`, the same cryptographic primitive browsers use for TLS. UUIDs are generated entirely in your browser — no network request is ever made.

What is the difference between UUID v4, v1, and v7?

v4 is fully random (RFC 4122). v1 is time-based: a 60-bit timestamp in 100-ns intervals since the Gregorian epoch (1582-10-15 UTC) plus a 14-bit clock sequence and a 48-bit random node. v7 (RFC 9562) puts a 48-bit Unix-millisecond timestamp first, then 74 random bits — so v7 UUIDs sort chronologically, which is ideal for database indexes.

How many UUIDs can I generate at once?

Pick 1, 5, 10, 50, or 100 from the count grid. The output is one UUID per line in a scrollable area; click "Copy All" to copy the whole list joined by newlines, or "Copy First" for just the top one.

Are the generated UUIDs collision-free?

For v4, the random space is 2^122 — collision probability is effectively zero until you have generated billions. For v1, the random 48-bit node plus 14-bit clock sequence makes collisions extremely unlikely even across machines. For v7, the 74 random bits plus the millisecond timestamp make collisions essentially impossible in practice.

What does the "Hyphenated" toggle do?

When ON (default), UUIDs are formatted as 8-4-4-4-12 with hyphens (e.g. `550e8400-e29b-41d4-a716-446655440000`). When OFF, the 32 hex characters are concatenated without hyphens — useful for compact storage or as URL/path-safe identifiers.

Ready to use the UUID Generator?

Open the tool