About this tool
Markdown is the fastest way to write, but clients, managers and teachers want a PDF. This Markdown to PDF converter turns your .md file into a well-typeset document with real fonts, tables, code blocks and page numbers, and shows a live preview as you type. You can also download the same document as a Word file. Everything runs in your browser; your text is never uploaded.
How to convert Markdown to PDF
- Paste Markdown into the editor, drop a
.mdfile onto it, or click Open file. - Pick a style and adjust fonts, sizes and colours until the preview looks right.
- Click Download PDF. In the print window, choose Save as PDF as the destination and click Save.
For the cleanest result in Chrome and Edge, open More settings in the print window and turn off Headers and footers, so the browser doesn’t add the date and page address. The page numbers from this tool are added separately.
Why a print-quality PDF
The PDF is produced by your browser’s own print engine, the same one that renders web pages. That gives you selectable and searchable text, embedded fonts that look identical on every device, sharp vector output at any zoom, clickable links, and page breaks that avoid splitting headings from their paragraphs or table rows across pages. Libraries that draw PDFs in JavaScript can’t match that typography.
Fonts and styles
Start from one of five styles, then change anything: body, heading and code fonts, text size, line spacing, accent colour, heading and table styles, page size, margins and page numbers. Your style choices are remembered for next time; your document is not.
- Clean: Inter throughout, blue accents. A safe default for docs and notes.
- Classic: Source Serif with justified text and ruled headings, like a printed report.
- Modern: Lora body with Inter headings, teal side bars and striped tables.
- Office: Calibri and Cambria, the fonts most Word users already have.
- Technical: compact Inter with Bricolage headings, for specs and READMEs.
Supported Markdown
The converter understands GitHub Flavored Markdown (GFM):
| Markdown | Result in PDF and Word |
|---|---|
# Title … ###### Small | Headings 1 to 6, in the heading font |
**bold**, *italic*, ~~struck~~ | bold, italic, |
[text](https://…) | A clickable link in the accent colour |
- item, 1. item, - [x] done | Bullet, numbered and checkbox lists, nested by indenting |
> quote | An indented quote with an accent bar |
| a | b | tables | Tables in the style you choose; :--: centres a column |
| Fenced code blocks | Monospace blocks; json, sql and css blocks are syntax-highlighted in the PDF |
 | Images, scaled to fit the page width |
--- | A horizontal rule |
\pagebreak on its own line | Starts a new page |
Images must be online (an https:// address) or embedded as data URIs; files on your computer referenced by a relative path, like ./diagram.png, can’t be read by a web page. For safety, raw HTML is limited to simple formatting tags; scripts, styles and embeds are removed.
Tips for good-looking PDFs
- Start with a single
# Title. It becomes the document title and the PDF file name. - Use
\pagebreakbefore major sections, such as appendices, to start them on a new page. - Keep tables to five or six columns on A4; wider tables get cramped. Switch to Narrow margins if you need more room.
- Serif fonts such as Source Serif and Lora are easier to read in long printed documents; sans-serif fonts like Inter suit short, scannable documents.
FAQ
How do I convert Markdown to PDF?
Paste your Markdown above, choose a style, then click Download PDF and pick “Save as PDF” in the print window. The PDF has real, selectable text and embedded fonts.
Can I change the font?
Yes. Choose separate fonts for body text, headings and code, plus text size, line spacing, accent colour, heading and table styles, page size and margins.
Why does a print window open?
The PDF is made by your browser’s print engine, which produces the best typography and sharp, searchable text. Choose “Save as PDF” as the destination to save the file.
Does it support tables, code blocks and task lists?
Yes. It supports GitHub Flavored Markdown, including tables with column alignment, fenced code blocks, task lists, strikethrough, images and links.
How do I add a page break?
Put \pagebreak (or <!-- pagebreak -->) on its own line where you want the next page to start.
Is my document uploaded?
No. Conversion happens entirely in your browser. Your text is not uploaded or stored; only your style settings are remembered.