How to Export ChatGPT Conversations to Markdown Locally

Use the free MarkItDown Companion extension for Chrome, Firefox, and Edge to export ChatGPT conversations locally to clean Markdown or offscreen PDF—with live o200k_base token alerts and zero server uploads.

TL;DR

OpenAI's Settings export dumps a hard-to-read conversations.json archive, Ctrl+A breaks Markdown tables and code fences, Ctrl+P slices code blocks with sidebar chrome, and F12 console snippets break whenever the DOM updates. Install MarkItDown Companion (Chrome, Firefox, Edge) to export ChatGPT threads locally to clean Markdown or Manifest V3 offscreen PDF while tracking live o200k_base tokens before hitting length caps.

  • Ctrl+A and manual copy-paste routinely flatten Markdown tables, lose fenced code language tags, or inject literal escaped newlines.
  • OpenAI's Settings > Data Controls export emails a monolithic conversations.json archive instead of a single readable .md file.
  • Install MarkItDown Companion on Chrome, Firefox, or Edge to export ChatGPT, Claude, Gemini, DeepSeek, and Grok chats locally to Markdown or Manifest V3 offscreen PDF in one click.
  • Real-time o200k_base token counting triggers 70% yellow warnings and 90% red alerts so you can generate an Automated Context Handoff Snapshot before hitting ChatGPT's conversation length lockout.

Why ChatGPT Copy-Paste, Ctrl+P, JSON Exports, and F12 Snippets Fail

Anyone who relies on ChatGPT for coding, research, or exam prep eventually hits the same export wall. Highlighting an entire thread with Ctrl+A and pasting it into Obsidian or Notion looks quick until you inspect the output: Markdown tables collapse into plain text lines, fenced code blocks lose their syntax language headers or pick up stray UI copy buttons, and multi-paragraph replies inject awkward literal \n breaks. Browser Print to PDF (Ctrl+P) is even worse, slicing long code blocks across page breaks and wasting half the page on ChatGPT's left sidebar chrome. Meanwhile, pasting random DevTools F12 console snippets from old blog posts breaks every time OpenAI ships a DOM class change, and OpenAI's official Settings > Data Controls > Export Data button packages every historical chat into a massive conversations.json file that is painful to read without custom scripts.

3 Methods to Export a ChatGPT Conversation (Compared)

Method 1 — OpenAI Bulk conversations.json Export: Best reserved for full-account compliance backups. You request an archive under Settings > Data Controls, wait for an email link, unzip a multi-megabyte bundle, and parse nested JSON mapping trees just to read one thread. Method 2 — Manual Copy, Ctrl+P, or DevTools F12 Snippets: Zero-install in theory, but brittle in practice. Manual selections miss collapsed sections or mangle Markdown tables, and console scripts stop working whenever chatgpt.com updates its DOM structure. Method 3 — MarkItDown Companion Extension (/ai-chat-export): Built for Chrome, Firefox, and Microsoft Edge across ChatGPT (chatgpt.com), Claude, Gemini, DeepSeek, and Grok. With one click inside the active tab, it extracts clean user and assistant turns, headings, lists, tables, and fenced code blocks into GitHub Flavored Markdown (.md) or compiles printable PDFs locally via Manifest V3 offscreen documents—with zero external server uploads.

Avoid Conversation Length Lockouts with o200k_base Alerts & Fresh Slate Handoffs

The worst moment to discover an export problem is when ChatGPT flashes 'You've reached the maximum length for this conversation' right in the middle of a refactor or study session. MarkItDown Companion prevents surprise lockouts with a real-time o200k_base token counter that measures conversation tokens locally as responses stream—showing a 70% yellow warning when it is time to wrap up a milestone and a 90% red alert before hard limits block new prompts. When a thread approaches capacity, you can trigger an Automated Context Handoff Snapshot tailored for dev projects, study sessions, or exam prep, then paste that concise Markdown brief into a fresh ChatGPT tab to keep full momentum without dragging stale turns along. Here is the clean Markdown structure produced for a Fresh Slate handoff:

# Context Handoff Snapshot — API Rate Limiter Refactor

## Current Objective
Migrate sliding-window rate limits from in-memory Maps to Cloudflare Workers KV.

## Decisions Locked In
- Window size: 60s rolling bucket keyed by `ip:route`
- Response header: `Retry-After` in whole seconds

## Verified Snippet
```js
export async function checkLimit(kv, key, limit = 60) {
  const count = Number((await kv.get(key)) || 0) + 1
  await kv.put(key, String(count), { expirationTtl: 60 })
  return count <= limit
}
```

## Next Step in Fresh Chat
Add unit tests for burst edge cases and verify HTTP 429 JSON payload.

Queue Up to 50 Exports Locally & Sync with Your MarkItDown Workspace

Exporting a single ChatGPT thread is only the start if you work across multiple AI models every day. MarkItDown Companion queues up to 50 local exports inside chrome.storage.local and connects seamlessly to your MarkItDown Web Workspace via a scoped postMessage bridge, keeping your archived ChatGPT, Claude, Gemini, DeepSeek, and Grok sessions organized alongside your converted reference documents. Ready to install? Grab MarkItDown Companion for Chrome, Firefox, or Edge on /ai-chat-export—and when you need to feed PDFs, Word specs, PPTX decks, or Excel sheets back into a fresh ChatGPT session without binary bloat, sign in to your free MarkItDown account (7-day conversion history sync) to convert digital documents to clean Markdown locally in your browser.

Try MarkItDown Tools

Convert files 100% locally in your browser via PDF to Markdown, capture AI threads with MarkItDown Companion, or run offline OCR with MarkItDown for Windows.

Frequently Asked Questions

Does MarkItDown Companion upload my ChatGPT conversations to external servers?

No. Markdown extraction, real-time o200k_base token counting, and Manifest V3 offscreen PDF compilation all execute locally inside your browser tab and chrome.storage.local queue.

Why does Ctrl+A copy-paste break ChatGPT tables and code blocks?

Copying rendered HTML directly from chatgpt.com often strips Markdown pipe table syntax, loses fenced code block language identifiers, or captures UI buttons and extra line breaks alongside your text.

How does the o200k_base token tracker prevent ChatGPT maximum-length lockouts?

MarkItDown Companion counts tokens locally as replies stream and updates a floating badge with yellow warnings at 70% capacity and red alerts at 90%, giving you time to export or generate a Fresh Slate Context Handoff Snapshot.

Which browsers and AI chat platforms work with MarkItDown Companion?

The extension runs on Chrome, Firefox, and Microsoft Edge, supporting ChatGPT (chatgpt.com), Claude (claude.ai), Gemini (gemini.google.com), DeepSeek (chat.deepseek.com), and Grok (grok.com).

How many exports can MarkItDown Companion store locally before syncing?

MarkItDown Companion queues up to 50 local exports in chrome.storage.local and hands them off cleanly into your MarkItDown Web Workspace through a scoped postMessage bridge.

Related Converters & Guides