ChatGPT to Markdown exporter
Turn ChatGPT to Markdown in two ways: paste a single chat you copied, or open the conversations.json file from your data export and save any chat, or all of them, as .md files.
How to export ChatGPT chats as markdown
ChatGPT shows answers with headings, lists, tables and code, but copying a chat into a notes app often loses that structure. Converting ChatGPT to Markdown keeps it in a plain, portable format you can open anywhere, search, and keep under version control.
For one chat, select the conversation in ChatGPT, copy it, and paste it into the box. The formatted text is turned into markdown, with code blocks, tables and lists kept. For your whole history, export ChatGPT data from Settings › Data controls › Export data. You receive a zip by email; unzip it and open conversations.json here. Pick any ChatGPT conversation from the list, sorted newest first, and each one is saved with its title, date, and turns labelled You and ChatGPT. Only the branch you were viewing is kept when a reply was regenerated or edited.
Download all as .md joins every conversation into one file, separated by rules, which is handy for searching an archive. Images, uploaded files and voice audio are not included, only the text. The export file is read in your browser and never sent to our server. This tool is independent and not affiliated with OpenAI.
Each saved file is ordinary markdown, so it opens in any text editor, renders on GitHub, and imports into Obsidian, Logseq or Notion. Code blocks keep their language tag, which means syntax highlighting still works. Maths written by ChatGPT stays as text, usually in LaTeX form. Use Copy for a quick paste, Download .md for a file named after the chat title, or Open in editor to trim the conversation before you save it.
Why use this ChatGPT to Markdown tool
Copy and paste
Select a chat in ChatGPT, copy and paste: headings, code blocks, tables and lists are kept.
Your whole history
Open conversations.json from a data export and pick any conversation.
Download everything
Save all conversations as one markdown file.
How to export ChatGPT chats to Markdown
- In ChatGPT, open Settings › Data controls › Export data and download the zip, or simply copy a chat.
- Open conversations.json here, or paste the copied chat.
- Pick a conversation and download it as .md.
Why save ChatGPT chats as markdown
- Keeping a searchable archive of useful answers in Obsidian or another notes app.
- Moving code explanations and snippets into a project's docs folder.
- Backing up your chat history before deleting old conversations.
- Sharing a chat with a colleague as a file rather than a public link.
- Turning a long brainstorm into a draft you can edit in the markdown editor.
- Feeding a past conversation back into another AI tool as clean context.
Frequently asked questions
Is my chat history uploaded?
No. The file is read in your browser and never leaves your device.
Does it keep code blocks?
Yes, with their language.
Does it work with Claude or Gemini chats?
Copy the chat and paste it; formatted text converts the same way.
Can I save ChatGPT chats on my phone?
Yes. Copy the chat in your mobile browser and paste it here. The full data export is easier on a computer, since you need to unzip it first. On iPhone and Android, long-press in the chat to select text, or use the share option in the app, then paste here. Each chat converts the same way as on a desktop browser.
Can I turn the markdown into a Word or Google Doc?
Yes. Download the .md, then use Markdown to Word or Markdown to Google Docs for a formatted document.
Is it free? Is there a limit?
It is free with no sign-up. Large exports can be tens of megabytes; they are processed in your browser, so a very large file may take a few seconds to open.
Open editor