ChatGPT to Markdown Converter

This ChatGPT to Markdown converter turns ChatGPT answers and whole conversations into clean Markdown. Paste a reply, or upload your ChatGPT data export to save every chat as a .md file. Code blocks, tables and math are kept, and citation leftovers such as :contentReference[oaicite:0] are removed.

  • Paste or upload your export
  • Stays on your device
Use ChatGPT’s copy button, or select the text and press Ctrl+C (⌘+C on a Mac). Markdown you paste is cleaned too.

Markdown options
Math formulas
Web citations

How to convert ChatGPT to Markdown

Converting a ChatGPT answer to Markdown takes three steps, on a computer or a phone.

  1. Copy from ChatGPT

    Click the copy button under an answer, or select part of a chat or the whole conversation and press Ctrl+C (⌘+C on a Mac).

  2. Paste it into the converter

    Formatting becomes Markdown as you paste: headings, lists, tables, code blocks with their language, links and math. Markdown text is cleaned too.

  3. Copy or download the Markdown

    Choose how math and web citations should look, then copy the result or download it as a .md file.

Example

This sample answer has 3 citation marks: one hidden in invisible characters, a :contentReference[oaicite:0]{index=0} tag and a bare citeturn0news1. The converter removes all 3 and rewrites its 5 formulas with $ and $$.

Convert a messy ChatGPT answer

ChatGPT to Markdown converter features

One tool for a single answer or years of chats, with the fixes ChatGPT’s own copy and export don’t make.

  • 2

    Paste or upload

    Convert one answer, a whole chat, or every chat in your ChatGPT export.

  • $

    Math that renders

    Formulas become $…$ and $$…$$ for Obsidian and GitHub, or stay as ChatGPT wrote them.

  • [ ]

    Clean citations

    Web sources stay as Markdown links, or go. Leftover citation marks are always cleaned up.

  • .md

    Files or one document

    Download chats as separate .md files in a .zip, or together as one Markdown file.

How to export all your ChatGPT chats to Markdown

ChatGPT has no Markdown export, but its data export converts here in one go.

  1. Request your data

    In ChatGPT, open Settings → Data controls → Export data and confirm. ChatGPT emails you a download link.

  2. Download the .zip

    The link expires after 24 hours. The .zip holds your chats as chat.html and conversations.json; large accounts get several files, such as conversations-000.json and conversations-001.json.

  3. Drop it into the converter

    Choose Upload export and drop the .zip, or the conversations files from inside it. The file is read in your browser, not uploaded.

  4. Pick chats and download

    Search your chat titles, tick the ones you want, and download them as separate .md files in one .zip, or as one long .md file.

What the converter turns into Markdown

Everything ChatGPT shows in an answer has a Markdown equivalent. This is what you get for each part.

