A UUID (Universally Unique Identifier, RFC 4122 / RFC 9562), also referred to as a GUID in Microsoft ecosystems, is a 128-bit number formatted as 32 hexadecimal digits separated by hyphens into five groups (`8-4-4-4-12`). Designed to enable distributed systems to generate unique database keys, transaction tracking IDs, and session tokens without requiring central coordination or sequential auto-incrementing databases. Choosing the right UUID version is critical for system performance. While **UUID v4** relies on pure random bits (ideal for non-predictable session tokens), **UUID v7** (the modern RFC 9562 standard) embeds a 48-bit millisecond timestamp in the most significant bits, providing chronologically sortable keys that eliminate database B-Tree index fragmentation. The JuicyDevs UUID Generator produces cryptographically secure UUID v4, v1, and v7 identifiers in bulk using `window.crypto.getRandomValues`, running 100% client-side in browser memory.
Utilizes the Web Cryptography API (`crypto.getRandomValues`) to populate a 16-byte `Uint8Array`. Bits 6-7 of clock_seq_hi_and_reserved are set to binary `10` (Variant 1 RFC 4122), and bits 12-15 of time_hi_and_version are set to the target version bits (`0100` for v4, `0111` for v7).