Datatypes

Unix time-ordered UUID (version 7)

ID uuid_v7

DatatypeNot PIIidentifierDraft

This record is a draft: it has not been reviewed yet and may be incomplete or wrong. Do not rely on it for compliance decisions. Help improve it (see CONTRIBUTING.md).

UUID of version 7, introduced by RFC 9562 in 2024. The first 48 bits are the Unix time in milliseconds, and the rest, apart from the version and variant bits, is random or a counter. Values sort by creation time, which suits database keys, and RFC 9562 recommends this version over versions 1 and 6. The creation time can be read back from the first 12 hexadecimal digits. The version digit, the first digit of the third group, is 7. PostgreSQL 18 makes it with uuidv7() and Python 3.14 with uuid.uuid7().

Parent datatype
Universally unique identifier (UUID) uuid
Categories
Universal unique identifiers
Countries
Global (not tied to a country)
Languages
Common to most languages
Quality
80/100 · missing: mapping (Wikidata, Schema.org, ...), detector coverage
Metacrafter rules
no detection rule yet
Supported by tools
no tool record lists this type yet

Regular expression

^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-7[0-9A-Fa-f]{3}-[89ABab][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12}$

Python re syntax.

Examples

ValueDescription
017F22E2-79B0-7CC3-98C4-DC0C0C07398FUUIDv7 test vector of RFC 9562 (Appendix A.6), created 2022-02-22 19:22:22 UTC
01890a5d-ac96-774b-bcce-b302099a8057UUIDv7 of the valid-uuidv7 test case of the TypeID specification
919108f7-52d1-4320-9bac-f847db4148a8 invalidUUIDv4
1EC9414C-232A-6B00-B3C8-9F6BDECED846 invalidUUIDv6

Translations

LanguageNameDescription
RussianUUID версии 7 (упорядоченный по времени Unix)

Sources

Use this record