Twitter / X Snowflake decoder

Twitter (now X) gives every tweet and user a 64-bit Snowflake ID. The first 41 bits are the millisecond timestamp since 4 Nov 2010. Paste any ID to see the embedded time.

epoch · 2010-11-04
tweet / user id-
decoded-
created at
-
unix millis
-
relative
-
data centre
-
worker
-
sequence
-
formattwitter spec

Twitter Snowflake (64 bits):

1 bit - unused (sign bit).

41 bits - milliseconds since the Twitter epoch (1288834974657 ms · 4 Nov 2010 01:42:54 UTC).

5 bits - data centre id.

5 bits - worker id within the data centre.

12 bits - per-worker sequence.

Tweet IDs and user IDs both follow this layout. Older Twitter IDs (before 2010) used incrementing integers.

- Epoch: 1288834974657 ms

Related decoders