How to Download All Your Twitter Tweets (X Archive Guide)
Want to download all your Twitter tweets? Your posts appear on your X (formerly Twitter) profile, but scrolling back through years of updates to find one tweet is painful – and if your account is ever locked or deleted, they’re gone. The good news is that X lets you download a complete archive of your tweets, replies, media and more for free. Here’s how to do it in 2026, how to read the archive, and how to search your tweets in Excel.

Your archive.html to browse all your tweets. Your tweets are also in data/tweets.js.Table of Contents
How to download all your tweets on X (desktop)
- Log in to X.com (external site) and click More in the left menu.
- Choose Settings and privacy, then Your account.
- Click Download an archive of your data.
- Enter your password, then the verification code X sends to your email or phone.
- Click the button to request your archive.
- Wait for the email or app notification saying your archive is ready. X says it may take a few days.
- Return to the same settings page while logged in and download the ZIP file.
How to download your tweets on the X app (Android and iPhone)
- Tap your profile picture to open the menu.
- Go to Settings and privacy > Your account > Download an archive of your data.
- Verify your identity and request the archive.
- When it’s ready, download the archive. It’s easier to open the ZIP on a computer.
X’s official steps are on its help page, How to download your X archive (external site). The menu names change from time to time, so check there if a step looks different. Make sure your email address is confirmed before you request it.
What’s inside your X archive?
- All your tweets (posts), replies and retweets, with dates and IDs
- Media you uploaded – photos, videos and GIFs
- Direct Messages, likes, lists, followers and following
- Profile details, account history and the interests and ad data X has linked to you
The ZIP contains an HTML viewer and the raw data as JavaScript/JSON files in the data folder.
How to view and search your tweets
Use the built-in archive viewer
Unzip the file and double-click Your archive.html. It opens in your browser, works offline and lets you browse and search your tweets. It’s a great way to find your first tweet too.
Open your tweets in Excel
Your tweets are stored in data/tweets.js. To analyze them in a spreadsheet:
- Make a copy of
tweets.jsand open it in a text editor. - Delete the text before the first
[(it looks likewindow.YTD.tweets.part0 =) and save the file astweets.json. - In Excel, go to Data > Get Data > From File > From JSON and select the file.
- In Power Query, convert the list to a table and expand the
tweetcolumn to choose fields likefull_text,created_at,favorite_countandretweet_count. - Click Close & Load. Now you can sort, filter and search all your tweets.
Keep your tweet backup up to date
An archive is a snapshot. As soon as you post again, it’s out of date, so request a fresh archive every few months, or before deleting tweets or your account. Store the ZIP files in cloud storage or on an external drive. On a Mac, our guide on how to unzip files on Mac shows how to open the archive.
The old 2009 method (no longer works)
When this guide was first written, you could download tweets as XML by typing a public API address like twitter.com/statuses/user_timeline/account.xml?count=n into your browser, save the page and import the XML into Excel. You could even fetch only newer tweets with a since_id parameter. Twitter retired that open API long ago, and the third-party CSV download tools of that era have shut down. The official archive is now the reliable way.

FAQ
Can I download all my tweets for free?
Yes. Downloading your X archive is free for every account.
How long does it take to get my Twitter archive?
Often a day, but X says it may take a few days. You’ll get a notification when it’s ready.
Can I download someone else’s tweets?
No. The archive is only for your own account. For other accounts you’re limited to what X shows publicly or allows through its paid API.
Does the archive include deleted tweets?
No. The archive contains the tweets in your account when you request it, so download it before deleting anything.
Originally written by guest blogger Akmal Wardak, who writes on AkmalWardak.com about social media, software reviews, how-to tutorials and WordPress tips. Updated for 2026 by QuickOnlineTips.
Stuck on a gift? Try our free Gift Idea GeneratorIdeas for anyone by age, job, interests and budget, with Amazon.com and Amazon.in linksFind gifts →Didn’t find what you were looking for? Tell us in a line.

$4.99Free when you subscribe
Get 100 tech terms explained in plain English
8-page PDF on AI, coding, slang and SEO + one tech email a week.
Don’t want emails? Buy the PDF for $4.99 (opens in a new tab) (external site)
Sent by email. Unsubscribe anytime. See our privacy policy.







hi great post.. this is downloading tweets of a user not of a page, if any one have tweets on his page they wont be downloaded.
How can i do that..
Does this recover ALL tweets ? I have about 775 tweets but when the XML file is imported into Excel, I see only 175 rows ? what happens to the others ?
But thanks for an excellent article anyway
Thanks for the great post, it is very useful who wants to integrate the twitter with any application.
Thanks Again!
So, how about a specific search or a hashtag?
Does anybody know how to pull those tweets?
:) thanks!
This is wonderful for a newbie like me. Thanks so much. Also, thanks to Matthew Wilcoxson for the tip on using max_id. Is there a list I could read about everything I could download with just XML and URL? Thanks!
Hmmm, it only pulled the last 184 tweets. Any way to get to the other 5k?
Thanks. Can I save my “following” list on Twitter via XML and how?
how to obtain tweets with specific hashtag?
this is AWESOME!
Is there any way to download tweets for a particular hashtag?
This is basically using the twitter API and it restricts all single request to at most 200 tweets.
If you need to get earlier ones try using “max_id” with “count”. Just note down the id of the last tweet you obtained then goto a url like:
https://twitter.com/statuses/user_timeline/account.xml?max_id=ID&count=100
(replace “account” with your name and “ID” with the last one obtained)
Very useful your script but I need to download, together with the tweet, the text of “in replay to”, because I need to have the questions and answers. Any way to do this? Thanks
I did this and got only 200 tweets but I typed 2240. Because that’s the total of my tweets so far. What should I do? :D
Same Here 9000+ Tweets but the XML only retrieved ~180
Good first step! If you have some coding chops, you can automate the entire thing.
At the end, you’ll have all your Twitter posts in a database, perfect for performing whatever metrics you’d like.
Now I just have to figure it if anyone would really want to read all of my tweets :-).
but,how to save all tweets I received?
Save it as a normal spreadsheet.