GUID Version 1-8 - The Complete Comparison
Comprehensive comparison of all GUID versions (v1-v8). Understand the differences, use cases, security implications and performance characteristics of each version to choose the right one for your project.
GUIDs are defined by IETF standards (RFCs). For many years, developers referenced RFC 4122 (published July 2005), but this document has been formally obsoleted by RFC 9562 (published May 2024). This comparison explains what changed, what stayed the same, and which RFC you should reference today.
| Aspect | RFC 4122 (2005) | RFC 9562 (2024) |
|---|---|---|
| Publication date | July 2005 Nearly 20 years as the standard | May 2024 Current specification |
| Status | Obsolete Formally replaced by RFC 9562 since May 2024 | Current standard Authoritative reference |
| Primary role | Original GUID / UUID specification used by most legacy systems | Modern replacement that updates, clarifies and extends GUID / UUID definitions |
| Defined UUID versions | v1, v2 (reserved), v3, v4, v5 | v1, v2 (reserved), v3, v4, v5, v6, v7, v8 |
| v2 (DCE Security) | Reserved, not fully specified | Reserved, explicitly acknowledges DCE origin (still not fully specified) |
| Time-ordered UUIDs | Not addressed Sorting issues left to implementations | Explicitly addressed via v6 and v7 |
| Custom GUID / UUID layouts | Not supported | Supported via v8 (application-defined) |
| Ambiguity resolution | Several behaviors left implicit or unclear | Clarifies generation rules, intent and modern usage expectations |
| URN namespace | Defines urn:uuid: | Retains and reaffirms urn:uuid: |
| Security guidance | Limited discussion | Clearer warnings about predictability, privacy and misuse as secrets |
| Modern database considerations | Not explicitly addressed | Acknowledges ordering, index locality and real-world storage concerns |
| Recommended for new systems | No | Yes |
RFC 4122 laid the foundation for GUIDs / UUIDs and powered the web for nearly two decades. RFC 9562 modernizes that foundation without breaking compatibility, making it the correct reference point for all new GUID / UUID documentation and system design today.
These articles expand on related concepts, formats and practical considerations.