agarwalvishal/claude-chat-exporter

One-click, privacy-first exporter for Claude.ai chats — clean Markdown with artifacts and attachments, ready for Obsidian and RAG.

What it solves

Claude Chat Exporter is a privacy-first tool designed to export Claude.ai conversations into clean, high-fidelity Markdown files. It solves the problem of manual copy-pasting or using brittle DOM-scraping tools that often miss content, fail on long conversations, or break when the website's UI changes.

How it works

Instead of scraping the visible webpage, the tool runs as a browser script (or bookmarklet) that calls Claude's internal API using the user's existing session. It fetches the entire conversation tree, reconstructs the active branch of the conversation, and extracts the original source markdown directly from the API response. This data is then transformed into a single Markdown file with YAML frontmatter and structured headers for each turn, which is then downloaded locally.

Who it’s for

This tool is for Claude.ai users who want to archive their conversations, integrate their chat history into knowledge management systems like Obsidian, or feed their conversation data into AI/RAG (Retrieval-Augmented Generation) pipelines.

Highlights

  • API-based extraction: Reads source markdown directly from the API for 100% fidelity, avoiding fragile CSS selectors.
  • Complete element support: Exports tables, math (LaTeX), code blocks, and attachments (images embedded, text files inlined).
  • Artifacts and Widgets: Captures the final version of Claude Artifacts, created files, and diagrams as fenced code blocks.
  • RAG-ready structure: Uses YAML frontmatter and one # heading per turn to ensure clean chunking for AI pipelines and Obsidian properties.
  • Privacy-first: Runs entirely in the browser with no external servers or tracking.

Related

  • Dispatch
  • Project
  • Dispatch
  • Project
  • Project