HTML and Markdown to PDF

Paste your HTML or Markdown, or load a file, and choose the paper, margins and typeface. Headings, bold and italic, lists, tables, quotes and code blocks are laid out on clean pages.

Worked examples

A small Markdown note

# Notes, then a bold word, then two bullet points

A page with a large heading, a paragraph with a bold word and two bullets

Headings, lists and tables each get their own spacing.

About HTML and Markdown to PDF

Notes written in Markdown and snippets of HTML often need to end up as a PDF, for printing or for sharing with someone who does not use either. Paste your text or load a file, choose the paper, margins and typeface, and this tool lays it out on clean pages. It works out for itself whether you have given it HTML or Markdown, or you can say.

Headings, paragraphs, bold and italic text, bullet and numbered lists, nested lists, quotes, code blocks, rules and tables are all laid out with proper spacing on A4 or Letter pages, with optional page numbers. Links show their address in brackets after the words. Scripts and styles in HTML are ignored. This is a clean layout of the content, not a copy of how a web page looks: pictures are replaced by their description in brackets, colours and the page's own styling are not used, and letters outside the usual Western alphabet appear as question marks.

How to use HTML and Markdown to PDF

  1. Paste your text, or load a .md, .html or .txt file.
  2. Leave the format on Work it out, or choose Markdown or HTML.
  3. Choose the paper, typeface, text size and margin, and add a title if you like.
  4. Press Make the PDF and download the result.

Common uses

  • Turning meeting notes written in Markdown into a document to share
  • Making a PDF from an HTML email or a snippet of a web page
  • Printing a README or a set of instructions neatly
  • Creating a quick report with headings, lists and a table

Frequently asked questions

How does it tell HTML from Markdown?

If the text starts with a common HTML tag such as a heading, a paragraph or a table, it is treated as HTML. Otherwise it is read as Markdown. Use the format box if it guesses wrong.

Which parts of Markdown are supported?

Headings, paragraphs, bold, italic, code, links, bullet and numbered lists with nesting, task lists, quotes, code blocks, rules and tables with a row of dashes under the header.

Why does my web page look different?

This lays out the content, not the page design. Colours, columns, fonts and pictures from the original are not used, which is why it works well for text and poorly for layouts.

Can I use other languages?

The built in typeface covers Western European letters. Characters from other alphabets are replaced by a question mark.

How big a document can I make?

Documents of hundreds of pages are fine. Very long documents take a little longer to build.