Text tools

Markdown to PDF

Markdown to PDF

Turn Markdown into a styled PDF with selectable text in any language, using your browser's Save as PDF.

About this tool

About Markdown to PDF

Turn a README, meeting notes, a report or documentation written in Markdown into a tidy PDF to send, print or attach. Paste or open a .md file, pick one of 26 print styles, from business report, proposal and contract to manuscript, thesis, newsletter, recipe and README, each with its own fonts, heading treatment, colours and table style, and check the print preview. Set the paper size (A4, US Letter, Legal or A5), portrait or landscape, margins in millimetres and the text size. Tables, task lists, block quotes and code blocks are styled for paper, and the layout avoids splitting code blocks, images and tables across pages where possible. Save as PDF opens your browser's print dialog with the document ready; choose Save as PDF as the printer. Because your browser draws the text with your system fonts, every language works, including Hindi, Arabic, Chinese, Japanese and emoji, and the text in the PDF stays selectable and searchable. Raw HTML is shown as text and nothing runs, so it is safe for any file, and nothing is uploaded.

Built and maintained by Abhi JainUpdated

How to Convert Markdown to PDF

  1. 1

    Paste or open Markdown

    Paste your Markdown or open a .md file. The example document shows every element.

  2. 2

    Pick a print style

    Open Print styles and choose a look such as Business report, Manuscript or Project README. Your Markdown stays as it is.

  3. 3

    Set the page

    Adjust Paper, Margin, Text size and Landscape, and check the Print preview.

  4. 4

    Save as PDF

    Click Save as PDF and choose Save as PDF (or Microsoft Print to PDF) as the printer. Turn off Headers and footers for a clean page.

Markdown to PDF: questions and answers

Why does it use the print dialog?

Printing lets your browser lay out the page with real fonts for every script, so Hindi, Arabic, CJK and emoji come out right and text stays selectable. A PDF library in the browser can only embed the few fonts it carries.

How do I remove the date and URL from the top of the page?

In the print dialog, open More settings and untick Headers and footers (Chrome and Edge), or Print headers and footers (Firefox and Safari).

Can I make a page break?

Markdown has no page-break syntax, and raw HTML is shown as text here for safety. Long code blocks, tables and images are kept on one page when they fit, and headings are not left alone at the bottom of a page.

Does it work on a phone?

Yes. On iPhone and iPad, tap Save as PDF, then Share and Save to Files. On Android, choose Save as PDF as the printer.

What about plain text files?

Use Text to PDF, which builds the PDF directly with page numbers and optional line numbers.

What do the print styles change?

Each style sets the body and heading fonts (from the site's own open-licence font library, with system fonts as fallback for other scripts), text size, line spacing, margins, heading decoration, link and accent colour, quotes, tables and code blocks. Picking one never edits your Markdown, and you can still change paper, margin and size afterwards.