---
title: "How to Convert Markdown to PDF, Step by Step | mdprint"
url: "https://mdprint.app/convert-markdown-to-pdf/"
dateModified: "2026-09-24T15:39:33+02:00"
---

# How to Convert Markdown to PDF, Step by Step | mdprint

Step-by-step guide

# Convert Markdown to PDF

A short, practical guide to convert Markdown to PDF the right way: from pasting your text to a clean, print-ready file, all in your browser and without an account.

[Open the converter](https://mdprint.app/#tool) [Read the steps](https://mdprint.app/convert-markdown-to-pdf/#steps)

Four steps No install No upload

## Convert Markdown to PDF in four steps

No account, no install, nothing to upload.

[Open the converter](https://mdprint.app/#tool)

01

### Paste or open your Markdown

Open the editor and type directly, paste from the clipboard, or drag a .md, .markdown or .txt file onto the pane. The file is read locally, so nothing is sent anywhere. The editor loads with a sample you can delete once you drop in your own text.

02

### Check the live preview

As you type, the preview renders your document exactly as it will print: headings, tables, code with syntax colours, KaTeX math and Mermaid diagrams. Scan it for anything that looks off, a stray dollar sign or a broken table row, and fix it in the source before you export.

03

### Set the page size and margins

Open Settings to pick A4 or Letter, portrait or landscape, and narrow, normal or wide margins. Landscape helps with wide tables and diagrams; wider margins leave room for handwritten notes on a printed copy. Your choice is remembered for next time.

04

### Download or print

Click Download PDF for a one-click file, or Print to go through the browser dialog and Save as PDF. Both use your page settings, so the output matches the preview. That is the whole conversion, start to finish.

## Tips for a clean conversion

A few habits make the difference between an acceptable PDF and one you are happy to send.

*   Start every document with a single H1. It becomes the suggested filename, the document title, and the prominent heading at the top of the first page.
*   For images to appear in the PDF, use a publicly reachable URL or embed the image as a data URL. Files behind a login or on your local disk will not be fetched during export.
*   If a heading lands alone at the bottom of a page, add a sentence above or below to push it onto the next page. The converter avoids breaking inside code, tables and diagrams, but it does not reflow prose for you.
*   To keep formatting intact, write standard GitHub Flavored Markdown. If it renders correctly on a GitHub README, it renders here, and it will carry into the PDF.
*   For very wide tables, switch to landscape orientation instead of shrinking the text. PDF has no horizontal scroll, so a wider page is the cleaner fix.

## Print or Download PDF: which to use

Both buttons produce a PDF, but they work differently and suit different jobs. Print opens your browser's native dialog, where every modern operating system offers Save as PDF. This route keeps text as text, so the file stays selectable and searchable, diagrams remain vectors, and everything scales sharply at any zoom. Choose it when the PDF needs to be searched, quoted, or archived.

Download PDF skips the dialog and generates the file in one click. It renders the page to a high-resolution image and places it in the PDF, so the result is pixel-accurate to what you see, but the text is not selectable. Choose it when you want a fast, exact snapshot and do not need to search inside the file. When in doubt, use Print for a document you will keep and Download PDF for a quick copy.

## What people convert

The same flow covers most everyday Markdown.

### README and project docs

Turn a GitHub README or a docs folder into a clean PDF for a client, a grant, or an offline archive, with code and tables intact.

### Notes and study material

Convert lecture notes, meeting notes or Obsidian pages into a printable handout, with headings and task lists preserved.

### Technical documentation

Export specs and runbooks that mix prose, code blocks and Mermaid diagrams into a single, well-paginated file.

### Papers and reports

Produce a tidy PDF from a Markdown draft with KaTeX equations and footnotes, without opening a heavy word processor.

FAQ

## Converting Markdown to PDF: FAQ

Questions about the conversion itself. For anything else, write to anton@fokuus.be.

Q1

Open the editor, drop or open your .md file, check the live preview, set the page size in Settings, then click Download PDF or Print and Save as PDF. The whole process runs in your browser.

## Keep going

*   [Markdown to PDF converter: all the features](https://mdprint.app/markdown-to-pdf/)
*   [Open the editor and convert now](https://mdprint.app/#tool)

[

Need the reverse?

## Convert PDF to Markdown

Have a PDF you want to edit? Extract clean Markdown from it, entirely in your browser.

Convert PDF to Markdown

](https://mdprint.app/pdf-to-markdown/)

---
Canonical page: https://mdprint.app/convert-markdown-to-pdf/

[Agent documentation](https://mdprint.app/developers/) · [Authentication and privacy](https://mdprint.app/auth.md) · [Resource catalog](https://mdprint.app/.well-known/ard.json)
