Skip to main content

UUID Generator

Generate version 4 UUIDs — 128-bit random identifiers — one at a time or up to 100 at once.

They are drawn from a cryptographically secure random source — the same kind your browser uses for TLS key material rather than a predictable pseudo-random generator — so the values are genuinely unpredictable.

Click Generate to create UUIDs

This tool runs entirely in your browser

This tool runs entirely in your browser. The data you paste is processed on your device and never sent to Filorra.

That is not a small detail for developer tools. API responses, tokens, config files, and log excerpts routinely contain credentials and customer data, and pasting them into a server-side tool means disclosing them to a third party.

How to use UUID Generator

  1. Choose how many you need

    Generate one or a batch.

  2. Generate

    Each UUID is produced from your browser's cryptographic random source.

  3. Copy them

    Take the output into your code, fixtures, or database.

Why collisions are not a practical concern

A version 4 UUID has 122 random bits, six of the 128 being fixed to identify the version and variant. That gives roughly 5.3 × 10³⁶ possible values.

The usual way to express what this means: you would need to generate about a billion UUIDs per second for around 85 years before the probability of a single collision reached 50%. For any realistic application, duplicates are not something to design around.

The caveat is that this holds only when the values come from a proper random source. A generator built on `Math.random` has vastly less real entropy than the format suggests, and in that case collisions become genuinely possible. This tool uses a cryptographically secure source.

UUIDs make poor clustered primary keys

This is a real performance trap in database design, and it catches teams well after the schema is fixed.

A v4 UUID is random by construction, so consecutive inserts land at random positions in an index. In a database that stores rows in primary key order — SQL Server clustered indexes, MySQL InnoDB — this causes page splits and fragmentation, and it destroys the locality that makes sequential inserts cheap. Write throughput degrades as the table grows.

Size compounds it: 16 bytes against 4 or 8 for an integer, repeated in every secondary index. On a large table that is a lot of extra I/O.

The usual answers are to use a sequential integer as the clustered key and keep the UUID as an indexed external identifier, or to adopt a time-ordered identifier such as UUIDv7 or ULID, which keeps global uniqueness while restoring insert locality.

When a UUID is the right choice

The strength of a UUID is that it can be generated anywhere without coordination, which sequential IDs cannot.

That makes them well suited to distributed systems where several services create records independently, to offline-capable clients that must assign IDs before syncing, to merging data from separate databases without renumbering, and to public-facing identifiers where sequential integers would leak volume — an order ID of 1042 tells a competitor how many orders you have taken.

Note that a v4 UUID being unpredictable does not make it a secret. It is fine as an unguessable URL component, but it is not an authentication token and should not be used as one.

When to use UUID Generator

  • Creating identifiers for records generated across multiple services.
  • Seeding test fixtures with unique keys.
  • Producing correlation IDs for tracing requests through a system.
  • Generating public identifiers that do not reveal record counts.

Common problems

Should I worry about duplicates?
Not with a proper random source. The probability is negligible at any realistic scale. Do avoid generators built on Math.random.
Database performance dropped after switching to UUID keys.
Random keys fragment clustered indexes. Use a sequential integer as the primary key with the UUID as a secondary identifier, or move to UUIDv7.
Should UUIDs be stored as text?
Prefer a native UUID or binary(16) column. Storing as a 36-character string wastes space and slows comparisons.
Can a UUID be used as a security token?
No. It is unguessable but not secret, and it carries no expiry or signature. Use a purpose-built token.

Frequently asked questions

Are the UUIDs generated locally?
Yes. They are produced in your browser and never transmitted.
Which UUID version does this generate?
Version 4 only — fully random. If you need the time-ordered UUIDv7 for database keys, this tool does not generate it.
What is the chance of a collision?
Negligible. With 122 random bits you would need roughly a billion per second for 85 years to reach a 50% chance of one duplicate.
Why is v4 bad as a database primary key?
Its randomness fragments clustered indexes and hurts insert performance as tables grow. UUIDv7 or ULID solve this by being time-ordered.
What is the difference between UUID versions?
v1 encodes a timestamp and MAC address, v4 is fully random, and v7 is time-ordered random — combining sortability with uniqueness.

Learn more

Guides and answers that explain how this tool's job actually works.