Frohsinn LLC Frohsinn

How to export a ChatGPT or Claude conversation to PDF, Markdown or HTML

Four methods compared — and how to get a clean export that keeps your code blocks, formatting and structure intact.

AI chats have quietly become working documents. A debugging session with Claude, a research thread in Perplexity, a draft you built with ChatGPT — these are things you want to keep, share with a teammate, paste into a doc, or file away for later. But none of the major AI tools give you a proper "export this conversation" button, so people resort to messy workarounds that lose formatting along the way.

Here are the four realistic ways to save a conversation, what each is good for, and where each one falls down.

1. Copy and paste into a document

The obvious move, and the lossiest. Selecting a long conversation in the browser and pasting it into Word or Google Docs tends to mangle the structure: code blocks lose their monospacing and indentation, lists flatten, and you often pull in stray UI text ("Copy", "Regenerate"). For a quick snippet it's fine. For anything with code or long structure, you'll spend more time cleaning up than you saved.

2. Browser Print → Save as PDF

Press Ctrl/Cmd + P and choose "Save as PDF." This keeps more visual fidelity than copy-paste, but it prints the page, not the conversation: sidebars, headers, input boxes and message toolbars come along for the ride, long code blocks get cut off at the page margin, and you have no control over the output format. It's serviceable for a one-off record, awkward for anything you'll share.

3. The built-in share link

ChatGPT (and some others) can generate a public share link. That's useful for showing someone a chat, but it isn't a file you can archive, it lives on the provider's servers, it's public to anyone with the URL, and it doesn't exist at all on every platform. A link is not an export.

4. A one-click export extension (the clean method)

The approach that actually preserves the conversation is a purpose-built exporter that reads the chat structure directly and writes it to a real file. That's what we built Chatport for: a lean Chrome extension that exports your ChatGPT, Claude, Gemini or Perplexity conversation to Markdown, PDF or HTML in one click — with code blocks, headings and message roles intact, and none of the surrounding page clutter.

Like its sibling SlashPrompt, Chatport runs entirely in your browser. The conversation is read and converted locally; nothing is uploaded to any server, which matters when your chats contain code, client details or anything you'd rather not send to a third party.

Chatport · free Chrome extension

Export any AI conversation to Markdown, PDF or HTML in one click. Works on ChatGPT, Claude, Gemini & Perplexity. 100% local. Free tier; Pro is a one-time $14.

Which format should you choose?

Frequently asked questions

Will my code blocks survive the export? With copy-paste, usually not. With a structure-aware exporter like Chatport, yes — Markdown and HTML preserve code blocks exactly, and the PDF renders them in monospace.

Is exporting my chats private? Only if the tool processes them locally. Chatport does the conversion in your browser and uploads nothing. Always check that an exporter isn't routing your conversations through its own servers.

Can I export from Claude and Gemini too, not just ChatGPT? Yes — a good exporter is cross-platform. Chatport supports ChatGPT, Claude, Gemini and Perplexity from the same extension.

Can I export a whole long conversation? Yes. Unlike a screenshot or a single-screen print, a proper exporter captures the entire thread, not just what's visible.

Bottom line: copy-paste and print-to-PDF will do in a pinch, but if you save conversations regularly — especially ones with code — a one-click, local exporter gets you a clean Markdown, PDF or HTML file without the cleanup.

Related guide: How to save and reuse your best ChatGPT prompts

All guides