Snowflake ID Decoder

Decode Discord/Twitter-style snowflake IDs into timestamps.

The Snowflake Decoder takes a numeric snowflake ID and shows when it was created plus the worker, process and sequence fields packed inside it. It has epochs for Discord and Twitter / X, and a Custom option for other systems. Use it to find when an account, message or tweet ID was generated.

What is a snowflake ID?

A snowflake ID is a 64-bit integer designed to be unique and roughly sortable by time, introduced by Twitter. The top bits hold a timestamp in milliseconds since a chosen epoch, followed by a few bits identifying the machine that generated it, then a sequence counter for IDs made in the same millisecond. In the common layout the timestamp takes 41 bits, then 5 bits for a worker or datacenter, 5 bits for a process or machine and 12 bits for the sequence. Decoding shifts the number right by 22 bits and adds the epoch to get the creation time. The epoch differs per platform: Discord counts from 1 January 2015 (1420070400000) and Twitter from 4 November 2010 (1288834974657). Because the timestamp is in the high bits, newer IDs are larger numbers.

How to use Snowflake ID Decoder

  1. Paste the ID Enter the number into Snowflake ID.
  2. Choose the Platform epoch Pick Discord, Twitter / X or Custom. For Custom, enter the epoch milliseconds.
  3. Read the results Created (UTC), Unix seconds, Unix milliseconds, the two ID fields and Sequence appear.
  4. Check the bits The Binary (64 bits) box shows the full 64-bit pattern, which you can copy.

Frequently asked questions

What are the Discord and Twitter epochs?

Discord uses 1420070400000 ms (1 January 2015 UTC). Twitter uses 1288834974657 ms (4 November 2010 UTC).

How are the bits laid out?

41 bits of timestamp, 5 bits worker or datacenter, 5 bits process or machine and 12 bits sequence, after an unused top bit.

Why are snowflake IDs sortable by time?

The timestamp is in the most significant bits, so a later creation time gives a larger number.

Can I decode IDs from other systems?

Only if they use the same 22-bit lower layout. Pick Custom and enter that system's epoch in milliseconds; otherwise the worker and sequence fields will not mean what the labels say.

Is decoding an ID a privacy risk?

It only reveals when the ID was created and generator fields. It does not reveal who owns the account.

Is my ID sent anywhere?

No. Decoding happens in the page.