How to Export ChatGPT to Markdown: Complete Guide (2026)
The fastest way to export a ChatGPT conversation to Markdown is the export feature in AI Toolbox (formerly ChatGPT Toolbox): hover the chat, click export, pick Markdown, and a clean .md file downloads instantly with YAML frontmatter, headed User and ChatGPT turns, and fenced code blocks intact. ChatGPT has no native Markdown export on any plan. The copy button under each reply does grab that single reply as Markdown, but it loses your prompts, the conversation structure, and everything else in the thread. This guide covers the full .md workflow: single chats, bulk export, and dropping the files straight into Obsidian, Notion, or a Git repo.
TL;DR. Native ChatGPT cannot export Markdown; its account export delivers an HTML/JSON ZIP after a wait of up to 7 days, and the copy button only covers one reply at a time. AI Toolbox exports any conversation to a structured .md file instantly, and Manage Chats bulk-exports your whole history as a ZIP of Markdown files. TXT export is free; Markdown requires Premium ($9.99/mo or $99 lifetime). 25,000+ active users, 4.5/5 Chrome Web Store rating, 14-day money-back guarantee.
By Adi Leviim, Co-Founder, 7+ years building AI productivity tools.
Why Markdown is the format power users actually want
PDF is for documents that get read. JSON is for data that gets processed. Markdown sits exactly between: it is plain text you can edit, diff, and version-control, yet it renders as a formatted document in every modern knowledge tool. As The Markdown Guide puts it, Markdown is portable, platform independent, and future proof, which is precisely what a conversation archive should be.
The people who land on this page usually want one of these:
- A PKM vault. Obsidian and Logseq are Markdown-native; Notion imports .md files with formatting preserved. Exported chats become permanent, linkable notes.
- A docs repo. Developers paste ChatGPT-assisted decisions and snippets into READMEs, ADRs, and wikis. Markdown diffs cleanly in Git; a PDF does not.
- A publishing pipeline. Static site generators, CMS editors, and tools like Ghost all eat Markdown directly. A brainstorm becomes a draft without reformatting.
- An editable archive. Unlike PDF, an .md archive stays searchable and editable forever, with no viewer required.
ChatGPT offers none of this natively. The built-in export under Settings, Data controls, Export data ships your whole account as a ZIP of HTML and JSON, arrives by email, and can take up to 7 days according to OpenAI's Help Center. There is no .md file anywhere in it.
The three ways to get ChatGPT into Markdown, compared
| Capability | ChatGPT copy button | Native ChatGPT export | AI Toolbox Markdown export |
|---|---|---|---|
| Produces Markdown | One reply at a time | No (HTML + JSON ZIP only) | Yes, full conversation as .md |
| Includes your prompts | No, assistant replies only | Yes, buried in JSON | Yes, User and ChatGPT turns in order |
| Single conversation | Manually, reply by reply | No, whole account only | Yes, one click |
| Speed | Instant per reply | Up to 7 days by email | Instant |
| YAML frontmatter (title, source URL) | No | No | Yes, built in |
| Bulk export (many chats at once) | No | Whole account, no selection | Yes, ZIP of .md files (Premium) |
| Cost | Free | Free | Premium ($9.99/mo or $99 lifetime); TXT format is free |
The honest read: if you only ever need one good answer in Markdown, the copy button under that reply is free and instant, and you should use it. The moment you want the whole thread, your own prompts included, or more than one conversation, copying reply by reply and stitching the file together by hand costs more time than the tool costs in dollars.
How to export a ChatGPT conversation to Markdown with AI Toolbox
Install AI Toolbox from the Chrome Web Store if you have not already. It works on every Chromium browser: Chrome, Edge, Brave, Opera, and Arc.
- Open ChatGPT and find the conversation you want, in the sidebar or via AI Toolbox's full-text search.
- Hover the conversation in the sidebar and click the export icon AI Toolbox adds to the row.
- Pick Markdown in the Select Export Format modal. The modal lists Text (free), Markdown, JSON, and PDF; the last three carry a Premium badge.
- Click Export. The .md file downloads immediately, named after the conversation title.
- Open it anywhere. Drop it into your Obsidian vault, import it to Notion, or commit it to a repo. The structure below survives intact.
What the exported .md file looks like
The export is structured Markdown, not a raw text dump. Every file opens with YAML frontmatter carrying the conversation title, a link back to the original chat URL, and the source, then alternates headed turns separated by horizontal rules:
Three details in that structure do real work:
- The frontmatter is machine-readable. Obsidian renders it as Properties, Notion maps it on import, and scripts can parse it. The
urlfield means every archived note links back to the live conversation. - Turns are headed, not run together.
### Userand### ChatGPTheadings with rules between them keep long threads scannable and make per-turn extraction trivial. - Formatting is preserved as Markdown, not flattened. Bold, lists, tables, and fenced code blocks come through as the original markup, so code keeps its language tag and renders highlighted wherever the file lands.
Bulk export your whole history as Markdown
For vault migrations and archives, exporting one chat at a time does not scale. The bulk flow (Premium) handles your entire history in one pass:
- Open Manage Chats from the AI Toolbox menu.
- Tick the checkbox next to each conversation, or use Select All Chats.
- Click the green Export button at the bottom, choose Markdown, and confirm.
- AI Toolbox downloads a single ZIP containing a conversations folder with one .md file per selected chat, each named after its title.
Unzip that folder directly into an Obsidian vault and every conversation appears as a ready-made note. The full bulk workflow, including folder ZIP export, is covered in the bulk export guide.
Building a second brain out of your ChatGPT history? AI Toolbox Premium adds instant Markdown, JSON, and PDF export with bulk multi-select, plus unlimited folders, full-text search, and the media gallery. 25,000+ active users. 4.5/5 Chrome Web Store rating. 14-day money-back guarantee. See ChatGPT module plans.
Where to put the .md files: Obsidian, Notion, and Git
Obsidian and Logseq
This is the zero-friction destination. Move the exported file into your vault folder and it is a note, no import step at all. Obsidian reads the YAML frontmatter as Properties, so the title, the link back to the original chat, and the source render at the top of the note and are queryable with Dataview.
Notion
Use Import, then Text and Markdown, and point it at the .md file (or a whole folder of them from a bulk export). Headings, bold, lists, and code blocks map to native Notion blocks. The step-by-step workflow, including how Notion handles the frontmatter, is in the Notion, Obsidian, and Google Docs export guide.
Git repos and docs sites
Commit exported conversations next to the code they informed. Markdown diffs line by line, so a re-export of an updated conversation shows exactly what changed, something no PDF or screenshot can do. The same files drop into Docusaurus, Hugo, Jekyll, or any static site generator without conversion.
Which export format should you pick?
AI Toolbox exports four formats; match the format to the destination:
| Format | Best for | Plan |
|---|---|---|
| Markdown (.md) | Obsidian, Notion, Git repos, static sites. Editable, diffable, structure preserved. | Premium |
| Client deliverables, legal records, academic submissions. Stable visual snapshot. | Premium | |
| JSON | Long-term backups and scripting. Keeps message IDs, timestamps, metadata. | Premium |
| Text (.txt) | Quick readable copy, pastes anywhere, loses formatting. | Free |
Format deep-dives: PDF export guide, JSON export guide, and TXT export guide.
Who gets the most out of Markdown export
Obsidian and Notion builders
If your notes live in Markdown, your AI conversations should too. Bulk-export a project's chats, unzip into the vault, and link them from your maps of content. The frontmatter URL means you can always jump back to the live thread to continue it.
Developers
Code blocks survive with language tags, which is the whole point: a debugging session exported to .md renders with syntax highlighting in GitHub, VS Code, and every docs tool. Keep an ai-notes folder in the repo and the reasoning behind the code ships with the code.
Writers and content teams
A ChatGPT brainstorm exported to Markdown is already a draft in the format your CMS wants. No copy-paste reformatting, no smart-quote cleanup, headings and lists already in place.
Researchers
Markdown archives stay grep-able. A folder of .md exports can be searched with any text tool, fed to scripts, or indexed by a local search engine, none of which works on a pile of PDFs.
Related guides
- How to export ChatGPT conversations (the complete guide)
- Export ChatGPT to Notion, Obsidian, and Google Docs
- ChatGPT bulk export guide
- Export ChatGPT: every method compared
- How to save ChatGPT as PDF
- Export ChatGPT to JSON
- Export ChatGPT to TXT
Frequently asked questions
Can ChatGPT export a conversation as Markdown natively?
No. ChatGPT has no Markdown export on any plan, including Plus, Pro, Team, and Enterprise. The copy button under each reply copies that single reply as Markdown, but it excludes your prompts and the rest of the thread. The only full export is the account-wide dump under Settings, Data controls, Export data, which arrives by email as an HTML and JSON ZIP, can take up to 7 days, and contains no .md files. For a per-conversation Markdown file you need an extension such as AI Toolbox (formerly ChatGPT Toolbox).
How do I export a ChatGPT conversation to a .md file?
With AI Toolbox installed, hover the conversation in the ChatGPT sidebar, click the export icon, choose Markdown in the Select Export Format modal, and click Export. The .md file downloads instantly, named after the conversation title, with YAML frontmatter and the full conversation in headed turns. Markdown export requires Premium ($9.99/month or $99 lifetime); TXT export is available on the free plan.
What structure does the exported Markdown file have?
Each file opens with YAML frontmatter containing the conversation title, the URL of the original chat, and the source. The conversation follows as alternating heading-marked User and ChatGPT turns separated by horizontal rules, with bold, lists, tables, and fenced code blocks preserved as Markdown markup rather than flattened to plain text.
Does the exported Markdown work in Obsidian?
Yes, with no import step. Move the .md file into your vault folder and it appears as a note. Obsidian renders the YAML frontmatter as Properties, so the title, the link back to the original ChatGPT conversation, and the source show at the top of the note and can be queried with Dataview or the Properties view.
Can I export my whole ChatGPT history to Markdown at once?
Yes, with AI Toolbox Premium. Open Manage Chats, select conversations with the checkboxes (or Select All Chats), click Export, and choose Markdown. The extension downloads one ZIP containing a conversations folder with an individual .md file per selected chat, each named after its conversation title, ready to unzip into a vault or repo.
Do code blocks survive the Markdown export?
Yes. Fenced code blocks come through with their language tags intact, so exported debugging sessions and code reviews render with syntax highlighting in GitHub, VS Code, Obsidian, and any other Markdown viewer. This is the main reason developers pick Markdown over PDF, where code formatting is frozen as an image-like snapshot.
Should I export Markdown, JSON, or PDF?
Markdown for anything you will read, edit, or link inside a notes tool or repo. JSON for backups and scripting, since it keeps message IDs and timestamps. PDF for documents of record that other people need to read exactly as rendered. For a serious archive, export Markdown for daily use and JSON as the data layer underneath it.
Is Markdown export free?
The Text (.txt) format is free, including for bulk export. Markdown, JSON, and PDF formats require Premium, at $9.99/month or $99 lifetime for the ChatGPT module. Premium also unlocks unlimited folders, pins, prompts, full-text search results, and the media gallery, and comes with a 14-day money-back guarantee subject to the refund policy.
Is AI Toolbox safe for exporting confidential conversations?
Yes. Every export is processed locally inside your browser; no conversation content is sent to external servers. AI Toolbox uses a zero-server architecture for GDPR compliance, holds the Chrome Web Store Featured badge, and is trusted by 25,000+ active users with a 4.5/5 rating. Payments are processed by Polar.
Does this work in Edge, Brave, Opera, and Arc, or only Chrome?
AI Toolbox works on every Chromium-based browser, including Chrome, Edge, Brave, Opera, and Arc. A single Chrome Web Store install covers all of them on the same machine. Firefox is not supported.
Last updated: June 12, 2026
