Markdown to PDF Converter

Convert .md to PDF in your browser. Pick A4 or Letter, margins and a theme, then download a PDF with selectable text, tables, highlighted code, math and Mermaid diagrams. Free, no sign-up, nothing uploaded.

Markdown

Tips

  • Open a .md file, drop it on the editor, or paste Markdown.
  • Use ```mermaid code blocks to add diagrams, and a language name (```python) to colour code.
  • Math works with $x^2$, $$…$$, \(…\) and \[…\]. Prices like $5 and $10 stay as text.
  • Add <!-- pagebreak --> or \pagebreak to force a new page, or set “New page” to start every chapter on a fresh page.
  • Text in the PDF can be selected and searched. Formulas, diagrams and non-Latin scripts (for example Chinese or Cyrillic) are included as images only.
  • All processing is local — your content never leaves your browser.

Convert an .md file to PDF in three steps

Open your .md file (or paste the Markdown), check the live preview, and press Download PDF. The PDF is built on your device, so it works for private notes, contracts and internal docs.

Page setup options

  • Page size: A4 (210 × 297 mm) or US Letter (8.5 × 11 in).
  • Orientation: portrait, or landscape for wide tables.
  • Margins: narrow (12.7 mm), normal (20 mm) or wide (25.4 mm).
  • Text size: small, default or large; everything scales together.
  • Page breaks: headings stay with the paragraph after them, tables and code are not cut through a line, and you can start a new page before every H1 or H2, or wherever you write <!-- pagebreak -->.
  • Page numbers: optional, in the bottom margin.

What the PDF looks like

Each page is a high-resolution render of the preview, so fonts, colours, tables, formulas and diagrams look exactly as they do on screen. On top of the image, tinyMD adds an invisible text layer, so you can select, copy and search the text, and links stay clickable. Formulas, diagrams and scripts outside Western European languages (for example Chinese or Cyrillic) are visible but not selectable.

How to use Markdown to PDF

  1. Open a .md file, drop it on the editor, or paste your Markdown
  2. Choose page size (A4 or Letter), orientation, margins, text size and theme
  3. Optionally start each H1 or H2 on a new page and turn on page numbers
  4. Check the live preview
  5. Click Download PDF to save the file to your device

Why use tinyMD for Markdown to PDF

  • A4 or US Letter, portrait or landscape, narrow, normal or wide margins
  • Three text sizes and five themes (GitHub, Academic, Minimal, Resume, Modern), remembered for your next visit
  • Selectable, searchable text and clickable links in the PDF
  • Page breaks that keep headings with their content, optional new page per H1 or H2, optional page numbers
  • GFM tables, syntax-highlighted code, LaTeX math and Mermaid diagrams
  • Runs in your browser: nothing is uploaded, no sign-up, no watermark

Frequently asked questions

How do I convert an MD file to PDF?

Open the .md file with the Open .md file button (or drop it on the editor, or paste the Markdown), choose page size, margins and theme, and click Download PDF. The PDF is saved straight to your device.

Is this Markdown to PDF converter free? Is there a watermark?

It is free with no sign-up and no daily limit. There is no watermark over your content; the last page carries a small "Converted with tinyMD" line at the bottom edge.

Can I choose A4 or Letter, landscape, and the margins?

Yes. Pick A4 or US Letter, portrait or landscape, and narrow, normal or wide margins, plus a text size. Your choices are remembered in this browser for next time.

Can I select and copy text in the PDF?

Yes. Pages are rendered as images for an exact match with the preview, with an invisible text layer on top, so text can be selected, copied and searched, and links can be clicked. Formulas, diagrams and non-Latin scripts such as Chinese or Cyrillic are not selectable.

How do I control page breaks?

Headings are kept with the content after them, and long tables and code blocks are split between lines rather than through them. To force a break, add <!-- pagebreak --> or \pagebreak on its own line, or set New page to start every H1 (or every H1 and H2) on a fresh page.

Does it keep tables, code highlighting, math and Mermaid diagrams?

Yes. GFM tables, task lists, fenced code with syntax highlighting (when the fence names a language, like ```python), LaTeX math written with $…$ or $$…$$, and ```mermaid diagrams all appear in the PDF as they do in the preview.

Is my Markdown uploaded to a server?

No. The Markdown is rendered and the PDF is generated in your browser. Your file never leaves your device.

When should I use Pandoc instead?

Use Pandoc for automated pipelines, citations and bibliographies, or custom LaTeX templates. For a one-off PDF of a README, notes or a report, this page is quicker: no install and nothing to configure.