UUID Generator โ€” Generate UUID v4 & v1 Online | Tinker
โ† Tinker
Generate UUIDs

What Is a UUID?

A UUID (Universally Unique Identifier) is a 128-bit label standardised in RFC 4122. It is represented as 32 hexadecimal digits grouped by hyphens: xxxxxxxx-xxxx-Mxxx-Nxxx-xxxxxxxxxxxx, where M encodes the version and N encodes the variant. The probability of two randomly generated v4 UUIDs colliding is astronomically small โ€” roughly 1 in 5.3 ร— 10ยณโถ.

UUID versions explained

VersionAlgorithmProsCons
v1Timestamp + MAC addressSortable by creation timeExposes MAC address; not truly random; can clash if generated in rapid bursts
v3MD5 hash of namespace + nameDeterministic โ€” same input always gives same UUIDMD5 is cryptographically weak; use v5 instead
v4Cryptographically randomSimple, globally unique, no coordination neededNot sortable โ€” random order can hurt B-tree index performance at scale
v5SHA-1 hash of namespace + nameDeterministic; better than v3Still not random; requires agreeing on a namespace
v7 (draft)Unix timestamp + random bitsSortable and random โ€” best of both worldsNot yet in all UUID libraries (gaining adoption fast)

UUID vs other ID schemes

SchemeExampleBest for
UUID v4550e8400-e29b-41d4-...Most distributed systems, REST APIs, when no sort order is needed
UUID v7018f5e3a-6a82-7...Databases where index locality matters (Postgres, MySQL)
ULID01ARZ3NDEKTSV4RRFFQ69G5FAVSortable, URL-safe, timestamp-prefixed โ€” great for event logs
NanoIDV1StGXR8_Z5jdHi6B-myTShort URL-safe IDs; configurable alphabet and length
Auto-increment1, 2, 3โ€ฆSimple single-database setups where enumeration is not a security risk

© 2026, Tinker - tools ยท calculators ยท practice games