EncryptCodecencryptcodec
Tools/UUID

UUID Generator

Generate cryptographically secure UUID v4 identifiers using crypto.randomUUID(). Generate up to 50 at once — copy individually or all together.

All processing happens in your browser — nothing is sent to our servers
d8116912-2d55-44da-8087-7accdadbf6b8
68a46c8b-69c3-443c-b98d-7cc04adff1fd
714bb315-9384-471f-bd53-f5ce0bab360e
026b9be9-fe45-481a-b388-c80a8849511b
99d329c1-d175-439e-856d-ff43b4e6f201

UUID v4 — What You Need to Know

UUID v4 uses 122 bits of randomness, giving ~5.3 × 10³⁶ possible values. The probability of a collision when generating 1 billion UUIDs is roughly 1 in 10²³ — effectively zero for any practical use. Safe to use as database primary keys, idempotency keys, session IDs, and trace IDs.crypto.randomUUID() is available in all modern browsers and Node.js 15+.

How it works
UUID v4 Generation
01Random bits

122 bits of cryptographically random data from crypto.randomUUID() (internally uses crypto.getRandomValues)

02Version nibble

Bits 48–51 set to 0100 (hex 4) — identifies this as a version 4 UUID

03Variant bits

Bits 64–65 set to 10 binary — marks RFC 4122 / ITU-T X.667 variant

04Hex formatting

128 bits written as 32 hex characters grouped 8-4-4-4-12 with hyphens: xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx

Spec: RFC 9562 §5.4 (UUID v4), replaces RFC 4122

UUID v4 is not sequential and not suitable as a database primary key in high-write systems (index fragmentation). Consider UUID v7 (time-ordered) for database IDs.

Frequently Asked Questions