How to download your X (Twitter) archive
Last updated
Your X (formerly Twitter) archive is a .zip file containing everything X stores about your account: your tweets, replies and retweets, likes, direct messages, followers, media and more. It is the only official way to get a complete copy of your own tweet history.
This guide walks you through requesting it. X changes its interface from time to time, so menu names below may be worded slightly differently on your screen.
Before you start
- You need to be able to log in to the account and know its password.
- X may ask you to confirm your identity with a code sent to the email address or phone number on the account. Make sure you can receive it.
- The archive is prepared in the background and can take a day or more. You do not need to keep the page open.
Step 1: Open your account settings
On the web, log in at x.com, then open the More menu in the left sidebar and go to Settings and privacy. In the mobile app, open your profile menu and find Settings and privacy.
Step 2: Find the data archive option
In settings, open the section about your account. Look for an option along the lines of "Download an archive of your data". If you can't find it, use the search box at the top of the settings page and search for archive.
Step 3: Verify your identity
X will ask you to re-enter your password and may send a verification code to your email or phone. Enter it to continue.
Step 4: Request the archive
Click the button to request your archive. X will start preparing it. The button usually changes to show that a request is pending.
Step 5: Wait for the notification
When the archive is ready, X notifies you (typically by email and/or an in-app notification). This often takes around 24 hours, sometimes longer.
Step 6: Download the .zip
Go back to the same settings page and click the download button. Save the .zip somewhere safe — for accounts with lots of photos and videos it can be several gigabytes. The download link only stays available for a limited time.
What's inside the archive?
After unzipping you will see a file called Your archive.html and a data folder. The most useful files are:
| File | Contents |
|---|---|
data/tweets.js (older: tweet.js) |
Your tweets, replies and retweets. Large accounts also get tweets-part1.js, tweets-part2.js, … |
data/like.js |
Tweets you have liked |
data/follower.js, data/following.js |
Account IDs of followers and accounts you follow |
data/account.js |
Your username, account ID and creation date |
data/tweets_media/ |
Photos and videos you posted |
The .js files are JSON wrapped in a small JavaScript prefix (window.YTD.tweets.part0 = [...]), so they don't open nicely in Excel.
View and export your tweets to CSV
Open the downloaded .zip in the free X Archive Viewer — no unzipping needed. It shows your stats, lets you search and filter by date or hide replies and retweets, and exports the result to a CSV file for Excel or Google Sheets. Everything happens in your browser; the archive is never uploaded.
Have a tweet link and want to know exactly when it was posted? Use the Tweet ID to Date converter.
Don't want to wait for the archive?
The archive only covers your own account and can take days. If you need tweets, likes or followers of any public account right now, the TwExportly Chrome extension exports them to CSV / Excel in minutes.
Frequently asked questions
How long does it take to get my X archive?
+
X says preparing the archive can take 24 hours or longer. In practice it is often ready within a day, but it can take several days for large or busy accounts. You will be notified when it is ready.
Can I download the archive of another account?
+
No. X only lets you request the archive of an account you are logged in to. To export tweets, likes or followers of other public accounts, use a tool such as the TwExportly Chrome extension.
How long is the download link valid?
+
The download is only available for a limited time (typically a few days). If it expires you can request a new archive, although X may limit how often you can do so.
Where are my tweets inside the archive?
+
Unzip the file and look in the data folder. Your tweets are in tweets.js (tweet.js in older archives); big accounts get extra files such as tweets-part1.js. You can open the whole .zip in our free X Archive Viewer without unzipping it.
Is it safe to open my archive in an online viewer?
+
Only use tools that process the file locally. The 100xTools X Archive Viewer runs entirely in your browser and never uploads your archive. Avoid services that require you to upload the .zip or hand over your email address.