What Markdown to PDF Converter does
Use this page to convert Markdown to PDF without installing Pandoc or a LaTeX toolchain. The text is parsed in your browser and drawn straight onto PDF pages: headings in bold Helvetica, body text at the size you choose, bullet and numbered lists, fenced code in Courier on a grey panel, blockquotes in grey italics and horizontal rules as a thin line. Pages break automatically and the text stays selectable and searchable. It is deliberately a text-first converter. Tables, images, clickable links and inline bold or italic styling are not rendered, and only Western European characters are supported; the reference table below shows what each piece of syntax turns into.
What each Markdown element becomes in the PDF
Every row was checked by converting it with this tool and reading the text back out of the PDF.
| Markdown | Result in the PDF |
|---|---|
| # Title to ###### Title | Bold Helvetica heading with extra space above and below; size depends on level (see the next table) |
| Plain paragraph | Helvetica at the body size, wrapped to the page width, dark grey-black |
| **bold**, *italic*, ~~struck~~, `code` in a paragraph | The words only, in regular type: bold, italic, struck, code |
| Two lines without a blank line between | Joined into one paragraph with a space. Two trailing spaces do not force a break either |
| - One | A bullet line: • One |
| 3. Third then 4. Fourth | 3. Third and 4. Fourth; the starting number is kept |
| - [x] Done | • Done. The checkbox is dropped |
| An indented sub-list under an item | Not printed. Only top-level items appear |
| - item with **bold** and [link](https://x.y) | Printed literally, markers included: • item with **bold** and [link](https://x.y) |
| Fenced or indented code block | Courier, one point smaller than body text, on a light grey panel. Leading indentation is collapsed and the language name is ignored |
| > Quoted line | Grey italic text. Inline markers such as ** stay visible |
| --- | A thin grey line across the text width |
| [Guide](https://example.com) | The word Guide. The address is dropped and nothing is clickable |
| A bare address such as https://example.com | Printed as plain text |
|  | The alt text only: Alt logo |
| | Name | Qty | table rows | One paragraph containing the raw pipes and dashes |
| <div>Hi <b>there</b></div> | The tags printed exactly as typed |
Heading sizes at each body font size
Heading size in points is the larger of body size + 2 and 24 minus 2.5 per heading level.
| Body font size | H1 | H2 | H3 | H4 | H5 | H6 |
|---|---|---|---|---|---|---|
| 8 pt | 21.5 | 19 | 16.5 | 14 | 11.5 | 10 |
| 11 pt (default) | 21.5 | 19 | 16.5 | 14 | 13 | 13 |
| 14 pt | 21.5 | 19 | 16.5 | 16 | 16 | 16 |
| 16 pt | 21.5 | 19 | 18 | 18 | 18 | 18 |
H1 and H2 never change. At larger body sizes the lower levels flatten out, so H3 to H6 look identical at 16 points.
Lines of body text per page, A4 and US Letter
Measured on the first page of a single long paragraph. Line spacing is the font size plus 5 points.
| Body font size | A4 | US Letter |
|---|---|---|
| 8 pt | 56 lines | 52 lines |
| 9 pt | 52 lines | 48 lines |
| 10 pt | 48 lines | 45 lines |
| 11 pt | 45 lines | 42 lines |
| 12 pt | 42 lines | 40 lines |
| 14 pt | 38 lines | 35 lines |
| 16 pt | 34 lines | 32 lines |
The text column is 483.28 points wide on A4 and 500 points wide on US Letter.
Worked conversions
The sample report
The default text: an H1, a paragraph, an H2, three bullets and a blockquote. A4, 11 pt
1 page, 1.3 KB
Files are this small because the standard fonts are referenced, not embedded.
200 one-line paragraphs
Line 1 to Line 200, each separated by a blank line. A4, 11 pt
7 pages, 32 paragraphs on the first page
The same text takes 5 pages at 8 pt and 9 pages at 16 pt. US Letter at 11 pt also gives 7 pages, with 30 on the first.
Soft line breaks
Line one (Enter) Line two
Line one Line two
Leave a blank line wherever you want a new line to start.
A 120-line code block as the whole document
One fenced block of 120 short lines. A4, 11 pt
4 pages, the first one blank
A code block is moved to a fresh page when it does not fit in the space left. One taller than a full page still moves first, then runs on, and its grey panel does not continue onto later pages.
Prepare your Markdown so it converts cleanly
- Remove ** and * emphasis from list items and blockquotes, where the markers would print.
- Flatten nested lists into top-level items, or the sub-items will be missing from the PDF.
- Rewrite links as text followed by the address, for example Guide (https://example.com), because the target of [Guide](...) is discarded.
- Replace emoji, arrows and other symbols outside Windows-1252 with plain words to avoid the encoding error.
- Split code blocks longer than about 50 lines, and do not rely on indentation inside them: Python and YAML lose their leading spaces.
- Break up very long unbroken strings such as long URLs. Text wraps only at spaces, so a single long word runs past the right margin.
- Delete YAML front matter. The opening --- becomes a rule and the keys below it print as a heading.
When to use a different route
This converter draws text directly into the PDF, which is why the output is tiny, opens identically everywhere and has real selectable text. The trade-off is that it only understands the block structure of a document. If your file depends on tables, images, syntax-highlighted code, clickable links, maths or diagrams, a browser-print route serves you better: turn the Markdown into HTML with a Markdown to HTML converter, open the result as a page, and use Print, then Save as PDF. The browser's own layout engine then handles everything HTML can express.
For documents in languages outside Western Europe, the same applies, because the built-in PDF fonts used here have no glyphs for those scripts. Command-line tools such as Pandoc are the usual choice when you need repeatable builds, custom templates or a table of contents.
Using Markdown to PDF Converter
- 1
Paste or type your text into Markdown, replacing the sample report.
- 2
Choose a Page size: A4 (210 x 297 mm) or US Letter (8.5 x 11 in).
- 3
Set Body font size between 8 and 16 points. The default is 11.
- 4
Press Convert to PDF. The document is rebuilt only when you press the button, not as you type.
- 5
Check the preview and the Pages figure, then download document.pdf.