How to convert Markdown to PDF on Windows
Windows has a “Microsoft Print to PDF” printer built in, which handles the last step of making a PDF — but it can only print something that's already formatted. A raw .md file is plain text, so you need a tool to render the Markdown first. Here are the routes that work, from no-install to full control.
1. In the browser (no install)
The quickest option needs nothing installed and works the same in Edge or Chrome:
- Open the converter and paste your Markdown, or drop in a
.mdfile. - Pick a page size (A4 or US Letter) and a style.
- Click Download PDF, then choose Save as PDF (or “Microsoft Print to PDF”) in the print dialog.
It renders on your PC, so nothing is uploaded — useful for work documents. Because it uses the browser's fonts, Chinese, Japanese and Korean text comes out correctly rather than as empty boxes.
2. Typora or a Markdown editor
Typora is a popular Windows Markdown editor with a clean live preview and File → Export → PDF. It's the nicest experience if you write Markdown regularly and want control over themes and typography. Other editors such as Obsidian (with its “Export to PDF” command) and Zettlr also produce good PDFs.
3. From VS Code
If you use Visual Studio Code, install the “Markdown PDF” extension. Open your .md file, right-click, and choose Markdown PDF: Export (pdf). It renders with a bundled browser engine, so GFM tables and syntax-highlighted code blocks work without any extra setup. Great when VS Code is already part of your workflow.
4. Command line with Pandoc
For scripted or repeatable conversions, install Pandoc (there's a Windows installer, or use winget install pandoc) plus a LaTeX engine such as MiKTeX:
pandoc notes.md -o notes.pdf --pdf-engine=xelatex
For CJK text, point it at a font installed on Windows:
pandoc notes.md -o notes.pdf ^
--pdf-engine=xelatex ^
-V mainfont="Microsoft YaHei"
(The ^ is the line-continuation character in Command Prompt; in PowerShell use a backtick ` instead.) See our command-line guide for more.
Which should you pick?
| If you… | Use |
|---|---|
| Just need it now | Browser converter |
| Write Markdown regularly | Typora / Obsidian |
| Already use VS Code | Markdown PDF extension |
| Need scripted output | Pandoc + MiKTeX |
Common Windows gotchas
- Chinese/Japanese/Korean turns into boxes. That's a font problem — the converter is using a font with no CJK glyphs. Browser tools avoid it by using Windows' own fonts; with Pandoc you have to set
mainfontexplicitly (see above). There's a dedicated CJK guide. - Tables print as raw pipes. Your tool doesn't support GitHub-Flavored Markdown — switch to one that does.
- Everything is on one giant page. That's how HTML-to-PDF works by default; see our guide on controlling page breaks.
For most people on Windows, the browser route is the fastest good answer. Open the converter, paste your Markdown, and save.