Blog
Custom Print on Demand Apparel — Free Storefront for Your Business
Wild & Free Tools

How to Convert Markdown to PDF on Mac, Windows & Linux (2026)

Last updated: April 20266 min readDocument Tools

Converting Markdown to PDF works on every platform — Mac, Windows, and Linux. Here's exactly how to do it on each, from the fastest zero-install method to the most powerful command-line approach.

Universal Method — Works on All Platforms

Our Crane Markdown to PDF converter runs in any browser on any operating system. Open the page, paste your Markdown, see the preview, download PDF. No install, no account, no platform-specific steps.

This is the fastest method for one-off conversions. The PDF is generated by your browser's print engine, so it looks slightly different on each browser (Chrome and Edge produce the best results).

Convert Markdown to PDF on any device — paste and download.

Open Converter

Mac-Specific Methods

Option 1: Pandoc via Homebrew

  1. Install: brew install pandoc basictex
  2. Convert: pandoc README.md -o README.pdf
  3. With custom margins: pandoc README.md -o README.pdf -V geometry:margin=1in

Option 2: VS Code

  1. Install VS Code from code.visualstudio.com
  2. Install "Markdown PDF" extension
  3. Open .md file → Cmd+Shift+P → "Markdown PDF: Export (pdf)"

Windows-Specific Methods

Option 1: VS Code (recommended for Windows)

  1. Install VS Code → install "Markdown PDF" extension
  2. Open .md file → Ctrl+Shift+P → "Markdown PDF: Export (pdf)"

Option 2: Pandoc

  1. Download Pandoc installer from pandoc.org
  2. Install MiKTeX for LaTeX support
  3. Open Command Prompt: pandoc README.md -o README.pdf

Linux-Specific Methods

Option 1: Pandoc via apt

  1. Install: sudo apt install pandoc texlive-latex-base texlive-fonts-recommended
  2. Convert: pandoc README.md -o README.pdf
  3. Batch convert all .md files: run a loop for each file in the directory

Platform Comparison

MethodMacWindowsLinuxChrome OSMobile
Browser tool (ours)
Pandoc✓ (Homebrew)✓ (installer)✓ (apt/dnf)
VS Code + extension
md-to-pdf (npm)

Related Document Tools

  1. Lynx Markdown Editor — write Markdown with live preview
  2. Crane Markdown to PDF — convert to PDF in browser
  3. Falcon Word to Markdown — convert Word docs to .md
  4. Heron Rich Text to Markdown — convert rich text to .md

Works on Mac, Windows, Linux, and mobile — no install.

Convert Markdown to PDF
Launch Your Own Clothing Brand — No Inventory, No Risk