Claude to Markdown Converter

This Claude to Markdown converter turns Claude answers and whole conversations into clean Markdown. Paste a reply, or upload your Claude data export to save every chat as a .md file, with artifacts as code blocks. Tables, code and math are kept, and formulas are fixed for Obsidian and GitHub.

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

Markdown options
Math formulas
Web citations

How to convert Claude to Markdown

Saving a Claude answer as Markdown takes three steps, on a computer or a phone.

  1. Copy from Claude

    Click the copy button under an answer, or select part of the 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. If you select a whole chat, each message gets a You or Claude heading.

  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 writes 2 formulas inside sentences with double dollar signs, which Obsidian would push onto lines of their own. The converter turns them into $…$, keeps the third formula as a $$…$$ block, and leaves the table and the Python code as they are.

Convert a Claude answer with math

Claude to Markdown converter features

One tool for a single answer or your whole Claude history, with the fixes copy and paste don’t make.

  • 2

    Paste or upload

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

  • { }

    Artifacts included

    Code, documents, diagrams and pages Claude made as artifacts are saved with the chat, as code blocks.

  • $

    Math that renders

    Formulas become $…$ and $$…$$ for Obsidian and GitHub, or keep their delimiters.

  • .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 Claude chats to Markdown

Claude can’t export a single chat, but its data export converts here in one go.

  1. Request your data

    In Claude on the web or in Claude Desktop, click your initials in the lower-left corner, open Settings → Privacy and click Export data. The mobile apps can’t start an export.

  2. Download the .zip

    Claude emails you a link, which expires 24 hours after it arrives, and you must be signed in to use it. The .zip holds conversations.json, with every chat, plus files about your account and projects.

  3. Drop it into the converter

    Choose Upload export and drop the .zip, or the conversations.json 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 Claude shows in a chat has a Markdown equivalent. This is what you get for each part.

In ClaudeMarkdown 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 pythonBlank lines in the code are kept.
ArtifactsThe artifact’s title in bold, then its content as a code blockMarkdown documents stay Markdown. HTML, SVG, Mermaid and React artifacts get a matching language name.
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. Inline $$x$$ becomes $x$.
Links[text](https://…)Only web and email links are kept.
Web search sources([Site](https://…)) after the cited textIn an export, when Claude stored the source with the answer. Or removed, if you choose Remove.
Files you attached*[File: notes.pdf]*The export lists the file name but not its contents.
Who said what## You and ## ClaudeAdded when you paste a whole conversation, and in every exported chat.

Export Claude artifacts as Markdown

Artifacts are the code, documents, diagrams and small apps Claude builds in a panel next to the chat. Copying the chat doesn’t bring them along, but your data export does: each artifact is stored with the answer that made it.

When you convert an export, every artifact appears in the answer where Claude made it, under its title:

  • Code becomes a fenced block with its language, ready to copy.
  • Markdown documents stay Markdown, so their headings and lists keep working.
  • HTML pages, SVG images, Mermaid diagrams and React components become code blocks marked html, svg, mermaid and jsx. GitHub and Obsidian both draw Mermaid diagrams from a mermaid block.

When Claude changed an artifact by rewriting it, the new version is included. Small edits that only list the changed lines are left out, since they don’t make sense on their own.

Fix Claude math for Obsidian and GitHub

Claude writes formulas in LaTeX, usually between double dollar signs, and sometimes as \( … \) or \[ … \]. Many Markdown apps don’t read every way of writing math. Obsidian and GitHub use dollar signs: $…$ for a formula inside a sentence and $$…$$ for one on its own line.

With $ … $ · $$ … $$ selected, the converter writes all Claude math that way and keeps the LaTeX inside exactly as it was:

  • \( … \) becomes $…$ and \[ … \] becomes $$…$$.
  • Double dollar signs in the middle of a sentence become single ones, $$x$$ → $x$, because Obsidian puts $$…$$ on a line of its own.
  • 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. A formula that starts with a digit, such as $2^{10}$, is kept.
  • Code is left alone. Nothing inside code blocks or inline code is changed.

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

What’s included when you convert a Claude export

When you edit a message or retry an answer, Claude keeps every version, and the export stores them all. The converter follows the branch that ends with your newest message, which is the version you saw last.

Each chat becomes a Markdown file with its title as the heading and your messages and Claude’s answers under You and Claude. It leaves out what isn’t part of the chat as you read it: Claude’s thinking, tool calls and their results, such as web searches. Files you attached appear as [File: name], because the export lists them by name only.

Save Claude chats in Obsidian, Notion or GitHub

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

  • 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, dates, model and conversation ID, which Obsidian shows as properties you can search.
  • Notion: use Notion’s import, choose 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.

Claude to Markdown FAQ

Can Claude export a conversation as Markdown?

Not directly. The copy button copies one answer, and Settings → Privacy → Export data sends a .zip of your whole account as JSON. Paste the answer here, or drop the .zip, to get Markdown for one chat or all of them.

Can I export a single Claude conversation?

Claude’s own export always covers every chat. To save one, copy it and paste it here, or upload the full export and tick only the chat you want before you download.

Where is the export button in Claude?

On the web or in Claude Desktop, click your initials in the lower-left corner, then Settings → Privacy → Export data. On a Team or Enterprise plan, an owner has to allow members to export their own data first.

Can I export my Claude data on iPhone or Android?

No. Anthropic says exports can’t be started from the iOS or Android apps. Use claude.ai in a browser or Claude Desktop instead.

How long does the Claude export link last?

Anthropic says the link expires 24 hours after it’s delivered, and you must be signed in to download. If it has expired, start a new export the same way.

Are artifacts included in the Markdown?

Yes, when you upload the export. Each artifact is placed in the answer that made it, as a code block with its title. Copied text doesn’t include artifacts, since Claude shows them in a separate panel.

Why don’t Claude formulas show in Obsidian?

Obsidian reads $…$ inside a sentence and $$…$$ on its own line. Formulas written another way, or with double dollar signs mid-sentence, don’t look right. Keep the $ option selected and the converter fixes the delimiters without touching the formula.

Does it work with ChatGPT or other chatbots?

Yes. Pasting works with formatted text from most sites, and the upload reads several apps’ exports. For ChatGPT, the [ChatGPT to Markdown converter](tool:chatgpt-to-markdown-converter) explains its export step by step.

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. Export your Claude data, Claude Help Center
  2. Writing mathematical expressions, GitHub Docs
  3. Advanced formatting syntax, Obsidian Help
  4. GitHub Flavored Markdown Spec, GitHub