【ChatGPT】ChatGPT Project Export Guide
ChatGPT Project Export Guide | How to save chat history, code and data
- Export chat history
Use ChatGPT's built-in export function
Open ChatGPT (https://chat.openai.com).
Click "Settings" in the lower left corner.
Select "Data Controls".
Click "Export Data".
Wait for OpenAI to send an email and download a .zip file containing all historical conversations.
- Export code
**Method 1 **: Manual copy
Directly select the code > Copy > Paste into your code editor (such as VS Code, PyCharm).
Applicable to: small code snippets, simple code snippets.
**Method 2 **: Download code file
Copy the code generated by ChatGPT.
Create a file locally (such as script.py or index.html).
Paste the code into the file and save it.
**Method 3 **: Use ChatGPT plug-in
Some browser extensions (such as ChatGPT File Uploader) allow ChatGPT to process and export code directly.
- Export Markdown/Text Format
If ChatGPT generates a long document, help guide, or FAQ, you can:
**Method 1 **: Copy the text and paste it into Notepad, Word, Google Docs, or Typora (supports Markdown).
Method 2: If Markdown is supported, you can save it as a .md file:
Copy the Markdown code generated by ChatGPT.
Paste it into a Markdown editor (such as Typora, Obsidian).
Save it as .md format.
- Export JSON / structured data
For data in tables and JSON structures: let ChatGPT generate JSON
Copy the JSON and paste it into a JSON file (such as data.json).
You can use VS Code or Postman to open the JSON and check the format.
- Batch export (for developers)
If you want to automatically export the content generated by ChatGPT: use the ChatGPT plugin
Some third-party Chrome extensions (such as ChatGPT Exporter) can export conversation records in one click.
Summary
Export chat records: ChatGPT has a built-in export function, and ZIP files are received by email.
Export code: manually copy/create a file/use a plugin.
Export Markdown/text: copy and paste into a Markdown editor.
Export JSON structured data: copy and paste the JSON file/use the API to process.
Batch export: use the OpenAI API or plugin.
Updated on: 09/02/2025
Thank you!