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
| Value | Description |
|---|---|
| 017F22E2-79B0-7CC3-98C4-DC0C0C07398F | UUIDv7 test vector of RFC 9562 (Appendix A.6), created 2022-02-22 19:22:22 UTC |
| 01890a5d-ac96-774b-bcce-b302099a8057 | UUIDv7 of the valid-uuidv7 test case of the TypeID specification |
| 919108f7-52d1-4320-9bac-f847db4148a8 invalid | UUIDv4 |
| 1EC9414C-232A-6B00-B3C8-9F6BDECED846 invalid | UUIDv6 |
Translations
| Language | Name | Description |
|---|---|---|
| Russian | UUID версии 7 (упорядоченный по времени Unix) |
Sources
Use this record
- Page URL:
http://registry.apicrafter.io/datatype/uuid_v7 - JSON: API v1 · legacy shape (used by metacrafter) · Markdown (for LLMs)
- Improve it: edit
data/datatypes/any/identifiers/uuid_v7.yamlon GitHub