325Tools

UUID Generator — Random Version 4 UUIDs Online

Generate cryptographically random version 4 UUIDs in the canonical 8-4-4-4-12 format, one or fifty at a time. Perfect collision-free identifiers for database keys, requests, and files.

Loading tool…

Examples

A generated version 4 UUID
Input
Generate 1 UUID
Output
f47ac10b-58cc-4372-a567-0e02b2c3d479

The 13th character is always 4 (the version); the 17th is 8, 9, a, or b (the variant). The rest is random.

How to use this tool

  1. Choose how many UUIDs you need.
  2. Click Generate UUIDs.
  3. Copy a single value or the whole list.
  4. Generate again for a new batch.

What is UUID Generator?

UUID Generator produces version 4 UUIDs — 128-bit identifiers whose digits are random except for a fixed version nibble (4) and variant bits. It draws from your browser's crypto.randomUUID, a cryptographically secure source, and formats each value as 36 characters in the canonical 8-4-4-4-12 layout. Because v4 has 122 random bits, the odds of two generated values ever colliding are vanishingly small, which makes them safe to use as keys without coordinating with a central server.

Specifications

Version4 (random), per RFC 4122 / RFC 9562
Length36 characters (8-4-4-4-12 with hyphens)
Randomness122 random bits from crypto.randomUUID
CaseLowercase hexadecimal

Tips & gotchas

  • Version 4 UUIDs are random, not time-ordered — if you need keys that sort by creation time, use UUID v7 or a ULID instead.
  • With 122 random bits, v4 collisions are practically impossible, so you can generate them client-side without checking a server.
  • The canonical form is lowercase; some systems compare case-sensitively, so normalize before storing or matching.
  • A UUID is 36 characters with hyphens or 32 hex digits without them — pick one format and keep it consistent across your data.

Features

  • Generate cryptographically random v4 UUIDs
  • Create 1, 5, 10, or 50 at once
  • Copy a single UUID or the full list
  • No duplicates within a batch
  • Canonical lowercase 8-4-4-4-12 format

When to use it

  • Assigning a primary key to a new database row without a sequence or auto-increment.
  • Tagging each API request with a correlation ID so you can trace it across logs.
  • Naming uploaded files uniquely to avoid collisions in a shared bucket.
  • Generating stable keys for items in a frontend list or an idempotency header.

This tool runs in your browser. Your files and text are not uploaded to our servers, and we do not store your input.

Frequently asked questions

Which UUID version is generated?+

Version 4 (random) UUIDs, created with the browser's crypto.randomUUID API. The version digit (4) and variant bits are fixed; the remaining 122 bits are random.

Can two generated UUIDs ever be the same?+

In practice, no. With 122 random bits the collision probability is negligible even across billions of values, which is why v4 UUIDs can be generated independently without coordination.

Are v4 UUIDs sortable by time?+

No. Because they are fully random, consecutive v4 UUIDs have no order. If you need time-sortable identifiers, look at UUID v7 or ULID.

Should I store the hyphens?+

Either form is valid — 36 characters with hyphens or 32 hex digits without them. Choose one representation and apply it consistently so lookups and comparisons match.

Related tools

Related guides

Looking for more Developer Tools?

Browse the full collection of free, browser-based tools.