UUID Generator

Generate universally unique identifiers and modern alternatives — UUID v4/v7/v1, ULID, NanoID and CUID2. Randomness comes from your browser's cryptographic generator (crypto.getRandomValues). Click any value to copy it.

{{meta.kind}} {{meta.note}} {{meta.bits}} bits {{current.length}} chars
Type & format
{{v.tag}}
strip “-”
A–F
{…}
Encode
as-is
from bytes
from bytes
Quantity
Batch {{batch.length}}
{{i+1}} {{id}}
About this toolwhen to use which

UUID v4 — 122 random bits. The safe default when you just need a collision-resistant identifier and don't care about ordering.

UUID v7 — a 48-bit Unix millisecond timestamp followed by random bits. Time-sortable, which keeps database indexes tidy while staying unique.

UUID v1 — timestamp plus a node id. Here the node and clock sequence are randomized (no real MAC address is exposed).

ULID — 26-character Crockford Base32, lexicographically sortable and case-insensitive. Compact and URL-friendly.

NanoID — 21-character URL-safe id (A–Z, a–z, 0–9, _-). Shorter than a UUID with comparable collision resistance.

CUID2 — a lowercase, hash-derived id designed to be hard to guess and safe in URLs. This is a compatible implementation using SHA-256.

Everything runs offline in your browser. Nothing is transmitted, logged, or stored.