UUID Generator

Generate random UUIDs (v4) online. Free UUID generator - create one or bulk generate unique identifiers instantly.

🔒 Your text stays in your browser - nothing is sent to our servers
Count:
Generated UUIDs
How to Use

Three steps to get started

1

Choose how many

Use the count selector to choose how many UUIDs you want - from 1 up to 100.

2

Click Generate

Click "Generate UUIDs" to instantly create cryptographically random UUID v4 identifiers.

3

Copy all

Click "Copy All" to copy all generated UUIDs to your clipboard, one per line.

About This Tool

UUID v4 generation explained

UUID (Universally Unique Identifier) is a standardized 128-bit identifier defined in RFC 4122. Its canonical string form looks like this: 550e8400-e29b-41d4-a716-446655440000

The 36-character string is 32 hex digits in a fixed 8-4-4-4-12 grouping. Not all of those bits are random: 4 bits encode the version (the 4 that always appears at the start of the third group) and 2 bits encode the variant (which is why the fourth group always begins with 8, 9, a, or b). That leaves 122 random bits. This tool draws them from crypto.randomUUID(), backed by the Web Crypto CSPRNG rather than Math.random(), so the output is suitable for identifiers that must be unguessable as well as unique.

Common use cases for UUIDs:

  • Database primary keys: Generate IDs on the client before inserting, enabling optimistic UI
  • Distributed systems: Multiple services can generate IDs independently without coordination
  • File names: Prevent filename collisions for uploaded files
  • Idempotency keys: Deduplicate retried API requests safely - Stripe and most payment APIs expect one per request
  • Correlation and trace IDs: Stitch a single request together across microservice logs
  • Public-facing identifiers: Avoid leaking record counts the way sequential integers do

Which UUID version should you use?

RFC 9562, published in 2024, updates the original RFC 4122 and adds three new versions. v1 encodes a timestamp plus the machine's MAC address - sortable, but it leaks hardware identity. v3 and v5 are deterministic hashes of a namespace and a name (MD5 and SHA-1 respectively), which makes them the right choice when the same input must always yield the same ID. v4 is pure randomness and remains the default for almost everything. v7 is the notable newcomer: it puts a 48-bit Unix millisecond timestamp in the high bits, so v7 UUIDs sort chronologically while staying collision-resistant. If you are choosing a primary key today, v7 is worth evaluating against v4.

That sortability question is not academic. Random v4 keys scatter inserts across a B-tree index, causing page splits and cache churn that shows up as write amplification on large tables - the reason Postgres and MySQL teams often reach for v7, ULIDs, or Snowflake IDs instead. Storage matters too: as CHAR(36) a UUID costs 36 bytes, versus 16 as a native uuid or BINARY(16) column.

One caveat: a UUID is unique, not secret by policy. v4 values are unguessable, but v1 and v7 embed timestamps, so never treat a UUID as an authorization token on its own. The uppercase toggle covers legacy systems (notably Microsoft GUID tooling) that expect capitals; RFC 9562 specifies lowercase on output while requiring parsers to accept both. Every identifier here is produced inside your browser - nothing is requested from a server, nothing is recorded, and closing the tab is the only cleanup needed.

FAQ

Frequently Asked Questions

Related Tools