What is like.js in your X archive?
like.js lists every post you have liked on X, going back to your first like. Each entry has the post's ID, its text and a link to it. It does not record who wrote the post or when you liked it.
Open your like.js without writing code
The free X Archive Viewer reads it straight from the ZIP in your browser and exports CSV or Markdown. Nothing is uploaded.
Open the viewerFields in like.js
| Field | What it means |
|---|---|
| tweetId | ID of the liked post. Also encodes the date it was published. |
| fullText | Text of the post, when it was still accessible at export time. |
| expandedUrl | Link to the post on X, when accessible. |
What the file looks like
The start of a real like.js, with made-up IDs and text. It is JSON with one line of JavaScript in front.
window.YTD.like.part0 = [
{
"like": {
"tweetId": "1799412345678901234",
"fullText": "The whole text of the post you liked...",
"expandedUrl": "https://twitter.com/i/web/status/1799412345678901234"
}
}
]Measured in a real archive
A real 19,244-like archive exported in April 2026, measured on 2026-10-18.
| File size | 7.3 MB in a single like.js, about 378 bytes per like |
|---|---|
| First line | window.YTD.like.part0 = [ ... ] |
| Fields per entry | tweetId, fullText and expandedUrl only; tweetId and expandedUrl on every entry |
| No fullText at all | 33 likes (0.17%) |
| Text is only a t.co link | 453 likes (2.4%), mostly photo or video posts |
| Text cut off with an ellipsis | 1,095 likes (5.7%), median length 278 characters |
| Median text length | 218 characters; 26% are longer than 280 |
| Publish date recoverable from the ID | All 19,244 (none older than November 2010) |
| expandedUrl ends in the post ID | 100% |
What it is useful for
- Finding a post you liked years ago that the Likes page no longer scrolls back to.
- A backup of what you liked that survives the author deleting their account.
- Exporting your likes to a spreadsheet, Notion or Obsidian.
What to watch out for
- No author handle and no liked-on date. The publish date can be decoded from the ID.
- Large archives split it into like-part0.js, like-part1.js and so on. Read them in order.
- A like on a photo-only post usually has only a t.co link as its text, so nothing in it is searchable.
- Long posts can be cut off. In the archive we measured, about 1 in 18 texts ended in an ellipsis at around 280 characters.
Related files
- bookmark.js : Your bookmarks
- tweets.js : Your own posts
- deleted-tweets.js : Recently deleted posts
Field names come from the README.txt X includes in every archive. X changes the archive from time to time, so check the README in your own download if something differs. See every file in the archive.