In ChatGPTMarkdown you getGood to know
Headings## HeadingEvery level is kept, from # to ######.
Bold, italic, strikethrough**bold**, *italic*, ~~struck~~Asterisks that are part of the text are escaped, so they don’t turn into formatting.
Bulleted and numbered lists- item, 1. itemNested lists keep their indent. Checklists become - [x] and - [ ].
Code blocksA fenced block named with its language, such as pythonThe “Copy code” button text is dropped. Blank lines in the code are kept.
Tables| Tool | Price | and a | --- | rowRight and centre alignment are kept, and a | inside a cell is escaped.
Math (formulas)$x^2$ and $$…$$, or \(x^2\) and \[…\]Your choice. The LaTeX is read from ChatGPT’s math, so nothing is retyped.
Links[text](https://…)Only web and email links are kept.
Web citations (source chips)([Site](https://…))Or removed, if you choose Remove.
Images![alt](https://…)Images in an export show as [Image], because the export keeps image files separately.
Who said what## You and ## ChatGPTAdded when you paste a whole conversation, and in every exported chat.

Fix ChatGPT math for Obsidian and GitHub

ChatGPT writes formulas in LaTeX between \( and \) inside a sentence, and between \[ and \] on their own line. Many Markdown apps don’t read those. Obsidian and GitHub use dollar signs instead: $…$ for a formula inside a sentence and $$…$$ for one on its own line.

With $ … $ · $$ … $$ selected, the converter changes the delimiters and keeps the LaTeX inside exactly as ChatGPT wrote it. Two things are handled for you:

  • Prices stay prices. A dollar sign before a number, as in $5, becomes \$5, so the text between two prices isn’t read as a formula. GitHub uses the same \$ escape.
  • Code is left alone. Nothing inside code blocks or inline code is changed.

Choose \( … \) · \[ … \] to keep ChatGPT’s delimiters, for example when the text is going into a LaTeX document.

What are :contentReference[oaicite] and citeturn0search0?

They’re ChatGPT’s internal citation marks. On screen, ChatGPT turns them into source chips, but when an answer is copied or exported some are left behind in the text. The converter finds each kind.

MarkWhere it comes fromWhat the converter does
:contentReference[oaicite:0]{index=0}Copied answers, and code ChatGPT wrote after a web searchRemoves it, with the space before it.
citeturn0search0, turn0news1Web search citations that lost their invisible marker characters on the wayRemoves it.
Invisible marker characters (U+E200 … U+E201)Web citations and inline links as ChatGPT stores themTurns them into links when the source is known, as in your export. Otherwise removes them.
【4:0†source】Answers that quote files you uploadedRemoves it, or links the source when the export has it.
Tiny site iconsSource chips pasted as favicon imagesRemoves them.

Choose Remove under Web citations to drop the source links as well and keep only the text.

What’s included when you convert a ChatGPT export

When you edit a message or regenerate an answer, ChatGPT keeps every version, and the export stores them all as branches. The converter follows the version you saw last, the same one ChatGPT shows when you open the chat.

Each chat becomes a Markdown file with its title as the heading and your messages and ChatGPT’s answers under You and ChatGPT. It leaves out what ChatGPT doesn’t show you as part of the chat: hidden system messages, tool calls, web search results and the model’s thinking. Files you uploaded and images appear as [Image], since the export keeps them as separate files.

Save ChatGPT chats in Obsidian, Notion or GitHub

Markdown opens in almost any notes app, so a converted chat stays readable long after you stop using ChatGPT.

  • Obsidian: download your chats as a .zip, unzip it into your vault and keep YAML front matter turned on. Each note then starts with its title, created and updated dates, model and conversation ID, which Obsidian shows as properties you can search.
  • Notion: go to Settings → Import, choose Text & Markdown and pick the .md files. Each file becomes a page.
  • GitHub and VS Code: the files use GitHub Flavored Markdown, with tables, task lists and fenced code, and math in $ form renders on GitHub.

Exported files are named with the chat’s date and title, such as 2026-03-12 Trip ideas.md, so they sort by date.

ChatGPT to Markdown FAQ

Can ChatGPT export a conversation as Markdown?

Not directly. The copy button under an answer copies only that answer, and Export data in Settings sends a .zip with chat.html and conversations.json files. Paste the answer here, or drop the .zip, to get Markdown.

How do I copy a ChatGPT answer as Markdown?

Click the copy button under the answer, or select the text and press Ctrl+C (⌘+C on a Mac). Paste it into the converter and click Copy Markdown. Formatting is converted and leftover citation marks are removed.

What does :contentReference[oaicite:0]{index=0} mean?

It’s one of ChatGPT’s internal citation marks. It should become a source link on screen, but it’s sometimes left in copied text or code. It isn’t part of the answer, and the converter removes it.

What is citeturn0search0 in ChatGPT text?

A web search citation that lost the invisible characters around it. ChatGPT shows it as a source chip. When your export includes the source, the converter turns it into a link; in pasted text, where the link isn’t included, it’s removed.

Why don’t ChatGPT formulas show in Obsidian?

ChatGPT writes math between \( \) and \[ \], but Obsidian reads $…$ and $$…$$. Keep the $ option selected and the converter changes the delimiters without touching the formula.

Can I convert a shared ChatGPT link to Markdown?

Yes. Open the link, select the conversation and copy it, then paste it into the converter. If the copied text shows who wrote each message, You and ChatGPT headings are added.

How long is the ChatGPT export link valid?

OpenAI says the download link in the email expires after 24 hours. If it has expired, request a new export in Settings → Data controls.

Does it work with answers from other chatbots?

Pasting works with formatted text from most sites, so headings, lists, tables, code and links from other chatbots convert too. The export upload reads ChatGPT’s export format only.

Are my chats uploaded or saved?

No. The converter runs in your browser. Pasted text and export files are read on your device and never sent to our server.

Sources and references

  1. How do I export my ChatGPT history and data?, OpenAI Help Center
  2. Writing mathematical expressions, GitHub Docs
  3. Advanced formatting syntax, Obsidian Help
  4. Import data into Notion, Notion Help Center
  5. GitHub Flavored Markdown Spec, GitHub