Toolstia / Snowflake ID decoder
Snowflake ID decoder
Snowflake IDs are 64 bit numbers that hide the moment they were created. Paste a Discord or X (Twitter) ID to see the exact creation time, plus the worker, process and sequence parts. You can also turn a date into the smallest ID for that moment.
A snowflake ID packs a millisecond timestamp, a worker number, a process number and a counter into 64 bits. Different services count the timestamp from different epochs.
How it works
- Choose decode or encode and pick the epoch.
- Paste the ID, or enter a date in UTC.
- Read the creation time and the parts, or copy the generated ID.
The layout
The top bits are the number of milliseconds since the epoch, followed by 5 bits of worker, 5 bits of process and 12 bits of sequence. Shifting the ID right by 22 bits gives the timestamp part.
Epochs
Discord counts from 1 January 2015 and X from 4 November 2010. Other systems use their own start dates, so a custom epoch in milliseconds is available.
Date to ID
The generated ID has the worker, process and sequence set to zero, so it is the smallest ID that could have been made in that millisecond. It is useful as a boundary in searches.
Precision
IDs are handled as exact big integers, so no digits are lost.
Questions
Does this look up the account or message?
No. It only reads the numbers inside the ID. Everything happens in your browser, and nothing you enter is sent anywhere.
Why does my ID give a strange date?
The epoch probably does not match the service that made it. Try another epoch or set a custom one.
Are all 64 bit IDs snowflakes?
No. Only IDs made with the snowflake layout carry a timestamp.