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.
Direct answer
To save one thread, paste it into the Twitter/X Thread to Markdown tool. To save all of them, use your X archive. Upload the archive .zip to the X Archive to Markdown tool. It finds every chain of your own replies to yourself and writes each chain as one Markdown file, in posting order, with the real links in place of t.co links.
Open the X archive converterWhen to use this
- You want every thread you wrote, not just one.
- You want to keep your threads if you leave X.
- You want threads as files you can search, edit, or feed to other tools.
Steps
- Request your archive. As of September 2026, go to Settings and privacy, then Your account, then Your X data. Confirm with the code X sends you, then click Request data.
- When X says the archive is ready, download the .zip. Open the X Archive to Markdown tool and drop the zip in. Don't unzip it first.
- Pick One file per post. Threads come out as one file each, with type: thread in the frontmatter.
- Or pick Blog drafts to get only threads and long posts.
- Download the zip and search for type: thread to list every thread.
Example
tweets.js: post 1001 tweets.js: post 1002, in_reply_to_status_id 1001 (you) tweets-part1.js: post 1003, in_reply_to_status_id 1002 (you)
posts/2024/2024-01-01-1001.md type: thread Part one Part two Part three
Common mistakes
- A big archive can split posts across tweets.js, tweets-part1.js and so on. The tool reads every part, so threads that span two files still join up.
- If you deleted a post in the middle of a thread, the chain breaks there. The rest of the thread comes out as a separate file.
- Reposts are cut short in the archive itself, so their text can end mid-sentence. They're off by default.
Tools for this job
FAQ
- How does the tool know a post is part of a thread?
- Each reply in the archive names the post it replies to and that post's author. When you reply to your own post, the tool adds the reply to that post's thread.
- What happens to replies to other people?
- They're left out by default. Turn on Replies to other people to include them. Each one gets a Replying to line that links to the post you answered.
- Are @mentions and #hashtags kept?
- Yes. They become Markdown links to the profile or hashtag page on x.com.
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.
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.