Markdown to PDF converter

Paste Markdown, download a print-ready PDF. Real page breaks, code that keeps its indentation, tables that do not overflow the page. Free, in your browser.

Free · no sign-up

Project Proposal

1. Objective

Deliver a self-serve onboarding flow that cuts activation time from 3 days to 1 hour.

2. Scope

ItemIn scopeOwner
Sign-up form✓Design
Email verification✓Backend
SSO✗—

3. Setup

npm install
        npm run dev -- --port 3000
  1. Clone the repo
  2. Copy .env.example to .env
  3. Run the dev server

— 1 —

Converted in your browser. Your file never leaves your device.
1

Paste Markdown

From a README, a note, or an AI chat. Drop a .md file if you have one.

2

Pick paper and font

A4 or Letter, Calibri or a serif. The preview shows where the first page ends.

3

Download PDF

Text stays selectable and searchable. Links stay clickable. Nothing was uploaded.

How Markdown becomes a PDF that prints properly

A PDF is a fixed layout. Markdown has no layout at all. The gap between the two is where most "Markdown to PDF" tools fall down: they render the text as one endless web page, then let the browser slice it into pages wherever the cut happens to land. You get a table header on one page and its rows on the next, a code block sawn in half, and a heading orphaned at the bottom of a page with nothing under it.

MDtoDOCX converts Markdown to semantic HTML first, then applies a print stylesheet built for pagination. Headings carry page-break-after: avoid so they always stay with the paragraph that follows. Table rows are marked page-break-inside: avoid, and the header row repeats on every page a long table spans. Code blocks are kept whole when they fit on a page and are split only at line boundaries when they do not. Images are scaled to the printable width and are never cut across a page.

Fonts that are actually embedded

The PDF embeds the fonts it uses, so it looks the same on a phone, a Linux laptop and the university print shop. You choose the body font from the option bar. Code always uses a monospace face with the same character width, so column alignment in tables drawn with spaces survives.

Text stays text

Some converters rasterise the page to an image and wrap it in a PDF. That kills search, copy-paste and screen readers, and it produces a 10 MB file for a two-page document. MDtoDOCX writes real text, real links and real headings into the PDF. The result is small, searchable and accessible, and Ctrl-F works.

Page size, margins and page numbers

A4 and US Letter are one click apart. Margins default to 2.54 cm on all sides, the same as a new Word document, so a PDF and a .docx exported from the same Markdown line up page for page. Pro adds page numbers in the footer, a clickable table of contents at the front, and the ability to paste your own CSS to control everything from font sizes to running headers. See Markdown to PDF with CSS.

Equations and diagrams

LaTeX between $ signs is typeset with a KaTeX-class renderer and printed as crisp vector glyphs, not screenshots. Mermaid code blocks are rendered to SVG and embedded, so flowcharts print sharp at any zoom. Both are Pro features, previewed free. See Markdown to PDF with LaTeX and Markdown to PDF with Mermaid.

Why the free tier runs locally

For most documents the PDF is produced by your own browser's print engine, driven by our stylesheet. Nothing is uploaded, and there is no queue. Pro users can also send large or batch jobs to our server renderer, which uses the same stylesheet in a headless Chromium and deletes the files after 24 hours.

MDtoDOCX vs Pandoc vs "Print to PDF"

What mattersMDtoDOCXPandoc + LaTeXBrowser print of a preview
SetupNonePandoc plus a 2–4 GB TeX installNone
Headings kept with their textYesYesNo
Table header repeats across pagesYesYesNo
Code blocks split only at linesYesYesCut anywhere
Selectable, searchable textYesYesYes
Mermaid diagramsVector (Pro)Needs a filterDepends on preview
Custom stylingOptions bar, CSS (Pro)LaTeX templateNone

Frequently asked questions

Is Markdown to PDF free?
Yes. Converting Markdown to a paginated, searchable PDF with headings, lists, tables, code and images is free without an account. Free PDFs carry a one-line footer credit; Pro removes it and adds page numbers, a table of contents, custom CSS, equations and diagrams.
Is my Markdown uploaded?
No. The free converter builds the PDF inside your browser and hands the print-ready page to your own print dialog. Content reaches our renderer in four Pro cases only — converting several files at once, merging them into one document, a source file larger than 5 MB, or ticking "Render the PDF on our server". There is no page-count rule, and those files are deleted within 24 hours.
Can I choose A4 or Letter?
Yes, from the options bar. Margins default to 2.54 cm, matching a new Word document, so a PDF and a .docx exported from the same Markdown paginate the same way.
Will code blocks be cut in half across pages?
No. Code blocks that fit on a page are kept whole. Longer blocks are split only between lines, never through a line, and the monospace font keeps indentation intact.
Does it support LaTeX math?
Yes. Inline $…$ and display $$…$$ math is typeset and printed as vector text. This is a Pro feature; the free preview shows the rendered result so you can check it before deciding.
How do I convert a GitHub README to PDF?
Open the README on GitHub, click Raw, copy everything and paste it here. GitHub-flavored Markdown such as task lists, tables and fenced code is fully supported.
Can I add page numbers?
Page numbers, running headers and a clickable table of contents are Pro options. They appear in the preview when you toggle them so you can see the layout before you download.
Why is my PDF so small?
Because it contains real text and vector graphics rather than screenshots. A 20-page document is typically under 300 KB. Embedded photos add their own size.