WEIR

Free tool

Tweet ID to date converter

Paste an X post link or id and see exactly when it was posted — no API call, no account.

Post 20 predates X’s snowflake ids (November 2010), so its id carries no timestamp. X’s very first post, id 20, was published on 21 March 2006.

How it works

An X post id is a 64-bit Snowflake: a millisecond timestamp in the high bits, followed by a machine id and a sequence number. The formula is (id >> 22) + 1288834974657, which gives Unix time in milliseconds. The same arithmetic is useful for sorting posts by time or for paging a search with sinceId and untilId.

Need the post itself — text, author, counts, replies? Weir’s API returns it from the same id: see how to get tweets with Python or the Twitter API alternative.

Questions

How can a tweet id tell you its date?

Since November 2010, X has used Snowflake ids: the first 41 bits of every post id are a timestamp in milliseconds since X's epoch, 4 November 2010. Shifting the id right by 22 bits and adding the epoch gives the exact time it was created.

Does it work for any post?

For every post made since November 2010. Earlier posts have small sequential ids with no timestamp in them.

Is my input sent anywhere?

No. The conversion happens in your browser; nothing is sent to a server.

Can I turn a date into a post id?

Yes, as a lower bound: subtract X's epoch (1288834974657) from the Unix time in milliseconds and shift left by 22 bits. Any post created after that moment has a larger id, which is how sinceId and untilId bound a search by time.