Markdown to PDF converter
Type or paste Markdown and save it as a PDF with selectable text and clean page breaks. A live preview shows it at the width of the printed page.
Converter
The page preview appears here as you type.
Jotura, a free notes app, keeps every note as a Markdown file and saves any note as a PDF from the desktop editor. Download Jotura
How to convert Markdown to PDF
- Add your Markdown. Paste it into the box or open a
.mdfile. The example in the box shows a table, a checklist, a code block and a footnote. - Set up the page. Choose A4 or Letter, the margins and the text size. The preview beside the text redraws at the width of the real page.
- Save the PDF. Press Save as PDF and pick Save as PDF as the printer in the dialog. The file takes its name from the
.mdfile you opened, or from the first heading.
The page options
| Option | Choices |
|---|---|
| Page | A4 (210 x 297 mm) or Letter (8.5 x 11 in). It starts on Letter in the United States, Canada and the other countries that use it, and A4 everywhere else. |
| Margins | Narrow (12.7 mm, half an inch), Normal (20 mm) or Wide (30 mm) on every side |
| Text | 10 to 14 point body text. Headings, code and tables scale with it. |
| Print link addresses | Writes each web link's address in brackets after the link text |
What it does not do
- Mermaid diagrams print as their code. The Mermaid to PNG and SVG converter turns a diagram into an image.
- Images print as their alt text. The page cannot read pictures from your disk by their path, and it does not load images from other websites.
- Code blocks print in a monospace font on a grey background, with no syntax colours.
- Obsidian syntax such as
[[wikilinks]],==highlights==and callouts prints as the text you typed. - The preview shows the page width, margins and text size on one long sheet. Page breaks appear in the print dialog.
- There is no cover page or table of contents. Page numbers come from the browser's own headers and footers.
- A browser that does not read the page option prints on the paper size chosen in its print dialog.
Frequently asked questions
How do I convert Markdown to PDF?
Paste or type Markdown in the box at the top of this page, or open a .md file. Pick the page size, margins and text size, then press Save as PDF. Your browser's print dialog opens. Choose Save as PDF as the printer, or PDF at the bottom of the dialog on a Mac, and save the file.
Why does it open the print dialog?
The browser's own print engine lays out the pages, so the text in the PDF stays selectable and searchable and the links stay clickable. Pages break between table rows. Nothing extra downloads for it, and the PDF uses the fonts you see in the preview.
Which Markdown does it support?
GitHub Flavored Markdown: headings, emphasis, links, lists, block quotes, fenced code blocks, tables with column alignment, task lists, strikethrough, footnotes and GitHub's > [!NOTE] alerts. YAML front matter at the top of the file is left out of the PDF.
How do I remove the date and web address from the top of each page?
Untick Headers and footers in the print dialog. In Chrome and Edge it sits under More settings. The browser adds those lines on its own, together with page numbers, and the setting stays as you leave it for the next print.
What does Print link addresses do?
Each web link is followed by its address in brackets, so a reader of the printed copy can still find the page. Footnote references and links to headings in the same document stay as they are. The preview shows the addresses too.
How do page breaks work?
A heading stays on the same page as the text that follows it. Table rows and GitHub alerts stay whole, and a long table repeats its header row at the top of each new page. A long code line wraps onto the next line so nothing is cut off at the edge. The print dialog shows the final pages before you save.
Does it work on a phone?
Yes. On Android, choose Save as PDF as the printer on Chrome's print screen. On an iPhone or iPad the print options open: spread two fingers on the page preview to open it as a PDF, then share it or save it to Files.
How do I convert Markdown to PDF on the command line?
Pandoc converts a file in one line. It needs a PDF engine installed beside it: a LaTeX distribution such as TeX Live by default, or WeasyPrint with --pdf-engine=weasyprint.
pandoc notes.md -f gfm -o notes.pdfIs my Markdown uploaded?
No. The Markdown is rendered by a WebAssembly program in a background thread of your browser, and the PDF is written by your browser's print dialog on your device. Nothing you type, paste or open is sent to a server or saved.
The same Markdown engine runs the Markdown to HTML converter and the Markdown to Word converter, which makes an editable .docx. To read a note with Obsidian callouts and diagrams drawn in, open it in the Markdown viewer. The guide to Markdown table syntax covers the tables that print here, and the best Markdown note apps compares apps that keep notes as files.