Complete guide to exporting, archiving, and backing up your X/Twitter direct messages before they disappear.
Twitter DMs hold more than casual conversation. Professional relationships, source contacts, collaboration agreements, press inquiries, and deals are made over Twitter DMs. Then accounts get suspended, people move on, and the conversation — along with its context — is gone.
X has no built-in DM export feature beyond the general data archive. Understanding what you can and can't save is important before you need it.
Why DMs Get Lost
- The other person deletes their account. X removes the conversation from your inbox when the other party's account is deleted.
- Account suspension. If someone is suspended, their DM history with you disappears from your view.
- You delete the conversation. DM deletion on X is one-sided — you can remove a conversation from your view, but it stays in the other person's inbox. This also means someone can make a conversation disappear from your view by getting you to delete it.
- Platform changes. X has repeatedly changed DM functionality. Features that existed may not persist.
- You lose account access. If your account is compromised or you lose login credentials, your DM history becomes inaccessible.
Method 1: Official Twitter Data Archive
Download Your Complete DM History
- Go to Settings › Your Account › Download an archive of your data
- Verify your identity (password + confirmation code)
- Click "Request archive" — X takes up to 24 hours to prepare it
- Return to the same page when you receive an email notification
- Download the ZIP file
- Unzip and open
Your archive.htmlin a browser - Navigate to Direct Messages in the left panel
What it includes: All DM conversations, group DMs, timestamps, message text, and links to media. The archive is formatted as a browsable HTML site — you don't need special software to read it.
What it excludes: DMs with deleted or suspended accounts may be absent. Very old message history may have gaps.
Method 2: Screenshot Individual Conversations
Screenshot Important DM Threads
For conversations that matter — source contacts, professional agreements, press inquiries — take screenshots as they happen rather than relying on retrieving them later.
Best practice:
- Include the username and profile picture in the frame (don't crop the header)
- Show timestamps for each message
- Use a full-page screenshot extension to capture long conversations in one image
- Label files with the date and the person's username:
2026-03-15_username_dm.png - Store in a folder separate from your general screenshots
Print to PDF
Open the DM conversation in your browser. Press Ctrl+P (or Cmd+P on Mac). Select "Save as PDF" as the printer. This creates a clean PDF with timestamps and message formatting intact.
For long conversations: Scroll to the top of the conversation first to load older messages, then print. X loads DMs dynamically — if you don't scroll up, older messages won't be included in the PDF.
While you're at it — save the threads too
If a DM conversation links to a Twitter thread, save that thread now. Tweet Thread Saver captures the full text in one click.
Install Tweet Thread SaverMethod 3: Browser DevTools (Technical)
Export DM Data via Developer Tools
X's web app loads DM data as JSON through its internal API. You can intercept and save this data using browser developer tools.
- Open the DM conversation in Chrome
- Press F12 to open DevTools
- Go to the Network tab and filter by "Fetch/XHR"
- Reload the page — you'll see API requests appear
- Look for requests containing "dm_conversation" or "messages"
- Right-click the request and "Copy response" to save the raw JSON
This gives you structured data but requires parsing the JSON to read it. Not recommended unless you're comfortable with JSON formatting or have a script to process it.
The Archive Workflow for Journalists and Researchers
If you use Twitter DMs professionally — as a journalist managing sources, a researcher running studies, or a professional handling inquiries — a systematic archiving workflow is important.
Archive immediately after significant exchanges
Don't wait for the monthly data download. After a DM conversation that produces something important — a source confirmation, a tip, a collaboration agreement — screenshot it the same day.
Note the account details alongside the screenshots
When you screenshot, also note the person's display name, handle, follower count, and when you first had contact. Accounts change handles; follower counts change; accounts disappear. Your contextual notes preserve the identity even when the account doesn't.
Download the full archive quarterly
Set a calendar reminder to request your data archive every three months. Store each archive in a dated folder. This creates a rolling backup of your complete DM history.
Export to a searchable format
The DM data in the archive is stored in data/direct-messages.js as JavaScript-embedded JSON. Strip the JS wrapper and you have clean JSON that you can import into a database or search with tools like jq.
What You Cannot Save from DMs
Privacy Considerations When Saving DMs
Saving your own DM history is legally straightforward — you are a party to the conversation and have the right to record what was said to you. The same general legal framework that applies to keeping records of private communications applies here.
However, publishing or sharing saved DMs raises different considerations. DMs are private communications — the other party did not expect them to be public. Publishing DMs can create legal exposure (particularly in employment or defamation contexts) and ethical issues regardless of legality.
Save for your records. Think carefully before publishing.
Protect your public Twitter content too
While you're archiving DMs, save the valuable threads you've bookmarked before they disappear. Tweet Thread Saver works on any public thread.
Save Threads NowFrequently Asked Questions
Can you export Twitter DM conversations?
Yes, through the Twitter data archive. Go to Settings › Your Account › Download an archive of your data. The archive includes your DM history in a direct-messages.js file. You can open this file in a browser to read it, or parse the JSON for specific conversations.
Does the Twitter data archive include all DMs?
The archive includes DMs sent and received from your account, including group DMs. However, it may not include messages from accounts that were later suspended or deleted. Message history is generally complete but may have gaps for very old conversations.
How do I save important Twitter DMs without downloading the full archive?
Take screenshots of important conversations as they happen. Use your browser's Save Page As function to save the DM view as an HTML file. For long conversations, use a full-page screenshot extension. Store screenshots in a labeled folder immediately rather than relying on finding them later.
Do Twitter DMs disappear when someone deletes their account?
Yes — if the other person deletes their account, your DM conversation with them becomes inaccessible. X removes the conversation from both parties' inboxes when an account is deleted. This makes proactive saving of important DM exchanges critical.
Can I save Twitter DMs as a PDF?
Yes. Open the DM conversation in your browser, use the browser's Print function (Ctrl+P), and select Save as PDF. For long conversations, scroll to load the full history first. You can also use a browser extension like GoFullPage to capture the entire conversation as an image before printing to PDF.