UTILS.
Private by default
❄

Snowflake ID Decoder

Decode a Twitter or Discord snowflake ID into its timestamp, worker, process and sequence.

Your files stay on this device

Files are processed in your browser, never uploaded. The site downloads code and assets to run the tools. No accounts or trackers.

Use Download to save this tool as one HTML file for offline use.

Privacy →

Try a worked example

Example

Choose Discord and enter 175928847299117063. The Unix timestamp is 1462015105796 milliseconds, with worker ID 1, process ID 0 and sequence 7. The displayed date uses your local time zone.

Keep in mind

Choose the epoch for the service that issued the ID; Twitter and Discord use different starting dates. Decoding the bits does not confirm that an account, message or other object exists.

About this tool

Snowflake ID Decoder breaks a 64-bit snowflake ID into the fields packed inside it. Paste an ID made of digits only, choose the epoch it was built against, and the tool shows the timestamp as a readable date and time in your local time zone, the same moment in Unix milliseconds, a worker ID, a process ID and a sequence number. The maths uses BigInt, so all 64 bits stay exact; ordinary JavaScript numbers would round an ID this large.

The layout decoded is the common one. The upper bits are milliseconds since a custom epoch (the ID shifted right by 22 bits, plus the epoch), followed by 5 bits for the worker, 5 bits for the process and the low 12 bits for a sequence number that separates IDs created in the same millisecond. The epoch menu offers two choices: Twitter / X (1288834974657 ms, 4 November 2010) and Discord (1420070400000 ms, 1 January 2015). Twitter's own documentation calls the two 5-bit fields datacenter and worker; this tool labels them worker and process, but they are the same bits.

Other systems use similar designs with different epochs or bit splits, Instagram for one, so their IDs will not decode correctly with these two options, and there is no custom epoch. Anything but digits, such as spaces, a minus sign or hex, is reported as invalid. The tool only does the arithmetic and cannot tell whether an ID is genuine, so a random number still gives a date.

Frequently asked questions

What is a snowflake ID?
It is a 64-bit ID where the high bits hold a timestamp (offset from a custom epoch) and the low bits hold worker, process and sequence numbers.
Which epoch should I pick?
Use the Twitter epoch (2010) for Twitter/X IDs and the Discord epoch (2015) for Discord IDs, since they timestamp differently.
Why is the date wrong or impossible?
Usually the wrong epoch, or an ID from a service with a different layout. Try the other epoch, and check that the ID is a full number with no spaces or letters.
Why does the tool call them worker and process?
Discord names the two 5-bit fields worker and process. Twitter's documentation calls them datacenter and worker, but the bit positions are identical.

More tools