Skip to content
Developer

UUID Generator

Generate RFC 4122 v4 UUIDs in bulk using the Web Crypto API.

uuidguidcryptorandom
Loading tool…

Recommended tools

Affiliate links — we may earn a commission if you sign up.

About the UUID Generator

The UUID Generator produces RFC 4122 version 4 UUIDs in bulk using the Web Crypto API, so every identifier comes from a cryptographically secure random source rather than a predictable PRNG. The count control accepts a number between 1 and 500 through a numeric field or a slider, and the tool generates that many unique IDs in one click — each a fresh 128-bit value rendered in the standard 8-4-4-4-12 hexadecimal layout. Three formatting switches compose freely: Uppercase converts the hex digits, Hyphens removes the dashes for compact 32-character forms, and Braces wraps the result in curly brackets for C-style contexts. The tool generates automatically on first load and refreshes with the Generate button, while Copy all places the entire batch on your clipboard as a newline-separated list ready for a seed script or fixture file. A status row confirms the count, the v4 version, and the Web Crypto source of randomness, and the output can be downloaded as uuids.txt. Whether you are minting database primary keys, correlation IDs for logs, or test data for an API suite, generating a batch of UUIDs for seeding has never been faster.

Hand-written guide

Examples

Input
Count: 5 (default) · Uppercase: off · Hyphens: on · Braces: off
Output
f47ac10b-58cc-4372-a567-0e02b2c3d479
9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d
e4d909c2-90df-4f71-8a2e-5c8d1f7a3b9e
Note: Three of five v4 UUIDs in the standard 8-4-4-4-12 layout — every Generate click draws a fresh set from Web Crypto, so values differ each run.
Input
Count: 1 · Uppercase: on · Hyphens: off · Braces: on
Output
{F47AC10B58CC4372A5670E02B2C3D479}
Note: The formatting switches combine: uppercase hex, dashes removed for a compact 32-character form, and curly braces added for C-style contexts.
Input
Count: 500 (maximum) · Copy all pressed
Output
500 unique UUIDs, one per line, copied to the clipboard in a single click.
Note: Bulk generation caps at 500 per run — each line a distinct v4 UUID ready for seed scripts or fixtures.

How to use

  1. 1

    Set the number of UUIDs with the number field or the slider (1–500).

  2. 2

    Toggle Uppercase, Hyphens, or Braces to shape the output format.

  3. 3

    Click Generate to draw a fresh batch from the Web Crypto API.

  4. 4

    Press Copy all to put the entire list on the clipboard at once.

  5. 5

    Download the batch as uuids.txt from the result box when you need a fixture file.

Common use cases

  • Generating primary keys for database seed data during development.
  • Creating correlation IDs to trace a request across microservice logs.
  • Producing unique test fixture identifiers in an end-to-end test suite.
  • Assigning anonymous client IDs for analytics without using email addresses.
  • Keying distributed jobs or messages so retries never collide.
  • Filling in placeholder IDs in API documentation examples.

Best practices

  • Use v4 UUIDs for identifiers that must never collide, not for anything security-sensitive — they are random, not secret.
  • Store UUIDs as native UUID types in databases, or as 36-character strings; the hyphen-free form only matters for fixed-width fields.
  • Do not re-seed or hand-edit generated UUIDs; modifying bits can break the version and variant markers.
  • Generate in bulk only what you need — each batch draws fresh entropy, so batches never repeat.
  • The braces form is mainly for C-style code and GUID text; remove them when pasting into JSON or SQL.
  • When you need sortable or time-ordered IDs, pick ULIDs or v7 UUIDs instead — v4 values are fully random.

Tips

  • Leave Hyphens on for databases and JSON; the canonical form is what most libraries expect.
  • Press Copy all instead of selecting text — the clipboard gets the entire batch in one action.
  • Keep the Braces switch off unless a C-style macro or Windows registry needs the GUID look.
  • For fixture files, generate once, download uuids.txt, and commit it — tests run faster and stay deterministic.

Frequently asked questions

Yes. Each ID is built from 16 random bytes supplied by the browser's Web Crypto API, then the version nibble is set to 4 and the variant bits to 10xx as RFC 4122 requires. This is a cryptographically secure source, not a deterministic pseudo-random fallback.

Explore more developer tools

Browse the full collection of developer tools on the hub, or jump back to all categories.

Related tools