Skip to main content
HitRandom

UUID Generator

Generate UUID v4, v7, or v1 — bulk up to 1000, GUID braces, compact or hyphenated.

Instant 100% Private Free Forever
Instant Private Free Crypto-secure Bulk up to 1000 v4 & v7

UUID version

v4 = random, v7 = time-ordered for DB keys

Case

Hyphens

Braces (GUID)

Microsoft GUID form: {xxxxxxxx-...}

1–1000 at once

Generated UUIDs

Click Generate to create UUIDs. Nothing is saved or logged — copy what you need now.

Recent generations

How to use the UUID Generator

From a single v4 UUID to a bulk seed list — four steps.

  1. 1

    Pick a version

    v4 (random) is the default. Choose v7 for time-ordered database keys, v1 for legacy compatibility, or Nil for the all-zeros sentinel UUID.

  2. 2

    Set format options

    Lowercase is default. Toggle hyphens off for 32-char compact form, braces on for GUID syntax, and case for uppercase hex.

  3. 3

    Set quantity

    Quantity 1 for a single ID. Raise it to bulk-generate UUIDs for seeding databases, test fixtures, or batch provisioning — up to 1000 per click.

  4. 4

    Generate & copy

    Click Generate, copy individual rows or switch to Text view for Copy all. Use Rows/Text toggle for small batches; large batches lock to text view.

Generate UUIDs and GUIDs — v4, v7, bulk, and format options

Developers need identifiers that are unique, copy-safe, and fast to produce in volume. A UUID generator (also called a GUID generator on Windows and .NET) outputs 128-bit values in standard string forms — hyphenated, compact, or wrapped in braces. HitRandom covers the cases single-ID bookmarklets skip: bulk UUID generation up to 1000 per click, UUID v7 for time-ordered database keys, and format toggles for lowercase, uppercase, hyphens, and Microsoft GUID braces.

UUID v4 — random (default): The common choice for primary keys, correlation IDs, and file names. v4 sets version nibble 4 and RFC 4122 variant bits on cryptographically random bytes. HitRandom calls crypto.randomUUID() when the browser supports it, otherwise builds v4 from crypto.getRandomValues() with correct version and variant masking — never Math.random().

UUID v7 — time-ordered: RFC 9562 v7 embeds a 48-bit Unix millisecond timestamp in the leading bytes and fills the remainder with random data. The result sorts chronologically in B-tree indexes — useful in PostgreSQL, event stores, and anywhere insert locality beats pure randomness. Few online generators expose v7; it is a practical differentiator when you need ordered IDs without a central allocator.

UUID v1 and Nil: v1 combines a timestamp with a random node ID (multicast bit set per spec) for legacy systems that still expect time-based UUIDs. Nil UUID (00000000-0000-0000-0000-000000000000) is the all-zeros sentinel used in APIs and schemas to mean “no identifier.” Namespace-hashed v3/v5 are intentionally omitted — they require namespace UUID plus name inputs and are rarely needed in quick dev workflows.

Bulk generation for seeding: Set quantity above 1 to generate multiple UUIDs at once — seed a test database, fill a CSV column, or provision batch resources without looping a one-at-a-time tool. Small batches display as copy-able rows; larger batches open in text view with the same copy formats as our other tools (comma-separated, one per line, JSON, tab-separated). Nothing is written to disk or stored in history.

Format options: Lowercase hex is the default. Switch to uppercase for systems that expect it. Disable hyphens for a 32-character compact string. Enable braces for GUID syntax. All formatting is applied to the same underlying bytes — toggling case or hyphens after generation reformats the current batch without regenerating new random values.

Who uses this: Backend developers assigning primary keys, QA engineers building test fixtures, data engineers preparing seed files, and anyone who needs a trustworthy generate uuid workflow without installing CLI tools or signing into a service. Pair with HitRandom’s Password Generator and Random Number Generator in Generators & Security.

Frequently asked questions

What is the difference between a UUID and a GUID?
They are the same thing. GUID (Globally Unique Identifier) is Microsoft’s name for the same 128-bit identifier standard as UUID (Universally Unique Identifier). Both refer to RFC 4122 formats like v4 random IDs. Enable Braces in this tool for the classic Microsoft GUID form: {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}.
How do I generate multiple UUIDs at once?
Set Quantity from 1 to 1000 and click Generate. HitRandom produces independent UUIDs using the version and format options you selected. Up to 25 results show as individual rows with Copy buttons; larger batches switch to text view with Copy all in comma-separated, one-per-line, JSON, or spreadsheet-friendly formats.
When should I use UUID v7 instead of v4?
UUID v4 is fully random — the default for general-purpose IDs, session tokens, and file names. UUID v7 embeds a millisecond timestamp in the high bits and random data in the rest, so IDs sort chronologically in databases and indexes. Use v7 when insert order and time-based clustering matter (PostgreSQL, distributed logs, event streams). v4 remains better when you want maximum unpredictability with no time leak.
Can I get a compact UUID without hyphens?
Yes. Turn Hyphens off for a 32-character hex string (sometimes called a compact or “no-dash” UUID). Toggle Case for uppercase output. Combine with Braces when you need the Microsoft GUID wrapper around a hyphenated value.
Are UUIDs generated in the browser or on a server?
Entirely in your browser. v4 uses crypto.randomUUID() when available, with a crypto.getRandomValues() fallback that sets version and variant bits correctly. v7 and v1 are built from the same crypto byte source. Nothing is uploaded, logged, or stored — refresh the page and the batch is gone.