This tool turns a Markdown file into a typeset PDF: headings, bold and italic, links, nested bullet and numbered lists, task lists, block quotes, pipe tables, fenced and indented code, and horizontal rules. Raw HTML in the file is shown as text and never run, and pictures appear only when they are embedded in the file itself, so it suits notes, specifications and READMEs written in Markdown more than pages built from HTML and remote badges.
How to use it
- Drop your .md, .markdown or .txt file on the page, or click to choose it.
- Click Convert to PDF.
- Download the PDF and check the tables, lists and code blocks.
- If something printed as raw symbols, compare it with the supported syntax below, adjust the file and convert again.
Markdown syntax that is rendered
The file is read as UTF-8 and printed with 20 mm margins top and bottom and 18 mm at the sides, in 11 point sans-serif type.
- Headings written with one to six hash marks, or underlined with equals signs or hyphens. They become real heading tags in the PDF, which screen readers use.
- Bold, italic, strikethrough with double tildes, inline code in backticks, and a backslash before a symbol to print the symbol itself.
- Links in the bracket-and-parenthesis form, and web addresses written between angle brackets.
- Bullet and numbered lists, nested by indenting. A numbered list keeps counting across blank lines and starts at the number you wrote first. Task-list items print with an empty or ticked box.
- Pipe tables with a divider row; colons in the divider set left, centre or right alignment.
- Code blocks fenced with backticks or tildes, or indented by four spaces. Block quotes, which may be nested and may contain lists.
What is not supported
Raw HTML is escaped, so a tag typed in the file appears in the PDF as the tag itself. That covers the centred logos, badges, collapsible sections and HTML comments common at the top of project READMEs.
Images are not downloaded and files beside your Markdown are not uploaded, so a picture referenced by web address or by relative path does not appear. A picture written into the file as a base64 data address does.
Also not interpreted: reference-style links, footnotes, maths, diagrams and emoji codes. Bare web addresses are not turned into links. Code is not syntax-highlighted. A front matter block at the top of the file is left out of the PDF.
How pages break
A heading is kept with the text that follows it, a table row is never split across two pages, and a code block is moved whole to the next page when it fits on one.
Long lines inside a code block wrap at the right margin, so the end of a long command is not lost; the wrap is visual only and no characters are added.
Questions
Why does my README show HTML tags as text?
Because raw HTML is deliberately printed, not rendered. If your file is mostly HTML, save it as an .html file and use HTML to PDF instead; otherwise replace the tags with Markdown syntax.
Why are the images missing from the PDF?
Remote images are blocked and local image files were never uploaded with the Markdown. Embed the picture in the file as a base64 data address, which is drawn, or build the page as a single HTML file and convert it with HTML to PDF.
Does it support GitHub Flavored Markdown?
Mostly. Pipe tables, strikethrough, task lists and fenced code blocks work. Footnotes, automatic links from bare addresses, emoji codes and syntax highlighting do not.
How far do I indent a nested list?
Two spaces or more deeper than the item above. Indent a second paragraph or a code block the same way to keep it inside its list item. Up to eight levels of nesting are laid out.
Can I choose the page size, font or theme?
No. There are no options: margins, type and the dark code-block style are fixed. To change the paper size afterwards, use Resize PDF pages.
Can I convert a PDF back to Markdown?
Yes, with PDF to Markdown, which is a separate Premium tool that uses an AI model. Your Markdown file and its PDF are deleted automatically within one hour.