file2markdown
claudemarkdownexportaianthropic

Export Claude Chat to Markdown: The Official Export vs. a Quick Save

September 30, 2026

Updated: October 7, 2026

Claude doesn't have a one-click "export to Markdown" button. Anthropic's built-in export lives under account settings, downloads your entire conversation history at once, and hands it back to you as structured data rather than a readable file. If you just want one useful conversation saved as clean, portable Markdown — for your notes, your documentation, or a RAG pipeline — you need one extra step. For a single chat, file2markdown handles that step for free.

This guide covers both real options: the official account-wide export (best for a full backup) and a faster save-as-HTML method for a single chat.

Why Bother Converting a Claude Chat to Markdown

A raw data export or a copy-pasted wall of text is hard to reuse. Markdown fixes that:

  • Notes and knowledge bases. A .md file with real headings and code blocks drops straight into an Obsidian vault or a docs-as-code wiki.
  • Version control. Markdown diffs cleanly in git, so you can track how a spec or a decision evolved across a long conversation.
  • RAG and agent pipelines. If you're building a knowledge base from your own research conversations, you'll eventually need to chunk that Markdown for a vector database — and that starts with clean structure, not raw JSON or an HTML dump.
  • Sharing. A Markdown file renders correctly on GitHub, in a wiki, or in another LLM's context window, which is part of why Markdown is the format LLMs work best with in the first place.

Method 1: Anthropic's Official Export, Then Convert

Anthropic's own account export is the only way to get your entire conversation history at once, and it's the right choice for a full backup or an archive of everything you've ever discussed with Claude.

  1. In Claude (web or desktop), click your name in the lower-left corner and go to Settings > Privacy.
  2. Click Export Data and confirm the request. This is available directly to individual users on the Free, Pro, and Max plans; on Team or Enterprise workspaces, the Primary Owner has to run the export.
  3. Wait for an email from Anthropic — there can be a short delay while the export is generated — then download the ZIP file from the link inside it. That link expires 24 hours after delivery, so don't let it sit in your inbox.
  4. Unzip the archive. Anthropic's support docs describe the contents as "conversation data and the user data for your account" without naming a file format, but in practice you'll find your conversations inside as JSON.
  5. Turn the JSON into Markdown with a short script. file2markdown's JSON converter turns a list of conversations into a table, but each conversation's messages are nested inside it and show up as shortened inline JSON, so a script gives you a more readable transcript:
import json

with open("conversations.json", encoding="utf-8") as f:
    conversations = json.load(f)

with open("claude-chats.md", "w", encoding="utf-8") as out:
    for convo in conversations:
        out.write("# " + (convo.get("name") or "Untitled") + "\n\n")
        for msg in convo.get("chat_messages", []):
            out.write("## " + msg.get("sender", "") + "\n\n")
            out.write(msg.get("text", "") + "\n\n")

Field names can change between export versions, so open the file and check them before running the script.

Two things worth knowing before you start: this export is account-wide, not per-conversation, so you'll be searching inside one large file for the specific chat you want. And because the export is structured JSON, this is also the one method you can fully script, as shown above, if you want to repeat it regularly instead of doing it by hand each time.

Method 2: Save a Single Conversation, No Waiting

If you only want one conversation and don't want to wait on an email, skip the account export entirely:

  1. Open the conversation in Claude and scroll through it so the whole chat is loaded.
  2. Save the page as an .html file (Ctrl+S / Cmd+S). The saved page keeps the HTML structure, including headings, lists, and code formatting.
  3. Upload the .html file to the free HTML to Markdown converter. Because the file still has structure, the converter can rebuild real Markdown headings and code blocks instead of collapsing everything into one paragraph.
  4. Download the .md file or copy the output.

This is faster than the official export for a single chat, but it has real limits: it won't capture attached files or images, the output can include some interface text you'll want to trim, and fidelity depends on how your browser saves the page. For anything you need as a durable record — not just a quick save — the official export in Method 1 is the more complete source.

Which Method Should You Use?

  • Backing up everything, or need this to happen regularly? Use the official export and convert the JSON. It's the only complete, repeatable source, and the one you can automate.
  • Just want to save one good conversation right now? Save the page as HTML and upload it to the HTML to Markdown converter. It takes seconds and needs no waiting on email.

Either way, you end up with a real .md file instead of a JSON blob or an unstructured paste — one that's ready for Claude itself to read back in a future session, for an Obsidian vault, or for a pipeline that expects clean, structured text.

Frequently Asked Questions

Does Claude have a native "export to Markdown" button?

No. Claude's only built-in export is the account-wide data export under Settings > Privacy > Export Data, and it isn't scoped to a single conversation or delivered as Markdown. Getting a .md file requires one extra conversion step, covered above.

What file format is Claude's official data export in?

Anthropic's support documentation describes the export's contents as "conversation data and the user data for your account" without specifying a format. In practice, the archive you download contains your conversations as JSON, which you can turn into readable Markdown with a short script like the one in Method 1.

Can I export just one conversation instead of my whole account?

Not through Anthropic's official export — that always downloads your full account history in one file. If you want a single conversation, the fastest route is saving the conversation page as .html and uploading it to the HTML to Markdown converter.

How long do I have to download the export before the link expires?

24 hours from when Anthropic emails it to you, per their support documentation. If it expires, you'll need to request a new export from Settings > Privacy.

Is this different from "Markdown for Claude"?

Yes — this guide is about getting content out of Claude as Markdown. If you're instead trying to feed documents into Claude in a format it parses well, see Markdown for Claude.

The Markdown Memo

A fortnightly note for lawyers, researchers, accountants, and anyone else drowning in PDFs, scans, and decks. No spam.