Markdown in, a formatted PDF out
A specification written in Markdown, notes kept as .md, a README that has to be circulated as a PDF: the subset of CommonMark that carries document structure is rendered — heading levels, bold and italic runs, inline code, fenced blocks, bullet and numbered lists, block quotes, pipe tables and links.
- Six heading levels, bold, italic and inline code as real type
- Fenced code blocks keep their monospace face and indentation
- Pipe tables draw with a header row and ruled columns
- Lists nest, quotes indent, links print as text with the address
Drop the file, choose the sheet
- 1
Drop the .md file
The reader walks the document line by line.
- 2
Choose page size, margin and size of the base text
Headings and body scale from the base size.
- 3
Render the Markdown
Blocks are laid out and paginated with the headings kept whole.
- 4
Download and skim
Check a table and a code block — the two places formatting shows up fastest.
Markdown to PDF — common questions
Which Markdown features are missing?
Raw HTML blocks, footnotes, definition lists, task lists beyond their checkbox glyph, images and math. Images are not fetched or embedded, because a browser page converting a text file should not be reaching out to the network on your behalf.
Will my links still work?
The link text is printed and the address follows it in the same run, which is what survives printing. It is not a clickable annotation, because a rendered text layer is a different construction from a link object.
Why do tables sometimes look cramped?
Column widths are computed from the text in each column. A table wider than the page is wrapped rather than shrunk into unreadability, so very wide CSV exports belong in the CSV to PDF tool where you can pick the sheet orientation.
Does it handle long code blocks?
Yes — a fenced block keeps its monospace face and its line breaks, and continues onto the next page if it has to. Long output pastes fine; a 400-line file becomes a lot of pages, which is what you asked for.
Can I get a table of contents?
Not automatically. Generating one needs the final page numbers, which are only known after layout. For a document that size, a word processor export is the better fit.
Related free tools
- PDF to JPGExport pages as images
- JPG to PDFCombine images into a PDF
- Image to PDFPNG, WebP, GIF, BMP or TIFF
- Text to PDFTXT file to a paginated PDF
- CSV to PDFSpreadsheet export as a table
- HTML to PDFWeb page markup to PDF
- All 41 toolsEvery tool is free and unlimited