Generate Random UUID
Generate random UUIDs (v4) in bulk. Configurable count and format. 100% client-side.
Spin up batches of RFC 4122 v4 UUIDs without opening a terminal or writing a one-liner. Pick a count up to 1,000, choose standard, braced, uppercase, or no-hyphens, and copy the whole list in one click.
Each ID pulls 122 bits from the browser's cryptographic RNG — the same source TLS uses. And everything runs in your browser. Nothing gets uploaded.
How It Works
The browser fills 16 random bytes using its built-in CSPRNG. Byte 7 gets masked so the version nibble reads 4, and byte 9 gets masked so the variant bits read 10. The result is a standard v4 UUID — 122 random bits with two fixed fields that tell any parser what kind of ID it's looking at.
Examples
Database Primary Key
You're spinning up a new Postgres table and need a sample row ID.
Count: 1, Format: Standard
a3e7f8b2-91d4-4c6a-b5e1-7f2d8c3a9e01
Batch Seed Data for Testing
Your test suite needs 5 unique IDs for a mock user list. Typing fake ones by hand is slow and you always end up reusing the same "abc-123" placeholder.
Count: 5, Format: No Hyphens
d4f1a2b3c5e647f8a1b2c3d4e5f6a7b8
91e2d3c4b5a647f8d1e2f3a4b5c6d7e8
c7b8a9d0e1f24356b7c8d9e0f1a2b3c4
f2e3d4c5b6a74819e2f3a4b5c6d7e8f9
a8b9c0d1e2f34567a8b9c0d1e2f3a4b5
Microsoft-style GUIDs with Braces
Dropping an ID into a .NET config file or a Windows registry key that expects the {braces} format.
Count: 1, Format: Braces
{b7e4c2a1-38f5-4d6b-9a12-e3f5d7c8b9a0}
Who Uses This
Generating primary keys for database rows without installing a UUID library locally.
Creating batches of unique test IDs for integration tests and mock data fixtures.
Producing correlation IDs for tracing requests across distributed services.
Grabbing quick sample UUIDs for homework assignments and coding exercises.
Common Mistakes
UUIDs are 36 characters long. If users need to type or read the ID aloud, use a shorter format like a 6-character alphanumeric code instead.
v4 UUIDs are random, but they are not encrypted or signed. Anyone who sees the ID can replay it. For auth tokens, add a signature or use a dedicated token format like JWT.
A UUID stored as VARCHAR(36) takes 36 bytes. Most databases have a native UUID or BINARY(16) type that cuts storage in half and speeds up indexing. Check your DB docs before defaulting to a text column.
Technical Details
- Processing: 100% client-side — uses
crypto.getRandomValues() - Browser Support: Chrome, Firefox, Safari, Edge (all versions with Web Crypto API)
- UUID Version: v4 (RFC 4122), 122 random bits + 6 fixed bits
- Batch Limit: Up to 1,000 UUIDs per generation
- Output Formats: Standard, No Hyphens, Uppercase, {Braces}
Frequently Asked Questions
What is a UUID v4 and how is it different from v1?
Version 4 is built entirely from random numbers. Version 1 encodes the current timestamp and the machine's MAC address, which means two UUIDs from the same device will look similar and can leak hardware info. Most teams pick v4 because it's simpler and doesn't expose anything about where it was made.
Can two UUID v4s ever be the same?
Mathematically, yes. Practically, no. The random space is so large (2^122 possible values) that you'd need to generate about 2.71 quintillion UUIDs before hitting a 50% collision chance. For comparison, that's roughly a billion UUIDs per second for 86 years straight.
Is it safe to use these UUIDs in production?
The randomness source — crypto.getRandomValues() — is the same one browsers rely on for HTTPS. The UUIDs are cryptographically random, so yes, they work for database keys, session identifiers, and anything else that needs uniqueness. Just don't treat them as passwords.
What format should I pick for a SQL database?
Standard (with hyphens) if your database has a native UUID type — Postgres, for example, stores it as 16 bytes regardless of the text format. If you're on MySQL with a BINARY(16) column, grab the "No Hyphens" version and convert it to binary in your insert query. The uppercase and braces formats are mostly for .NET and Windows APIs.
Why would I generate UUIDs in the browser instead of in code?
Speed and convenience. Need 50 test IDs right now? This is faster than writing a one-liner in Python, opening a REPL, or searching npm for a UUID package. It is also handy when you're writing documentation or filling out config files and just need a valid UUID to paste in.