GUIDs / UUIDs 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.
New versions matter: v6 and v7 directly address long-standing database and ordering problems.
Documentation should cite RFC 9562: with optional mention of RFC 4122 for legacy context.
Practical advice for developers
If you generate new GUIDs / UUIDs, reference RFC 9562 in documentation.
If a library mentions “RFC 4122 GUIDs / UUIDs”, it usually still produces valid GUIDs / UUIDs — the wording is just outdated.
Prefer v4 for simplicity and v6 or v7 for time-ordered IDs.
Frequently Asked Questions
Existing RFC 4122 GUIDs remain completely valid and don't need to be replaced. However, for new implementations, you should reference RFC 9562 as it's the current standard. The GUIDs / UUIDs themselves are backward compatible.
RFC 9562 introduces three new GUID / UUID versions (v6, v7, v8), provides better guidance on time-ordered GUIDs / UUIDs for database optimization, clarifies ambiguous behaviors from RFC 4122 and includes enhanced security considerations. All original GUID / UUID versions (v1, v3, v4, v5) remain unchanged.
For most applications, use GUID / UUID v4 for simplicity and randomness. If you need time-ordered identifiers for database performance, use GUID / UUID v7 (timestamp-based with random data). Use GUID / UUID v8 (discouraged because it is not widely supported) only if you need custom layouts for specific requirements.
Yes, RFC 9562 maintains full backward compatibility with RFC 4122. GUIDs / UUIDs generated under RFC 4122 (v1, v3, v4, v5) work exactly the same way in RFC 9562. The new standard only adds features and clarifications without breaking existing implementations.
RFC 4122 was officially obsoleted by RFC 9562 in May 2024. While RFC 4122 (published in 2005) is now considered a historical document, it served as the authoritative GUID / UUID standard for nearly 20 years and its core concepts remain valid.
Yes, it's recommended to update technical documentation to reference RFC 9562 as the current standard. You can mention RFC 4122 for historical context, but RFC 9562 should be your primary citation for accuracy and to align with modern best practices.
Conclusion
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.
Learn more
These articles expand on related concepts, formats and practical considerations.