Markdown → PDF

Markdown to PDF

Paste Markdown or load a .md file, choose the page size and margins, and download a PDF with selectable text. Nothing is uploaded.

The Markdown is converted inside this tab. No text, file name or PDF leaves your device.

Short answer: paste your Markdown above and press Create PDF. The page builds a real PDF with selectable text, re-opens it with pdf.js to confirm the page count, then offers the download. It runs entirely in this tab.

What the output looks like

One column, A4 or US Letter, with 12–25 mm margins. Headings step down in size, code blocks get a bordered grey panel, tables repeat their header row when they break across pages, and every page carries a “page / total” footer. Paragraph spacing follows print conventions rather than the screen.

Where this converter stops

Markdown in, PDF out

This is the same document model used by HTML to PDF, so a Markdown file and an HTML file with the same headings produce the same layout. If you need to keep the styling instead, use Markdown to HTML and print from your browser.

Markdown to PDF questions

Is the PDF real text or an image of the page?

Real text. The PDF is built with pdf-lib using the standard PDF fonts, so headings and paragraphs stay selectable, searchable and copyable — not a screenshot. Links in your Markdown become clickable link annotations.

How do I know the download actually works?

After building the file, the tool re-opens those exact bytes with pdf.js — a different PDF library from the one that wrote them — and compares the page count. If the two disagree, or pdf.js cannot read the file, no download link appears.

Which Markdown features are supported?

Headings 1–6, paragraphs, bold, italic, inline code, fenced code blocks, bullet and numbered lists (including nesting), block quotes, horizontal rules, tables, links and task-list checkboxes. Raw HTML inside the Markdown is stripped of scripts and event handlers before it is used.

Can I convert Hindi or other non-Latin Markdown?

The built-in PDF fonts cover Latin script only, so non-Latin text cannot be drawn faithfully. Short runs of unsupported characters are reported and written as “?”, while documents that are mostly non-Latin are refused with a clear message rather than exported as garbage. Use Markdown to HTML when you need full Unicode.

Are images in my Markdown included in the PDF?

Only images embedded in the Markdown as data: URLs. A relative path or a remote https image is not fetched — this page makes no third-party requests — so those images are counted and reported as skipped.

What are the limits, and does it upload my file?

Up to 200,000 characters of Markdown and 300 pages of output, all processed in this browser tab. There is no upload endpoint, no account, and no text is sent anywhere.

Related tools