UUID Versions

All seven UUID versions defined by RFC 4122 & RFC 9562, compared.

VersionMethodSortableCollisionUse case
v1Time-basedLegacy time-based IDsLegacy time-based IDs
v3Namespace MD5Reproducible namespaced IDsReproducible namespaced IDs
v4RandomGeneral purpose (most common)General purpose (most common)
v5Namespace SHA-1Reproducible namespaced IDs (prefer over v3)Reproducible namespaced IDs (prefer over v3)
v6Reordered timeSortable time-based IDsSortable time-based IDs
v7Unix time + randomModern sortable IDs (recommended)Modern sortable IDs (recommended)
v8CustomApplication-specificApplication-specific