Datatypes

Snowflake ID

ID snowflake_id

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).

64-bit identifier scheme that Twitter introduced in 2010 and that X, Discord, Instagram, Mastodon and other services use, each with its own epoch and bit layout. In the Twitter form the highest bit is 0, then come 41 bits of milliseconds since the epoch 1288834974657 (4 November 2010), 10 bits of machine ID and a 12-bit sequence number, so IDs sort by creation time. Discord uses the same layout with the epoch 1420070400000 (1 January 2015). Values are written as decimal numbers, today of 18 or 19 digits, and APIs often send them as strings because JavaScript numbers cannot hold 64-bit integers exactly. Any large integer looks the same, so there is no regexp; detect Snowflake IDs by field name.

Categories
Universal unique identifiers
Countries
Global (not tied to a country)
Languages
Common to most languages
Quality
58/100 · missing: regexp, second example, negative example, mapping (Wikidata, Schema.org, ...)
Metacrafter rules
1 rule (1 by field name, 0 by value)
Supported by tools
metacrafter

Examples

ValueDescription
1888944671579078978Tweet ID from the Wikipedia article, created 2025-02-10 13:34:39.256 UTC

Translations

LanguageNameDescription
RussianИдентификатор Snowflake64-битный идентификатор, введённый Twitter. Он состоит из метки времени в миллисекундах, номера машины и порядкового номера. Его используют X, Discord, Instagram, Mastodon и другие сервисы.

Sources

Use this record