AI answers to PDF

Copy an AI answer, paste it below, and download a clean PDF with its headings, tables, code and math formulas intact. Free, and your conversation never leaves your browser.

Markdown
Preview

How to save an AI answer as a PDF

  1. Copy the answer with its copy button. In ChatGPT, Claude and Gemini, the copy icon under an answer copies it as Markdown, with its formatting. To keep only part of a ChatGPT or Claude answer, select it and copy: md2pdf.me turns the formatted text into Markdown as you paste, with its code blocks and formulas. Copilot needs a different approach, and each assistant has its own quirks; see copying from each assistant below.
  2. Paste it into the editor above. Replace the example; the preview updates as you type. Add a # Title line at the top if you like: it becomes the heading and the file name.
  3. Click Download PDF and choose Save as PDF in the print dialog.

Copying from each assistant

We tested each assistant's copy button with the same answer: a heading, bold and italic text, a link, a table, a formula, a code block and a Mermaid diagram. Here's what comes through, and what to fix before you download.

AssistantCopy buttonWatch out for
ChatGPTUnder the answer, when you point at it The copy button drops bold and italic
ClaudeUnder the answer Equations in a Claude document copy as code; a selected diagram is left out
GeminiUnder the answer Export to Docs gives you a Google Doc, not Markdown
CopilotUnder the answer Copies plain text; ask for the Markdown instead

ChatGPT

Point at the answer and a row of buttons appears under it. The first, two overlapping squares, is Copy response. It copies the answer as Markdown: headings, lists, links and tables come through, and formulas arrive between $ signs, which md2pdf.me draws as equations. ChatGPT also copies each code block's language as a stray word above it; md2pdf.me takes it out when you paste, so the code is highlighted and a Mermaid diagram is drawn.

As of November 2026, the copy button drops bold and italic, so a phrase that was bold arrives as plain text. To keep bold, select the answer with your mouse and copy it instead: md2pdf.me turns the formatted text into Markdown as you paste, with its code blocks, formulas and diagrams.

If the answer opened in a canvas beside the chat, use the canvas's download button and choose Markdown. That saves a .md file you can open here with Open file or by dropping it on the page.

Claude

Click the copy icon in the row under Claude's answer. Claude's copy is the cleanest of the four: bold and italic, tables, formulas between $ signs, and code blocks with their language all come through as they should, so code is highlighted and Mermaid diagrams are drawn without any fixing. Selecting part of an answer and copying it works too, except for a Mermaid diagram: Claude draws it as a picture, which copies without its code and is left out. Use the copy icon for an answer with a diagram.

For longer pieces, Claude often writes a document that opens beside the chat instead. To get its Markdown, open the menu on the document's title and choose Copy as Markdown, or Export and then Markdown to save a .md file. One catch: an equation set on its own line in a document copies as a code block marked latex, so it shows as code here. Either copy the same answer from the chat instead, or replace the code block's backtick lines with $$:

```latex                         $$
x = \frac{-b \pm ...}{2a}   →    x = \frac{-b \pm ...}{2a}
```                              $$

Claude's Export menu can also make a PDF itself. Use md2pdf.me when you want a choice of document style and page size, or several answers in one file. Artifacts made before September 2026 have a copy button at the top of the panel they open in.

Gemini

Under each answer is a row of icons; Copy response is the one that looks like two overlapping squares. It copies clean Markdown, with tables, formulas between $ signs and code blocks with their language. Gemini shows a Mermaid diagram as plain code (a "Code snippet") rather than drawing it, but the code comes through intact, so md2pdf.me draws it in the preview and the PDF.

The Export to Docs option in the answer's ⋮ menu sends the answer to Google Docs rather than giving you Markdown, and a table's own Export to Sheets button does the same for Google Sheets. For a PDF from md2pdf.me, use the copy button. If the answer is already in a Doc, see Google Docs to PDF.

Copilot

Copilot is the odd one out. Its Copy response button, the first icon under the answer, copies plain text rather than Markdown. Headings and bold vanish, a table turns into a jumble of words, formulas come out garbled, and code loses the backticks that mark it as code. Pasted here, the answer comes out as one block of plain paragraphs.

The way around it is to ask Copilot for the Markdown itself:

  1. Send Give me your previous answer as raw Markdown source in a single code block.
  2. Copilot shows the answer in a box labeled Markdown, drawn as a preview. Click the box's Code button first: copying from the preview copies a picture of it, not the text.
  3. Click the box's copy button and paste here. You get clean Markdown, with formulas between \( and \), which md2pdf.me draws as equations.

Copilot's ⋯ menu under the answer also offers Export to Word, which is enough if a Word document will do.

Why not just print the chat?

Printing the chat page straight from your browser gives you the sidebar, the message box and the buttons along with the answer. Long code lines get cut off, and tables often split badly across pages. md2pdf.me gives you just the answer, typeset like a proper document: real margins, page numbers in most styles, code that wraps, and headings that never get stranded at the bottom of a page.

What carries over

Frequently asked questions

Is my conversation sent anywhere?

No. The conversion happens entirely in your browser; nothing you paste is uploaded. Your text is kept only in your browser's local storage so it survives a reload. Click Clear to remove it.

Does it work with other AI assistants?

Yes. Almost every AI assistant writes its answers in Markdown. If what you paste comes out as plain paragraphs, with no headings, bold or tables, it was copied without formatting: use the assistant's own copy button, or for Copilot, ask for the Markdown.

Can I copy just part of an answer?

In ChatGPT and Claude, yes: select the part you want and copy it. md2pdf.me turns the formatted text into Markdown as you paste, keeping code blocks, formulas and bold. In Claude, a Mermaid diagram copies as a picture and is left out, so use Claude's copy icon for an answer with a diagram.

Can I save a whole conversation?

Copy each answer you want to keep and paste them one after another. To start each answer on a new page, put <div class="page-break"></div> on its own line between them.

The math shows up as code. What happened?

Formulas need their delimiters, such as $$ or \[ and \], to be recognized. If your copy dropped them, copy the answer again with the assistant's copy button. A formula inside a code block marked latex, as Claude documents copy them, is shown as code: replace the backtick lines with $$.

Read the Markdown guide