Convert MD to PDF without Pandoc or VS Code extensions
The usual routes are a command-line tool (Pandoc, which needs LaTeX for PDF output) or an editor extension (VS Code's Markdown PDF installs a copy of Chromium). This page needs neither: the Markdown is parsed with marked in your browser and laid out straight into a PDF with real text, so you can search and copy it.
| Markdown | In the PDF |
|---|---|
# Heading to ###### |
Bold headings in six sizes, kept with the next paragraph |
Tables with :---: alignment |
Bordered table, column alignment kept, fitted to the page |
- [x] done / - [ ] todo |
[x] done / [ ] todo, without bullets |
| Fenced code with a language | Monospaced on a grey band, keywords, strings and comments in colour |
> quote |
Grey text with a bar on the left |
[link](https://…) |
Blue, underlined, clickable |
 |
Alt text in brackets (remote images aren't fetched) |
~~strike~~, **bold**, *italic*, `code` |
As written |
Measured: README and long documents
| Test file | Size | Pages | PDF size | Time |
|---|---|---|---|---|
| Project README: table, task list, 3 code blocks | 1.2 KB | 1 (Letter) | 5 KB | 0.3 s |
| 40 sections with tables and code | 18 KB | 11 (A4) | 23 KB | 0.3 s |
When people convert Markdown to PDF
For a README or documentation hand-off
Send a client or reviewer a PDF of your project's README.md or docs folder page, with code samples readable and links still clickable.
For notes from Obsidian, Typora or Notion exports
Export the note as Markdown, drop it here, and print or share the PDF. Front matter is skipped. If the note has images, export them separately.
Troubleshooting
| Problem | Fix | Why it happens |
|---|---|---|
| Images are missing | Embed them as data URIs, or add them later with Add Image to PDF. | Images at a web address or on disk aren't fetched. |
| "?" instead of emoji or symbols | Replace them with words, or accept the substitution. | The built-in PDF fonts cover Latin script only. |
| A wide table is cramped | Split it into two tables or shorten the headers. | Tables are fitted to the page width. |
| Mermaid diagram shows as code | Export the diagram as an image first. | Diagrams need a renderer that isn't included. |