Paste Markdown, drop a .md file, or open one
Paste or drop a Markdown file and press Print: the printer gets a typeset PDF with page numbers and page breaks where you want them, not a web page.
Paste Markdown, drop a .md file, or open one
Printing Markdown usually means printing something else: the raw text with its asterisks and hash marks, or a web page rendered from it, with the browser’s headers, cut-off code blocks and page breaks through the middle of a table. The result also changes from one computer to the next, because it depends on the fonts installed there.
The Print button on this page prints the PDF that the typesetting engine makes from your Markdown, the same file Download PDF saves. Its fonts travel with it, so the pages come out the same on any computer and any printer: headings, tables, highlighted code, Mermaid diagrams, formulas, and Chinese, Japanese or Korean text included.
The engine breaks lines and pages the way a book is set, and you can add your own breaks: a line with \pagebreak, \newpage or <!-- pagebreak --> starts a new page, and New page per H1 under Layout gives every chapter its own. The preview marks each break with a dashed line. Headers and footers, a cover page and templates for reports, papers, letters and résumés are there when a printout needs to look official.
Mermaid diagrams are printed as sharp vector graphics, scaled to fit the page rather than cut off at its edge. Chinese, Japanese, Korean, Cyrillic, Greek, Arabic and other scripts are set in matching Noto fonts that come with the page, so nothing turns into empty boxes because a font is missing on the computer you print from.
VS Code has no print command for Markdown. Its preview cannot be printed directly; the usual workaround is an extension such as Markdown PDF, which exports a PDF for you to print. On a Mac, TextEdit opens a .md file as plain text and prints it with the Markdown symbols showing. Either way, dropping the file onto this page and pressing Print is quicker: nothing to install, and the page breaks are set properly.
Drop the file onto this page (or paste its text), check the preview and press Print. The print dialog shows the typeset pages, and you print as you would any document.
VS Code cannot print its Markdown preview itself. Install an export extension such as Markdown PDF and print the PDF it writes, or drag the file from VS Code’s explorer onto this page and press Print.
macOS has no built-in app that formats Markdown for printing: TextEdit prints the raw text. Drop the file onto this page in Safari, Chrome or Firefox and press Print. In Safari and Firefox the PDF opens in a new tab; print it from there with ⌘P.
Safari, Firefox and phone browsers do not reliably print a PDF from inside another page, so the PDF opens in a tab of its own and you print it from there. It is the same file, so the printout is identical. Chrome and Edge on a computer open the print dialog directly.
Put \pagebreak (or \newpage, or <!-- pagebreak -->) on a line of its own. Two breaks in a row, or a break right before a heading that already starts a page, never leave a blank page.
Yes. The page prints a PDF with its fonts embedded, not a web page laid out by your browser, so the line and page breaks do not change with the computer, the browser or the printer.
save a ChatGPT answer as a clean PDF with its tables, code and formulas
export DeepSeek answers, formulas included, as a PDF
turn Claude answers and Markdown artifacts, Mermaid diagrams included, into a PDF
save Google Gemini responses as a typeset PDF
diagrams that render as vectors, with selectable text, in the PDF
a GitHub README.md as a PDF, with tables, code and diagrams
agent instruction files and Claude Code plans as a readable PDF