Passer au contenu principal

UUID Generator

Use UUID Generator online for your needs

Générez des identifiants uniques universels

Identifier type
Output format
UUID
Examples: 550e8400-e29b-41d4… 00000000-0000-0000… 550e8400-e29b-41d4…
Generate then inspect: UUID v4 UUID v7
Space = regenerate

History

No identifiers generated yet.
Hover to reveal.

What is a UUID and what is it used for?

A UUID (Universally Unique Identifier) is a 128-bit identifier standardized by RFC 4122, represented as 32 grouped hexadecimal characters (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx). The probability of collision is statistically negligible: for UUID v4, you would need to generate 2.71 quintillion UUIDs to have a 50% chance of a collision.

UUID v4 vs UUID v7

UUID v4 is entirely random (CSPRNG) — ideal for web resource identifiers where order doesn't matter. UUID v7 is the new version (RFC 9562, 2024): the first 48 bits encode the Unix timestamp in milliseconds, making UUIDs naturally sortable. It's the recommended choice for database primary keys (better B-tree indexing performance).

ULID and NanoID: modern alternatives

ULID (Universally Unique Lexicographically Sortable Identifier) encodes a timestamp in 48 bits + 80 random bits in 26 Crockford Base32 characters — lexicographically sorted, URL-safe. NanoID is a compact alternative to UUIDs: 21 characters by default, customizable alphabet, 5× faster than UUID v4 and ideal for short URLs.