UUID v4 Generator

Generate RFC 4122 UUID v4 identifiers in bulk, with configurable count, case, and format (standard, no-hyphen, or URN).

Count
Case
Format

How it works

About UUID v4 Generator

A UUID v4 is a 128-bit identifier in which 122 bits are randomly generated; the remaining 6 bits encode the version and variant. Because it needs no coordination with a central authority, anyone can mint UUID v4s independently, which makes them ideal for database primary keys, log correlation IDs, and deduplication keys in distributed systems. Unlike sequential IDs, random UUIDs reveal nothing about how many records exist or when they were created.

Compared with UUID v7, which is time-ordered and therefore friendlier to B-tree indexes in databases, UUID v4 values are uniformly random: inserts land in random positions of an index, which can slow down write-heavy workloads at very large scale. Reach for v4 when you value unpredictability and simplicity; reach for v7 when time-sorting and index locality matter more. Collisions are astronomically unlikely — you would need roughly 2.7×10^18 UUIDs for a 50% chance of one collision — but UUIDs are not secrets: never use them to protect sensitive information, and never embed user data inside them.