UUID Generator (v4)

Generate RFC-4122 compliant UUID v4 identifiers in bulk. Cryptographically secure via Web Crypto API.

What is a UUID?

A Universally Unique Identifier (UUID) is a 128-bit value used to uniquely identify resources across systems without coordination. UUIDs are defined by RFC 4122.

UUID Versions

  • v1 β€” Time + MAC address based
  • v4 β€” Random (most common, used here)
  • v5 β€” Namespace + SHA-1 hash
  • v7 β€” Time-ordered random (newer)

The probability of a v4 UUID collision is astronomically low β€” you'd need to generate billions per second for decades.

FAQ

Are these UUIDs cryptographically secure?
Yes β€” generated via crypto.randomUUID() which uses the browser CSPRNG.
When should I use UUIDs vs auto-increment IDs?
UUIDs when records are created on multiple servers (avoids collisions). Auto-increment for single-DB systems where readability matters.