Your ChatGPT history is full of useful work: drafts, code, research, plans and ideas. If you want a backup, are moving to another AI assistant, are about to delete your account, or just want to search your old chats offline, you can download everything in one file.
ChatGPT’s export feature emails you a ZIP file with your chat history and other account data. There’s also a privacy portal route that works even if you can’t sign in.
This guide shows both ways step by step, what you’ll find inside the ZIP, how to read the files and turn them into Markdown, how to save a single chat, which accounts can’t export, and how to fix exports that never arrive. It follows OpenAI’s official help article as of November 2026.
- Steps: Profile menu > Settings > Data controls > Export data > Export > Confirm export.
- Delivery: an email (or SMS) with a Download data export link. It can take up to 7 days.
- The link expires 24 hours after you receive it, and works only while signed in to the same account.
- Who can export: Free, Plus, Pro and eligible Edu workspaces. Not Business or Enterprise workspaces.
- Can’t sign in? Use OpenAI’s Privacy Portal: Make a Privacy Request > consumer account > Download my data.
- Inside the ZIP: a browsable
chat.htmlplus JSON files with every conversation.
Why Export Your ChatGPT Data?
| Reason | Why the export helps |
|---|---|
| Backup | Keep a copy of important work in case chats are deleted |
| Moving to another assistant | Take your history and prompts with you |
| Deleting your account | Save what you need first; deletion is permanent |
| Offline search | Search years of chats on your own computer |
| Privacy check | See what data is stored on your account |
Which Accounts Can Export
| Account | Export from Settings? |
|---|---|
| Free | Yes |
| Plus / Pro | Yes |
| ChatGPT Edu | Eligible workspaces only (admin setup applies) |
| ChatGPT Business / Enterprise | No |
| Logged out | No (use the Privacy Portal) |
Before you start, make sure you can reach the email inbox or phone number on the account, as you may need to verify that it’s yours.
Method 1: Export From Settings
- Sign in at chatgpt.com.
- Open your profile menu (your name or picture).
- Select Settings.
- Select Data controls.
- Under Export data, select Export.
- Select Confirm export on the confirmation screen.
That’s it. ChatGPT prepares the file in the background and messages you when it’s ready. OpenAI’s help article describes the steps for the web, so use a browser (on a computer or your phone) if you can’t find the option in an app.
Method 2: Privacy Portal
Use this if you can’t sign in or want to make a formal data request.
- Go to OpenAI’s Privacy Portal.
- Select Make a Privacy Request.
- Select I have a consumer ChatGPT account.
- Select Download my data and follow the instructions to verify ownership.
Downloading the ZIP
- Wait for the email or SMS. Exports can take up to 7 days.
- Open the message and select Download data export.
- Make sure you’re signed in to the same ChatGPT account that requested it.
- Download within 24 hours. After that the link expires and you need a new export.
- Save the ZIP somewhere safe, such as an encrypted drive. It contains private data.
Only one export can run at a time. If ChatGPT says an export is already requested, wait for it to finish.
What’s Inside the Export
OpenAI says the ZIP includes your chat history and other relevant account data, but doesn’t list file names. Based on recent exports documented by export tools and the OpenAI community forum, you’ll typically see:
| File or folder | What it holds |
|---|---|
chat.html |
A browsable page of all conversations; open it in a browser. It can be over 100 MB for heavy users |
conversations.json (large accounts may be split into conversations-0.json, conversations-1.json…) |
Every conversation in machine-readable form |
user.json, user_settings.json |
Basic account details and settings |
message_feedback.json |
Thumbs up/down feedback you gave |
| Image and file folders | Uploaded files and generated images, where included |
The exact layout can change over time, and some attachments may be missing. Project chats aren’t exported separately; the export covers the whole account.
How to Read and Convert Your Chats
Quick look
Unzip the file and open chat.html in Chrome, Edge or Firefox. Use Ctrl + F (Cmd + F on Mac) to search.
Turn conversations into Markdown files
Each conversation in the JSON has a title, timestamps and a mapping of messages linked by parent IDs, with current_node pointing at the last message. This script walks back from current_node to rebuild each chat:
import json, glob, os, re
os.makedirs('chats_md', exist_ok=True)
files = sorted(glob.glob('conversations*.json'))
for path in files:
with open(path, encoding='utf-8') as f:
conversations = json.load(f)
for conv in conversations:
title = conv.get('title') or 'Untitled'
mapping = conv.get('mapping', {})
node = conv.get('current_node')
messages = []
while node:
item = mapping.get(node, {})
msg = item.get('message')
if msg and msg.get('content', {}).get('content_type') == 'text':
role = msg['author']['role']
text = ''.join(p for p in msg['content'].get('parts', []) if isinstance(p, str))
if text.strip() and role in ('user', 'assistant'):
messages.append((role, text))
node = item.get('parent')
messages.reverse()
safe = re.sub(r'[^A-Za-z0-9 _-]', '', title)[:80] or 'chat'
with open(f'chats_md/{safe}.md', 'w', encoding='utf-8') as out:
out.write(f'# {title}\n\n')
for role, text in messages:
out.write(f'**{role.title()}:**\n\n{text}\n\n')
print('Done')
- Save the script as
convert.pyin the unzipped folder. - Run
python convert.py. - Open the chats_md folder; each chat is a Markdown file you can search or import into notes apps.
Tip: chats with the same title will overwrite each other; add the conversation ID to the file name if that matters.
Search your history with local AI
Drop the Markdown files into a local RAG tool such as Open WebUI or AnythingLLM and ask questions about your own chat history, fully offline.
Saving a Single Chat
- Copy: use the copy button under a reply to grab that answer.
- Share link: the Share option creates a read-only link to the conversation.
- Print to PDF: open the chat in a browser and use Print > Save as PDF.
- Projects: keep related chats and files together in ChatGPT Projects, though the export still covers the whole account.
Before Deleting or Switching
- Export and confirm the ZIP opens.
- Copy your custom instructions and memories by hand from Settings so you can reuse them. See custom instructions and ChatGPT memory.
- Cancel any subscription first: how to cancel ChatGPT.
- Then delete chats or your account: delete ChatGPT history and account.
- Moving to Claude? Follow move from ChatGPT to Claude.
Keep Your Export Safe
Your export can contain years of personal details, work documents and code. Treat it like a password file.
- Store it encrypted. Use an encrypted drive, BitLocker or FileVault, or an encrypted archive with a strong password.
- Don’t email or upload the ZIP to random “ChatGPT viewer” websites. Use offline tools or the script above instead.
- Delete old copies from your Downloads folder once you’ve moved the file somewhere safe.
- Export regularly, for example every few months, if your chats are an important work record.
- Remember shared links: anyone with a shared chat link can read that chat, so review shared links in Settings if you’ve used them.
Troubleshooting
| Problem | Likely cause | Fix |
|---|---|---|
| Export email never arrived | Still processing, or filtered | Allow up to 7 days; check spam and promotions; check SMS if your account uses a phone number |
| “Export already requested” | An export is in progress | Wait for it to finish before requesting another |
| Download link doesn’t work | Expired after 24 hours | Request a new export |
| Link asks you to sign in | Different account signed in | Sign in to the account that requested it |
| No Export option | Business or Enterprise workspace | Not available there; switch to your personal workspace if you have one |
| Can’t sign in at all | Lost password or access | Use the Privacy Portal route |
| chat.html freezes the browser | Very large file | Use the JSON files and the script above |
| Some images missing | Not every attachment is included | Download important files from the chats directly |
FAQ
How long does a ChatGPT export take?
It is often much quicker, but OpenAI says exports can take up to 7 days to arrive.
How long is the download link valid?
24 hours from when you receive it.
Can I export ChatGPT data from a Business or Enterprise account?
No. Settings export isn’t available for ChatGPT Business or Enterprise workspaces.
Does the export include images?
Exports usually include uploaded files and generated images, but some attachments can be missing, so save critical files separately.
Can I export just one project or chat?
Not with the export tool, which covers the whole account. For one chat, copy it, share it or print it to PDF.
Does exporting delete my chats?
No. Exporting only makes a copy; your chats stay in ChatGPT.



