# Convert Markdown to PDF

> Three simple ways to turn a Markdown file into a PDF — in VS Code, in the browser, or from the command line.

## In VS Code

Install the "Markdown PDF" extension, open your .md file, then run "Markdown PDF: Export (pdf)" from the right-click menu. It styles the PDF for you.

## In the browser

Open the rendered Markdown — a GitHub preview or any viewer — then use Print and choose "Save as PDF". No tools to install.

## From the command line

Pandoc converts in one line. For polished output it uses a LaTeX engine under the hood.

```bash
pandoc notes.md -o notes.pdf
```

:::tip
For AI you usually want the opposite direction. Export to PDF for sharing or printing, but keep the .md as your source of truth.
:::
