Markdown to PDF Converter

Convert Markdown to PDF: paste an answer from ChatGPT or Claude, or open a .md file. Headings, tables, lists and code keep their shape in the PDF.

Preview

The PDF will look like this. Paste some Markdown to see it.

Frequently asked questions

How do I convert Markdown to PDF?

Paste the Markdown in the field or open the .md file, check the preview, and click Save as PDF. Your browser's print dialog opens with the document on its own; choose Save as PDF (on Windows it may be called Microsoft Print to PDF) and save. Paper size is set in the same dialog; in Chrome and Edge it is under More settings.

How do I save a ChatGPT, Claude or Gemini answer as a PDF?

Use the copy button under the answer rather than selecting the text with the mouse. The button copies the answer as Markdown, with the headings, bold text and tables written out, and that is what this page reads. Paste it here and save. Selecting and copying by hand gives you the text without most of the formatting.

What is a .md file, and how do I open one?

A .md file is a plain text file written in Markdown, a simple way to mark headings, bold text, lists and links with symbols such as # and **. READMEs on GitHub, notes in Obsidian and answers from ChatGPT all use it. Any text editor can open one, but you will see the symbols rather than the formatting. To read it formatted, or to share it with someone who has no Markdown app, open it here and save it as a PDF.

How does this website handle my text or .md file?

It never leaves your device. The page turns the Markdown into the preview in your own browser, and the PDF is made by your browser's print function. Nothing is sent to our server or anyone else's, so confidential notes and documents can go through it safely. The only thing that is fetched is an image your Markdown links to, and only from the address you gave it.

Why are there a date and a web address at the top and bottom of my PDF?

Your browser adds them when it prints. In Chrome and Edge, open More settings in the print dialog and untick Headers and footers; Safari and Firefox have the same option in their print dialogs. The browser remembers the choice next time.

Does it handle tables, code blocks and checklists?

Yes. Tables keep their columns and the alignment set in the Markdown, code blocks keep their spacing and wrap instead of running off the page, and checklists print with ticked and empty boxes. Lists inside lists, quotes, footnotes, strikethrough and links work too, and the links can still be clicked in the PDF.

What happens to math formulas?

They are kept exactly as written, in LaTeX, with a formula block on its own line and inline formulas in the text. They are not typeset, because drawing them properly needs a large extra library that would slow the page down for everybody else.

Can I make a PDF on my phone?

Yes. On an iPhone the button opens the print screen, where the share button saves the document as a PDF to Files or sends it on. On Android, choose Save as PDF as the printer. The preview above shows what you will get.

Are my line breaks kept?

Yes, the way the chat showed them. A line break inside a paragraph stays a line break, so an address, a list of fields or a poem keeps its lines. The exception is a file wrapped at a fixed width, where long lines carry on mid-sentence on the next line: those are joined into running text, so the PDF does not break in the middle of your sentences. A blank line always starts a new paragraph.