Generate RFC 4122 UUID v4 Identifiers Locally With Web Crypto
UUID Generator creates cryptographically random UUID v4 strings (xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx) directly in your browser using crypto.randomUUID() / crypto.getRandomValues(). Generate single IDs or bulk batches, toggle uppercase or hyphen-free formatting, and copy to clipboard in one click with zero server calls.
Format Options & Specifications
| Specification | Details |
|---|---|
| Standard | RFC 4122 / RFC 9562 Version 4 (122 random bits) |
| Entropy Source | Browser Web Crypto API (crypto.randomUUID() / getRandomValues) |
| Formatting Options | Standard lowercase, UPPERCASE, or compact 32-char hex (no hyphens) |
| Batch Output | Generate multiple unique UUIDs at once for SQL seeds or test fixtures |
Companion ID & Security Generators
Need shorter URL-safe IDs or cryptographic secrets? Try NanoID Generator, Random String, Secret Generator, or browse all Developer Tools.
Frequently asked questions
How unique is a Version 4 UUID?
UUID v4 uses 122 bits of cryptographic randomness—roughly 5.3 × 10^36 possible values—making accidental collisions across distributed databases practically impossible.
When should I use UUID v4 instead of NanoID?
UUID v4 is 36 characters (32 hex + 4 hyphens) and universally supported as a native database type in PostgreSQL and SQL. NanoID is shorter (21 URL-safe characters by default) with similar collision resistance.
Can I generate uppercase UUIDs or remove hyphens?
Yes. Standard UUIDs are 128-bit values formatted with 4 hyphens (8-4-4-4-12), and you can toggle uppercase or strip hyphens if your schema expects compact 32-character hex strings.