lou.tools
EN

Save a Claude conversation as a PDF with its code blocks intact

Paste a whole Claude conversation into chat-export and press Save as PDF: the print window saves every message, heading, table and code block as it was written, with the code language named when Claude gives one.

Updated

What you paste never leaves your browser. Only anonymous usage is counted.Privacy

Paste a conversation to see it here.

Settings
Layout

In the print window, choose Save as PDF.

Your company's Word template is in md2word

How to do it

  1. In Claude, select the whole conversation, copy it and paste it into chat-export: the messages split into yours and Claude's.
  2. Check the settings: Chat or Document, answers only, your names, the title, and Show code language for a label above each block.
  3. Press Save as PDF and choose Save as PDF in the print window: every code block prints as written, wrapped if you asked for it, and the text stays selectable.

Questions

How do I save a Claude conversation as a PDF?
Select the whole conversation in Claude, copy it, paste it into chat-export and press Save as PDF, then choose Save as PDF in the print window. chat-export builds the document in your browser from the paste.
Do the code blocks in a Claude answer stay code in the PDF?
Yes, each fenced block prints as a code block in monospace, with its language named above it when Claude gives one and Show code language is on. chat-export wraps long lines only when asked, so a command can stay on one line.
Can I save my whole Claude history instead of one chat?
Yes: in Claude, open Settings, Privacy, Export data, and drop the ZIP that Claude emails you on From your data export. chat-export reads conversations.json from that ZIP, up to 500 MB, and you choose which conversations to save.

More tools