What is the difference between UUID v4 and v7?
UUID v4 is fully random — 122 random bits — and has no inherent sort order. UUID v7 uses the current Unix timestamp in the high bits followed by random bits, making it sortable by creation time. v7 is the modern choice for database primary keys because it inserts in natural order, reducing B-tree fragmentation. v4 is better when you need maximum unpredictability.
Is UUID v4 truly random?
UUID v4 uses crypto.randomUUID() in modern browsers, which draws from the browser's cryptographically secure random number generator. This produces statistically unique values — the probability of two v4 UUIDs colliding is vanishingly small (~1 in 5.3×10³⁶).
What is UUID v1?
UUID v1 encodes the current time in 100-nanosecond intervals since October 15, 1582, plus a clock sequence and a node ID (typically the MAC address). This makes v1 UUIDs sortable and embeds when they were created. The trade-off is that they leak the creation time and, historically, the machine's MAC address.
How do I validate a UUID and check its version?
Switch to the Validate tab and paste any UUID. The tool checks the format, reads the version nibble (position 13 in the hex string), and reads the variant bits (position 17). For v1 and v7 UUIDs, it also extracts and displays the embedded timestamp.
What is the difference between a UUID and a GUID?
GUID (Globally Unique Identifier) is Microsoft's term for UUID. They are the same thing — a 128-bit identifier in the 8-4-4-4-12 hyphenated format. Microsoft documentation uses GUID; the internet standard (RFC 4122) uses UUID.