UUID / GUID Generator

Generate random v4 UUIDs for database seeding, testing, and development. Bulk-generate up to 100 at once. Uses the browser's crypto.randomUUID() API — cryptographically secure, 100% client-side.

Generate
UUIDs
bf37edde-0975-4379-bd9d-8cda1894a57c
6e50bc97-5801-4d27-ab58-db716d74031c
50fbfefe-7fb2-4737-81a2-3d974cca4a1c
f102f680-c6f2-4668-9bdd-e724fdf6e834
a23be4cf-e29c-4d65-bbaf-42d5b6195eea
5af52a5c-c8e5-4e32-bc75-4f7f65ad2bfb
50b28850-1bfb-48d4-893f-de48dbd07d18
c6887700-032c-43a9-a2da-89bc81fabda7
81373e3c-4cf3-4920-948c-00e2bd1e1e9f
abd68b56-a4f1-462f-93c3-6fa9d343c7d5

10 UUIDs generated using crypto.randomUUID() — v4, cryptographically random, collision-free.

Cryptographically Random

Uses the browser's built-in crypto.randomUUID() — the same Web Crypto API used by operating systems and security libraries. The entropy source is your OS's CSPRNG, not Math.random().

Bulk Generation

Generate 1 to 100 UUIDs in a single click. Ideal for seeding databases, populating test fixtures, creating mock data, or provisioning resources in scripts.

100% Client-Side

No server, no API call, no rate limit. UUIDs are generated entirely in your browser tab. You can verify by going offline — it still works.

How to Generate UUIDs

  1. Select how many UUIDs you need (1, 5, 10, 25, 50, or 100).
  2. Click Generate — a new batch is created instantly.
  3. Click any UUID row to copy it, or use Copy all to copy the full list as newline-separated text.
  4. Toggle UPPERCASE if your target system requires uppercase hex.
  5. Click Generate again at any time to produce a fresh batch.

What Is a UUID?

A UUID (Universally Unique Identifier) — also called a GUID (Globally Unique Identifier) in Microsoft contexts — is a 128-bit label standardized in RFC 4122 and displayed as 32 hexadecimal digits in five groups:

550e8400time_low
-
e29btime_mid
-
41d4version
-
a716variant
-
446655440000node

UUID v4 sets the version nibble to 4 and two variant bits to 10; the remaining 122 bits are filled with random data. This gives approximately 5.3 × 10³⁶ possible values — enough that collisions are negligible in any practical system.

UUID Versions Compared

VersionBasisBest forTrade-offs
v1Time + MACAudit logs, CassandraLeaks machine identity + timestamp
v3MD5 hashDeterministic IDs from namesMD5 is not collision-resistant
v4RandomGeneral purpose, DB keysNo natural sort order (index fragmentation)
v5SHA-1 hashDeterministic IDs from namesSHA-1 is weak; prefer SHA-256 alternatives
v7Time-ordered randomHigh-write DB keysNot yet in all languages/frameworks

Using UUIDs as Database Primary Keys

UUID v4 primary keys have two well-known drawbacks in relational databases: random insertion order causes B-tree index fragmentation in PostgreSQL and MySQL, and a 16-byte UUID is larger than a 4-byte integer primary key.

For most applications these trade-offs are acceptable. When you need both global uniqueness and sequential ordering — for example, high-write PostgreSQL tables — consider UUID v7 or ULID, which are time-ordered and reduce index fragmentation while remaining unique across distributed systems.

Frequently Asked Questions

What is a UUID?

A UUID (Universally Unique Identifier) is a 128-bit label displayed as 32 hex digits in five groups: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx. UUID v4 uses 122 random bits, giving approximately 5.3 × 10³⁶ possible values — enough to make collisions negligible in any real system.

What is the difference between UUID and GUID?

They are the same thing. GUID (Globally Unique Identifier) is Microsoft's name for the UUID standard. Both follow RFC 4122 and use the same format. The term GUID is common in Windows, .NET, and SQL Server; UUID is used everywhere else.

Can two UUIDs be the same?

Theoretically yes, but practically no. UUID v4 has 122 random bits. You would need to generate 1 billion UUIDs per second for 85 years to reach a 50% probability of a single collision. For any real-world use — databases, tokens, IDs — collisions are not a practical concern.

Is crypto.randomUUID() safe?

Yes. crypto.randomUUID() is part of the Web Crypto API and uses the operating system's CSPRNG (Cryptographically Secure Pseudorandom Number Generator). It is available in all modern browsers (Chrome 92+, Firefox 95+, Safari 15.4+) and Node.js 14.17+. Never use Math.random() for UUIDs — it is not cryptographically secure.

When should I use UUID v7 instead of v4?

Use UUID v7 when you need both global uniqueness and time-ordered IDs — for example, as primary keys in high-write PostgreSQL or MySQL tables where random insertion order would fragment B-tree indexes. UUID v4 is still the simpler, widely-supported default for most applications.

Is my data sent to a server?

No. UUID generation uses your browser's built-in crypto.randomUUID() function entirely client-side. No network request is made. Open DevTools → Network tab and confirm — nothing is sent when you click Generate.