Markdown to PDF — convert .md to a styled PDF, free and private

Turn a Markdown file or pasted text into a clean, styled PDF — headings, tables, code blocks, and an auto table of contents included. The whole markdown to PDF conversion runs in your browser, so your file is never uploaded.

How to convert Markdown to PDF

  1. Drop a .md file into the box above, or switch to Paste Text and paste your Markdown.
  2. Pick a page size, margins, font size, and a light or dark code theme.
  3. Click Convert to PDF — your Markdown is rendered locally, in your browser.
  4. Download the styled PDF. Your source text is never uploaded.

What it does

  • GitHub-flavored Markdown with tables, task lists, blockquotes, and links
  • Syntax-styled code blocks in a light or dark theme, plus an auto table of contents
  • Page layout control — A4 or Letter, margin presets, and font size
  • No upload, no sign-up, no watermark — and embedded HTML is sanitized, never executed

Common uses

  • Exporting a project README or docs to a shareable, printable PDF
  • Turning meeting notes or a spec written in Markdown into a polished handout
  • Sending a formatted changelog or proposal to someone who doesn't use Markdown

Is it private?

Yes. Unlike most "markdown to PDF" converters, PaperFit renders your Markdown entirely on your own device — nothing is sent to a server. That matters when your .md holds unreleased docs, internal specs, or notes with private links and tokens: the text simply stays in your browser. Any HTML embedded in your Markdown is sanitized and never executed, so a stray script tag can't run during conversion. Open your browser's network tab and watch — nothing leaves while you convert.

Frequently asked questions

Are my files uploaded to a server?

No. The markdown to PDF conversion runs 100% in your browser, so your .md file and pasted text never leave your device.

Does it support GitHub-flavored Markdown?

Yes. Tables, task lists, fenced code blocks, blockquotes, and links all render the way you'd expect from GFM.

Can I paste Markdown instead of uploading a file?

Yes. Switch to Paste Text and drop in your Markdown — no .md file needed. It also accepts .md, .markdown, and .txt files.

What about HTML inside my Markdown?

Embedded HTML is sanitized for safe rendering and is never executed, so scripts in your Markdown won't run during conversion.

Is there a table of contents and page layout control?

Yes. A table of contents is built automatically from your headings, and you can set page size (A4 or Letter), margins, font size, and a light or dark code theme.

Is there a size limit, and is it free?

It's free with no account and no watermark. Markdown input is supported up to 10 MB, which is plenty for even large docs.

Related tools