MDPDFOpen the converter →

How to convert Markdown to PDF on Windows

A practical guide · about 5 min read

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:

  1. Open the converter and paste your Markdown, or drop in a .md file.
  2. Pick a page size (A4 or US Letter) and a style.
  3. 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 nowBrowser converter
Write Markdown regularlyTypora / Obsidian
Already use VS CodeMarkdown PDF extension
Need scripted outputPandoc + MiKTeX

Common Windows gotchas

For most people on Windows, the browser route is the fastest good answer. Open the converter, paste your Markdown, and save.

Convert on Windows now

Works in Edge or Chrome. Nothing uploaded.

Open the converter