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.

Id 20 carries no timestamp. It predates X’s snowflake ids, which posts got in November 2010 and accounts in early 2016. 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. To date an account instead, see when someone joined Twitter.

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.

Does it work on account ids?

Yes, for accounts made since about March 2016, whose ids have 18 or 19 digits: the result is when the account was created, to within seconds. Older accounts have shorter, sequential ids with no date in them, so read their Joined date on the profile instead.

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.