How to Download Your X (Twitter) Archive and What's Inside
How to request your X archive, what the zip holds (posts, long posts, likes, DMs, Grok chats), and what's missing: there is no bookmarks file.
Direct answer
As of September 2026, go to Settings and privacy, then Your account, then Your X data. Confirm with the code X sends you and click Request data. X emails you or sends a notification when the zip is ready. Inside is Your archive.html, a viewer you open in a browser, and a data folder. Your posts are in data/tweets.js, the full text of long posts in data/note-tweet.js, and your likes in data/like.js. The archive has no bookmarks file.
Open the X archive converterWhen to use this
- You want a copy of everything you've posted.
- You're leaving X, or want a backup first.
- You want to know what the files in the zip are before you use them.
Steps
- On X, open Settings and privacy, then Your account (some accounts show Account), then Your X data under Data and permissions.
- Confirm it's you with the code X emails or texts you.
- Click Request data next to your X account.
- Wait for the email or notification, then download the .zip.
- Open Your archive.html in a browser to look through it, or upload the zip to the X Archive to Markdown tool to get Markdown.
Example
Your archive.html assets/ data/ account.js tweets.js note-tweet.js like.js direct-messages.js grok-chat-item.js tweets_media/
data/tweets.js starts with:
window.YTD.tweets.part0 = [
{ "tweet": { "id_str": "...", "full_text": "...", "favorite_count": "12", ... } }
]Common mistakes
- There is no bookmarks file. An archive generated in June 2026 had no bookmark.js. People use separate tools to save bookmarks.
- The data files are JavaScript, not plain JSON. Each starts with window.YTD.<name>.part0 = before the JSON array, so a JSON reader fails until you strip that.
- Posts over 280 characters are cut short in tweets.js. The full text lives in note-tweet.js.
- Likes carry the liked post's id, text and link, but no date you liked it.
- The zip is large if you posted many images and videos. One archive we checked was 357 MB zipped, with 6,504 files.
Tools for this job
FAQ
- Is there a bookmarks file in the X archive?
- No. An archive generated in June 2026 had no bookmark.js. Open-source tools such as xarchive and tweetxvault save bookmarks separately.
- What's in the X archive?
- Your posts (tweets.js), the full text of long posts (note-tweet.js), likes (like.js), articles (article.js), Grok chats (grok-chat-item.js), direct messages, followers, following, ad data, and media folders such as tweets_media. It also has Your archive.html, an offline viewer.
- Does the archive include like and repost counts?
- Yes. Each of your posts in tweets.js has favorite_count and retweet_count as of the day the archive was made.
- Why are my links t.co links?
- X stores links in post text as t.co short links and keeps the real address next to them in the post's entities. The X Archive to Markdown tool swaps them back.
Sources
Checked September 2026.
More X archive guides
Move Your Twitter (X) Archive Into Obsidian
Turn every post in your X archive into its own Markdown note with frontmatter, threads stitched together, ready to drop into an Obsidian vault.
Turn Your Old Tweets Into Blog Post Drafts
Pull every thread and long post out of your X archive as Markdown blog drafts with a title, date, slug and tags, ready for Astro, Hugo or Jekyll.
Export All Your Twitter Threads to Markdown
Get every thread you ever posted as Markdown in one go from your X archive, with threads stitched in order and t.co links expanded.