Find your posts in the ZIP, read each record exactly, and know what the archive holds before you convert it.
Your X (Twitter) archive is a ZIP of a viewer, data files and media; your posts sit in tweets.js. Downloaded the ZIP and can't find your tweets? This page maps every file, walks one full record field by field, and ends with a free checker you run locally. For more ways to find, save and export posts, see the archive hub.
Work on a copy of the ZIP; the original stays as you downloaded it.
How to Download Your X Archive
Request it in Settings, confirm a code, then wait for the ready email.
The steps follow X's own help page: the wait is normal — about a day, sometimes 24 hours or longer — then X sends the ready notice by email or app push. For screenshots of each step, see how to download your Twitter archive.
- Go to Settings, choose Your account, then select Download an archive of your data.
- Verify with the code X sends to your email or phone.
- Tap Request data.
- When the ready notice arrives, download the ZIP while logged in.
What Your Twitter Archive Contains
Your archive holds a viewer, your account data and your media, each in its own place.
Every file is named for what it holds, so you can go straight to the one you need: profile, posts, Direct Messages and followers each get their own .js file in data/.
| File or folder | What it holds |
|---|---|
| Your archive.html | The built-in viewer you open in a browser |
| data/ folder | One .js data file per data type, each named for what it holds |
| Post files in data/ | Your posts; big accounts split them into numbered parts |
| data/manifest.js | Lists every file and its record count |
| tweets_media/ or tweet_media/ | Your post images and videos |
Where your posts and media are
Your posts sit in the post files in data/. Your media sits in tweets_media/ or tweet_media/. A URL in a record is not a saved image or video.
How to Open Your Archive
Extract the whole ZIP into one folder, then open Your archive.html in a browser.
- Extract every file in the ZIP into one new folder on your computer.
- Keep the data/ and media subfolders in that same folder.
- Open the viewer from that folder in a browser.
A blank viewer means a broken folder, not empty records. Extract again into one folder and keep the data/ and media/ subfolders beside the viewer. If an image does not load, the record holds a remote URL, not a local file — see Twitter archive images not loading. Renaming .js to .json does not remove it.
Twitter Archive Format Example
tweets.js is a JSON array behind one line of JavaScript; strip that prefix safely and the rest is data.
Every data .js file opens as text — never run it. Its first line is an assignment, window.YTD.tweets.part0 =, and everything after it is a JSON array of records.
import json, sys
raw = open(sys.argv[1], encoding="utf-8").read() # reads one data .js file
prefix = "window.YTD.tweets.part0 ="
records = json.loads(raw[len(prefix):]) # strip the prefix, decode the rest
Synthetic example record — made-up data, labelled as an example:
[
{
"id_str": "3",
"created_at": "Wed Dec 23 20:00:00 +0000 2026",
"full_text": "Example text of this made-up post.",
"favorite_count": "0",
"entities": { "hashtags": [], "user_mentions": [], "urls": [] }
}
]
| Field | What it holds |
|---|---|
| id_str | The post ID — a long number in a real archive. Always read it as text, never as a number. |
| created_at | The original timestamp string. Keep it exactly as written. |
| full_text | Everything the post said, in full. |
| favorite_count | The like count. "0" is a real zero and differs from null or missing. |
| entities | The hashtags, mentions and URLs in the post. |
Reading the file in code
Match the prefix, decode the JSON after it, and each record opens as a plain object you can read field by field.
Check Your Files With a Format Checker
Run the free checker on the sample files, compare the report, then point it at your own parts.
Download check_archive.py with two sample .js files:
- check_archive.py — Python checker
- synthetic-tweets-part0.js — two invented records
- synthetic-tweets-part1.js — one invented record
- synthetic-inspection-report.json — expected output
Run it with Python 3.10 or newer (py -3 on Windows):
py -3 check_archive.py synthetic-tweets-part0.js synthetic-tweets-part1.js
The sample files give 2 files, 3 records and 3 distinct IDs; yours should match your parts. The checker makes no network requests — everything stays on your machine. Its report lists every part with its record count and a SHA-256 fingerprint, so a missing part or a changed file stands out. Parts must start at 0 with no gaps; it reads up to 10 MiB per file, 20 MiB total and 20,000 records.
Analyze and Export Your Archive
Turn the records into a spreadsheet, or upload the ZIP for free charts of your posting history.
Into a spreadsheet
Follow the Excel export guide. Import id_str as text so every digit survives; changing a rounded spreadsheet cell to Text afterward cannot restore its original digits.
Or upload the ZIP to archive upload insights — a free account needs no card and can upload once every 30 days. You get your posting pattern at a glance: busiest hours and weekdays, a heatmap, your top hashtags and yearly volume. The upload stores aggregate counts only and deletes the ZIP after processing — you get charts, not searchable posts or exports.
What the Archive Leaves Out
The archive is a snapshot of your account from your first post to the day X built it — what it leaves out tells you where to look next.
Posts you deleted before the request are absent from a new download, per X's help page. If a post is missing, check every part first, then the account, then any older archive you saved — an older saved archive holds posts a new one lacks. For what a missing post means, read deleted tweets in a Twitter archive.
Archiving Other Accounts' Posts
The X archive covers only your account — posts from other accounts need a paid collection.
Public-post collection does this: give it a profile, a post URL or a list of URLs and it collects the available public posts. Collect a public profile once and the posts you stored stay in your archive even if they later disappear from X. For keeping posts as evidence, see the social media evidence preservation guide.
Other Ways to Export Posts
Pick the source by what you need: your own history, other accounts' posts, or a research dataset.
| You need | Source | What it holds |
|---|---|---|
| Your own history | Your X archive ZIP (this page) | Full records: text, IDs, timestamps, counts |
| Posts from other accounts | Public-post collection: Basic $29/month, 10,000 tweets; Pro $79/month, 100,000 tweets (pricing) | Available public posts, stored in your archive |
| A quick file from the browser | Browser export extensions | CSV of posts |
| A dataset for research | ID-only export files | Post IDs only, no text |
Which source to use
Your exports from this site arrive as CSV, XLSX or JSON, with up to 50,000 rows in each file.
Research datasets of post IDs
An ID-only dataset does not contain the post text. Each ID needs a lookup tool to become a post.
Frequently Asked Questions
What the ZIP holds, which file to open, and what to do when something is missing — the questions readers ask first.
What does a Twitter archive contain?
Your profile, posts, Direct Messages, media and followers, as HTML and JSON files in one ZIP, per X's help page.
What format is the Twitter archive in?
A ZIP of HTML and .js files. Each .js data file is a JSON array after a window.YTD prefix.
Does the Twitter archive show deleted tweets?
No. A new download is a snapshot of the account now. An older archive you saved still holds posts deleted since.
How do I view my Twitter archive after download?
Extract the whole ZIP into one folder and open the viewer from inside it, with the data/ and media/ subfolders beside it.
Why won't my Twitter archive download?
Log in to the same account and use the Download button or the email link. If the link has expired, request a new archive.
Can I open tweets.js in Excel?
Not directly. Remove the prefix, decode the JSON, then import id_str as text so long IDs keep every digit.
Why is my archive split into tweets-part files?
Large accounts get numbered parts. Read every part, starting at 0, with no gaps.
Can I download someone else's Twitter archive?
No, only your own. Paid plans collect available public posts from any public profile.
Next Steps
You know which file holds your posts; now export them or chart them.
For a spreadsheet, follow the Excel export guide; for charts, upload the ZIP.