Markdown to PDF

Convert Markdown to PDF with tables, code highlighting and Mermaid diagrams: flowcharts, Gantt charts, mind maps. Live preview. Free, no uploads.

Processed on your device. Files are never uploaded.

No file at hand? with a table, a flowchart, a Gantt chart and a mind map.

Choose a Markdown file first.

How to convert Markdown to PDF

  1. 1Choose a Markdown file (.md) or a Mermaid file (.mmd), or switch to “Write or paste” and type your text.
  2. 2Pick the paper, orientation, margins and font. Mermaid blocks are drawn as diagrams in the live preview.
  3. 3Click “Save as PDF” and choose “Save as PDF” as the printer in the print window.

About this tool

Markdown is how many people write notes, README files, documentation and reports. This tool turns it into a neat, readable PDF you can send to anyone, with headings, lists, task lists, tables, quotes and colored code blocks.

Code blocks marked as mermaid become real diagrams: flowcharts, sequence diagrams, Gantt charts, mind maps, timelines, pie charts and more. A file that is just a Mermaid diagram works too, so it doubles as a Mermaid to PDF converter. Diagrams are kept whole on one page, can be printed in black and white, or each on a page of its own.

Everything is drawn in your browser and nothing is uploaded, so internal docs and private notes stay on your device. The PDF has real text you can select and search.

Frequently asked questions

How do I add a diagram?

Put Mermaid code in a fenced code block with the word mermaid after the opening backticks, for example ```mermaid on the first line, then flowchart LR and your boxes and arrows, then ``` to close it. Click “Try an example” to see a flowchart, a Gantt chart and a mind map.

Which diagrams are supported?

All the diagram types of Mermaid: flowcharts, sequence, class, state and entity–relationship diagrams, Gantt charts, mind maps, timelines, user journeys, pie and XY charts, quadrant charts, Git graphs, Kanban boards and more.

Which Markdown features work?

GitHub-flavored Markdown: headings, bold and italic, links, lists and task lists, tables, quotes, horizontal lines, code blocks with syntax highlighting for common languages, and plain HTML inside the text. Front matter at the top of a file is left out, and its title is used as the file name.

Why are my pictures missing?

Pictures that link to a website or to another file on your computer can’t be loaded, so that nothing is fetched from elsewhere. Pictures embedded in the text as data: URLs are included. To combine a document with photos, convert both and use Merge PDF.

Can I make a page break?

Yes. Put <div style="break-before: page"></div> on its own line where the new page should start. With “Each diagram on its own page” turned on, every diagram starts a new page automatically.

Why does a print window open?

Your browser has a very good PDF engine built into its print function. Using it gives a real PDF with sharp, selectable text and diagrams, without sending your document anywhere. Choose “Save as PDF” as the printer.

Are my files uploaded anywhere?

No. Your files are processed right here in your browser, on your own device. They are never uploaded to our server or anywhere else, so nobody but you can see them. You can even disconnect from the internet after the page loads and the tool keeps working.

Is it really free?

Yes. There are no paid plans, no watermarks on your results, no sign-ups and no daily limits. Because the work happens on your device, the service costs very little to run. It is supported by voluntary donations.

Related tools

Did this save you some time?

PDF Putty is free, with no ads, no sign-up and no limits. A small donation, once or monthly, helps cover hosting and new tools.