Markdown to PDF Converter
Paste Markdown or an AI answer, set the paper size and margins, and save a PDF with selectable text, formulas and highlighted code. Nothing is uploaded.
Your browser's print dialog opens. Choose Save as PDF as the destination.
Markdown
Preview
Team: Research tools · Updated: 12 March
Give field researchers one place to record observations offline and sync them once they are back online.
- Capture text, photos and the GPS position of each observation
- Work without a connection for up to a week
- Export a day's notes as a PDF report
| Phase | Weeks | Status |
|---|---|---|
| Research | 2 | Done |
| Prototype | 4 | In progress |
| Pilot | 6 | Planned |
A researcher who records observations a day with photos each needs about
{
"syncInterval": "15m",
"keepOffline": "7d",
"photoQuality": 0.8
}
Field tests start in the second week of April.
- The newest edit wins when two devices change the same note
- Photos upload only on Wi-Fi
How to convert Markdown to PDF
Paste or open Markdown
Paste text, open a
.mdfile, or copy an answer from ChatGPT, Claude or Gemini with its copy button.Set up the page
Pick the paper size, orientation, margins and text size. The preview shows the page at its real width.
Save as PDF
Click Save as PDF and choose Save as PDF as the destination in the print dialog. Untick Headers and footers if the date and page address appear.
Markdown to PDF, before and after
Chrome printed the sample to PDF with the converter's default settings. The \newpage line starts the appendix on page 2; this is page 1.
# Project brief: Field notes app
**Team:** Research tools · **Updated:** 12 March
## Goal
Give field researchers one place to record observations offline and sync them once they are back online.
## Scope
1. Capture text, photos and the GPS position of each observation
2. Work without a connection for up to a week
3. Export a day's notes as a PDF report
## Timeline
| Phase | Weeks | Status |
| :---- | ----: | :----- |
| Research | 2 | Done |
| Prototype | 4 | In progress |
| Pilot | 6 | Planned |
## Storage
A researcher who records $n$ observations a day with $p$ photos each needs about
$$
S = n \times (0.4 + 2.5\,p) \ \text{MB}
$$
```json
{
"syncInterval": "15m",
"keepOffline": "7d",
"photoQuality": 0.8
}
```
> Field tests start in the second week of April.
\newpage
## Appendix: sync rules
- [x] The newest edit wins when two devices change the same note
- [ ] Photos upload only on Wi-Fi

What it handles
- Text you can select
- The PDF holds real text: you can search it, copy from it and have it read aloud, and links stay clickable.
- Formulas and code
- LaTeX such as
$E = mc^2$is typeset, and code blocks keep their syntax colors and wrap long lines inside the page. - Page breaks and numbers
- Put
\newpageon a line of its own to start a new page. Chrome and Edge print page numbers at the bottom. - Paper and margins
- A4, US Letter, Legal, A3 or A5, portrait or landscape, with narrow, normal or wide margins.
- Tables that hold together
- Tables keep their column alignment, rows stay whole across page breaks, and headings stay with the text after them.
- Diagrams, images and CJK text
- Mermaid diagrams print as sharp vector graphics, and Chinese and Japanese text uses your system fonts, embedded in the PDF.
Markdown syntax and how it looks in the PDF
The PDF is laid out the way the preview shows it. Everything below prints with its formatting, and the text stays selectable.
| Element | Markdown | In the PDF |
|---|---|---|
| Headings | | Headings in larger type that stay on the same page as the text after them |
| Bold, italic, strikethrough | | Bold, italic and struck-through text |
| Links | | Links you can still click in the PDF |
| Lists | | Bulleted and numbered lists with their nesting |
| Task lists | | Check boxes, ticked or empty |
| Tables | | Tables with their column alignment; a row is never split across two pages |
| Code blocks | | Syntax colors, with long lines wrapped inside the page |
| Formulas | | Typeset formulas that stay sharp when you zoom in |
| ChatGPT formulas | | Typeset like $ formulas while Clean up AI output is on |
| Footnotes | | Numbered notes at the end of the document |
| Quotes | | Gray text with a line on the left |
| Images | | Images, scaled down to fit the page width |
| Mermaid diagrams | | Sharp vector diagrams |
| Page breaks | | What follows starts on a new page |
Other ways to convert Markdown to PDF
Pandoc
Pandoc converts from the command line and gives the most control over typesetting. It makes PDFs through LaTeX by default, so install a TeX distribution such as TeX Live or MiKTeX first.
pandoc report.md -o report.pdf --pdf-engine=xelatex -V geometry:margin=2cm
XeLaTeX handles Unicode; add -V CJKmainfont="Noto Serif CJK SC" for Chinese or Japanese text. To skip LaTeX, let an HTML engine make the PDF and style it with CSS: --pdf-engine=weasyprint --css print.css.
VS Code
Install the Markdown PDF extension, open the file and run Markdown PDF: Export (pdf) from the command palette. The extension downloads Chromium the first time it runs.
Typora and Obsidian
Typora exports with File → Export → PDF. In Obsidian, open the note and run Export to PDF from the command palette.
Many files at once
md-to-pdf converts files from the terminal with headless Chrome and writes each PDF next to its Markdown file:
npx md-to-pdf report.md
npx md-to-pdf docs/*.md
Questions and answers
How do I convert Markdown to PDF?
Why does a print dialog open?
How do I remove the date and web address from the pages?
How do I add a page break?
\newpage or \pagebreak on a line of its own, with an empty line before and after it. What follows starts on a new page, and the preview marks the break with a dashed line.Why are there no page numbers?
Can I save the PDF on a phone?
Is my document uploaded anywhere?
Should I use Pandoc instead?
Related tools
- ChatGPT to PDFSave a ChatGPT answer as a PDF with typeset formulas and tables.
- Markdown to WordDownload an editable .docx with Word headings, tables and equations.
- Markdown to HTMLClean, safe HTML for a site or blog, or a complete styled page.
- ChatGPT to WordTurn a copied ChatGPT answer into a .docx with editable equations.
- Markdown to Rich TextCopy formatted text that pastes into Google Docs, Word and email.
- Markdown to Plain TextRemove #, ** and backticks and keep lists, links and tables readable.