Convert a Markdown file to PDF

A README, notes, an assistant’s answer saved as .md: drop the file, get a laid-out PDF.

MD MARKDOWN Max. size 10 MB, up to 200 MB on Premium

How does it work?

  1. Drop your .md or .markdown file, up to 10 MB on Free and 200 MB on Premium.
  2. Click Convert to PDF. The Markdown is laid out for print, on A4.
  3. Download your PDF. The source file and the generated file are deleted from our servers after one hour.

What you get

Markdown as GitHub writes it: headings, lists, tables, task lists, quotes and alerts, footnotes, emoji. Code is highlighted for its language, and math written between $…$ or $$…$$ is typeset.

Pages are numbered, your headings become bookmarks in the PDF, and links stay clickable. Text stays text: it can be selected, copied and searched.

What your file must contain

Text saved as UTF-8, the encoding of every current editor. A file saved in an old Windows encoding is refused rather than rendered with garbled characters: save it again as UTF-8 and drop it again.

Images given by a public address are loaded. Those next to the file on your computer are not sent to us: they will be missing from the PDF. HTML written in the Markdown is kept, but no script is run.

Files we refuse, and why

The file has nothing to lay out: it is empty, or holds only its header (front matter). We tell you so rather than hand you a blank page.

The file is not text: a Word document, an image or an archive dropped here is recognised for what it is. Drop it on the home page, which sends it to the right converter.

The document exceeds 500 pages, or its layout takes more than a minute.

Privacy and security

Conversion happens on our OVHcloud servers in France. No US service is involved in the process: no CDN, no storage, no tracker. Your files are never indexed, analysed or reviewed. No result is cached: two conversions of the same file produce two independent PDFs.

Your file is laid out in a sandboxed browser: it cannot read any other uploaded file, cannot write anywhere else, and has no access to any internal network. The information in its header, such as its title or author, is not copied into the PDF.

The source file and the generated PDF are deleted after one hour. If you create a share link, a copy of the file is kept for the period you chose (up to 7 days on Free and 30 days on Premium). You can delete the share at any time. Conv2pdf is GDPR compliant.

Frequently asked questions

My file is a .txt, can I drop it here?

Yes. On this page, a text file is always read as Markdown, whatever its extension.

Is math supported?

Yes, in LaTeX syntax: $E = mc^2$ within the text, $$…$$ for a formula centred on its own line.

What about Mermaid diagrams?

They are not drawn: a mermaid block appears in the PDF as a code block.

Is the text in the PDF selectable?

Yes. The PDF is not a picture of the page: it is a document whose text can be copied and searched.

Latest updates

  • Markdown files now convert to PDF, tables, code and math included.

Automate via the API

Converting in bulk or from your app? The same processing is available through our REST API — hosted in the EU (France), DPA on request.

curl -X POST https://api.conv2pdf.com/v1/convert/markdown-to-pdf \
  -H "Authorization: Bearer cpdf_live_xxx" \
  -F "file=@document.md"

See the API documentation →

Other PDF tools