How to use Markdown to PDF
- Add one or more .md files, or paste Markdown in the box.
- Choose the page size and orientation.
- Press Start.
- Download the PDF: one PDF per file, and one for the pasted text.
How Markdown to PDF works
Markdown, then a print layout
Your Markdown is turned into HTML with markdown-it (CommonMark, plus tables and strikethrough), then laid out on A4, Letter, A5 or Legal pages with WeasyPrint. Headings, lists, quotes, code blocks, tables and links get a clean, readable style, and page numbers are added at the bottom.
Right-to-left paragraphs
Each paragraph, heading, list item and table cell looks at its first letter: if it is Arabic or Hebrew, that block is set right to left and right-aligned. English and Arabic paragraphs can be mixed in the same document. Code blocks always stay left to right.
What is not included
For safety, raw HTML inside the Markdown is shown as text, not run, and pictures linked by address are not downloaded.
Tips for the best result
- Use a blank line between paragraphs, as in any Markdown.
- Tables need a header row and a separator line (|---|---|).
- Landscape pages suit wide tables.
- Need raw HTML or custom CSS? Convert with Markdown to HTML, edit, then use HTML to PDF.
- Number the pages again or add a cover later with our PDF tools.
Private by design
Markdown to PDF needs software that cannot run inside a browser (LibreOffice or Ghostscript). Your file is sent over an encrypted HTTPS connection to our own server in Europe, converted in memory (RAM, never written to disk) and deleted as soon as the result is sent back to you, and in any case within 5 minutes. Nobody looks at your files, they are not kept and they are never shared.
Related tools
- Markdown to HTML (and HTML to Markdown)Turn Markdown into a clean HTML page, or HTML back into Markdown, with tables, lists, links and code blocks.
- HTML to PDFTurn an HTML file or pasted HTML code into a clean, paginated PDF with its CSS, tables and Arabic text. Remote links are not fetched.
- Create a PDF (Text to PDF)Write or paste text, add a title and get a clean PDF in seconds. Also turns .txt files into PDF. Arabic and mixed text supported.
- Compress PDFReduce the size of PDF files by re-compressing their images and fonts, with three compression levels.
- Merge PDFCombine several PDF files into one, in the order you choose, directly in your browser.
Frequently asked questions
Which Markdown is supported?
CommonMark (headings, emphasis, lists, quotes, code, links, horizontal rules) plus GitHub-style tables and ~~strikethrough~~. Task lists and footnotes are shown as plain text.
Are images included?
Pictures linked by web address or file path are not downloaded, so they do not appear. This prevents the server from being used to reach other addresses.
Is code highlighted in colour?
Code blocks get a grey box and a monospaced font, without colour highlighting.
Can I mix Arabic and English?
Yes. Each block takes its own direction from its first letter, so Arabic paragraphs read right to left and English ones left to right.
Can I change the font?
Not on this page. For a custom design, convert to HTML, add your CSS and use HTML to PDF.
Is my file uploaded?
Yes, this conversion needs desktop software that cannot run in a browser. The file is sent over an encrypted HTTPS connection to our own server, converted in memory and deleted as soon as the result is sent back; anything left over is erased within 5 minutes. Files are never stored, shared or looked at.
Is there a size limit?
Yes: 100 MB per file and up to 10 conversions per minute, so the free service stays fast for everyone.