HubTools

UUID v4 Generator

Generate random UUID v4 identifiers — the universal default for primary keys, session IDs, and anonymous IDs.

What is a UUID v4?

UUID v4 is the random-bits flavor of the RFC 4122 UUID spec — 122 bits of entropy drawn from a cryptographic random source (in the browser, that's crypto.getRandomValues, which is a CSPRNG). The remaining 6 bits encode the version (4) and the variant (RFC 4122 / DCE), so any compliant parser can recognize it. It's the most widely used UUID flavor today: primary keys, session tokens, anonymous user IDs, anywhere you need an ID that's effectively guaranteed unique without coordination. Generation is computed locally on your device via crypto.getRandomValues() — no value ever touches a server.
Generated UUIDv4
Generating...
Format
Bulk Generation
Count:
UUID Validator
Recent UUIDs
Generated UUIDs will appear here.
Last 20 UUIDs are kept in history.

About UUID v4 (RFC 4122)

RFC 4122 (2005) defines the UUID spec; v4 is the random-bits variant generated entirely from a CSPRNG.
  • Format: xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx (36 chars including 4 hyphens)
  • The leading 4 in the 13th hex character is the version nibble
  • y (17th char) is one of 8, 9, a, or b — the RFC 4122 variant
  • 122 bits of entropy from crypto.getRandomValues() (the browser's CSPRNG)
  • Total length: 128 bits / 16 bytes / 32 hex digits

Frequently asked questions

Are UUID v4s actually unique?
Practically, yes. With 122 bits of randomness you would need to generate roughly 2.71 quintillion UUIDs before reaching a 50% chance of a collision (the birthday-bound). At one billion UUIDs per second, that's hundreds of years. For all real-world systems, v4 collisions don't happen.