How markdowntopdf.app makes a PDF without uploading your document

The evidence behind Markdown to PDF: how the PDF is made and tested, why nothing in a document can run, the limits, and how to check that your document stays on your device.

Updated

Open Markdown to PDF

What happens on your device

Your Markdown is read by code already in the page: markdown-it 15.0.3 with markdown-it-footnote 4.0.0 makes the HTML, highlight.js 11.12.0 colors code and KaTeX 0.19.1 typesets math in the preview. No server takes part.

Two ways to make a PDF

  1. Download PDF uses the tool's own PDF writer, the open-source library pdfmake 0.3.15, in a background thread of your browser. Fonts served by this site (Inter or Source Serif 4 for text, JetBrains Mono for code) are embedded in the file, so the text can be selected, searched and copied.
  2. Print / Save as PDF opens your browser's print dialog on the preview, with your page size and margins set by the page's @page rule. You choose Save as PDF, and the browser writes the file.

The tool makes the second the main button, and says why, when a document has math or text the PDF fonts cannot draw (such as Chinese, Japanese, Korean, Arabic, Hebrew or emoji): the preview shows those, and the PDF writer does not in this version.

What the PDF holds

Headings, which become the PDF's bookmarks and are not left alone at the foot of a page; text styles and links that can be clicked; lists, task lists and block quotes; highlighted code with long lines wrapped; tables with the header row repeated on each page; PNG and JPEG images from your device; footnotes; page breaks; the first top-level heading as the PDF's title; and page numbers if you choose them. Raw HTML is reduced to what a PDF can hold, with a note saying so, and math is written as its source.

Why nothing in a document can run

Markdown can contain HTML, so DOMPurify 3.4.18 removes scripts, event handlers and javascript: links, and the result is shown in a frame: a separate page with no script, its own security policy and the browser's sandbox, so nothing runs even if the cleaning missed something. That policy also blocks images from other websites. Load remote images moves the preview to a second page whose policy also allows images from other websites, and nothing else from them.

How it is tested

The engine is tested on 17 Markdown files written for the purpose and a 150-page document made during the test. They cover the GitHub Flavored Markdown additions (tables, task lists, strikethrough and automatic links), lists nested four deep, footnotes, code in ten languages, a table of 200 rows, images, page breaks, front matter, a pasted chat answer, raw and hostile HTML, math, and Chinese, Japanese, Korean, Arabic, Hebrew and emoji text.

Every PDF the tests make is read back with poppler's tools: pdfinfo for the page size, page count and title (Letter must measure 612 × 792 points, and A4 in landscape 841.89 × 595.28), pdftotext for the words in order, pdffonts to check that every font is embedded and pdfinfo -url for the links. Its first page is drawn by two renderers, poppler's pdftoppm and Ghostscript, without an error.

Ten page tests run the site itself in a browser: typed and pasted text, the page options and the print route, images dropped with a .md file or opened as a folder, hostile Markdown, remote images, Download HTML, Copy HTML, Copy as rich text and Download .md, a ZIP of three PDFs, a phone-width screen in light and dark themes, offline use, and the network test described below.

Last tested: November 22, 2026: the 21 engine tests, and the 10 page tests in Chrome, Firefox and WebKit, the engine of Safari. Result: every test passed.

Known limits

The downloaded PDF does not typeset math, does not draw the scripts named above and leaves out images on other websites: use Print / Save as PDF for those. Mermaid diagrams are not drawn. There is no Word (.docx) output, no opening of a file from a web address and no saved drafts.

A document can be up to 512,000 characters long. Images must be PNG or JPEG, up to 16 megapixels and 24 MB each, and one drop or folder can hold up to 256 files and 64 MB in all. In the downloaded PDF a table can have up to 32 columns; for a wider one, use Print / Save as PDF.

Not tested yet: real phones, the browser's own print dialog (the tests check the page rules it prints with, not the dialog itself), and pasting Copy as rich text into Word or Google Docs.

How to check that nothing is uploaded

  1. Go offline. Load the tool, turn off Wi-Fi, then open a file and download its PDF. It works, so nothing had to reach a server.
  2. Watch the network. Open your browser's developer tools and the Network tab, then convert a document. The page loads its own code and fonts from markdowntopdf.app and, if analytics is on, sends small requests to Google Analytics. None contains your text, your images or a file name, and no other server is contacted unless you load remote images.
  3. Read the security policy. Every page is sent with a Content-Security-Policy header that blocks the page from sending data anywhere except markdowntopdf.app itself and Google Analytics.

A test runs the second check before each release, with a marker in the text, a link address, an image's alt text and a file name, and fails if the marker appears in any request. There is no session recording, because a recorder could read the frame that shows your document. The privacy page lists what Google Analytics receives.