webcapture Get a free key

Markdown to PDF: paste your markdown, get a PDF

Paste markdown. Get a PDF with real headings, tables and code blocks: selectable text, not a picture of text. Free, no account, no watermark.

A closed subset: headings, paragraphs, emphasis, inline and fenced code, links, images, blockquotes, one level of lists, rules and pipe tables. Raw HTML passes through. The whole request is capped at 1 MB.

Needed only when the document references relative images. Absolute image URLs need nothing.

Paper

A real Chromium renders your request, usually in seconds.

Free fair use: a few renders per minute and ten per day per address, one shared pool across every tool. For anything automated, the API includes 50 free renders a month.

Public http(s) references only. Private and local addresses are refused; asset bot protection, unreachable pages, and thin content can prevent output. Target limits and render errors.

How it works

  1. The markdown becomes HTML. A closed-subset parser in the render worker turns headings, lists, tables and code fences into the elements they describe, and wraps the result in a print stylesheet with a reading measure and sane code and table defaults.
  2. Chromium prints the result. The same headless browser every other page here uses lays the document out and paginates it, so page breaks, margins, paper size and selectable text come from a browser's print pipeline rather than from a canvas.
  3. You get a PDF. Text stays text: searchable, copyable, readable by a screen reader and by whatever indexes your documents later.

Why not a "markdown to PDF" library?

The popular browser libraries rasterise: they draw the HTML onto a canvas, slice the image across pages, and wrap the result in a PDF. The output looks right until someone tries to select a sentence, search the file, or copy a code block out of it. It is a picture of a document.

Doing the conversion on a server with a real print engine costs one POST and keeps the document a document. It also means the print CSS that makes a PDF behave (page breaks, orphans and widows, headings that stay with their paragraph) actually applies.

The subset, exactly

Supported: ATX headings (# to ######), paragraphs, bold, italic, inline code, fenced code blocks with an optional language, links, images, blockquotes, one level of ordered and unordered lists, horizontal rules, and GitHub-style pipe tables. Raw HTML passes through untouched, so a document that embeds a styled <div> prints that div.

Not supported, and rendered as their literal text rather than silently dropped: setext headings, reference-style links, footnotes, definition lists, nested lists, task-list checkboxes, and strikethrough. If your document leans on those, render it to HTML with your own toolchain and paste that instead, or send the URL.

The base URL matters for images

Pasted markdown has no origin, so a relative image path has nothing to resolve against. Fill the base URL with the document's home directory and the images load; a document whose markdown already carries absolute image URLs needs nothing. The same rule and the same field as the HTML to PDF tool.

Who uses this

Release notes and READMEs that need to be attachable, docs folders exported for a client who wants a file, design notes and meeting minutes assembled from a repo, and agents that hold their output as markdown and need a document at the end. The rendered bytes are the same engine the keyed API sells, a curl away: the curl shown after a successful render is the exact call, and a free key does 50 renders a month.

The limits that actually bite

One level of list nesting, no footnotes, and no front-matter stripping, all listed above. The whole request is capped at 1 MB, a document with almost no readable text is refused, and the anonymous allowance is a few renders per minute and ten per day per address, one shared pool across every tool on this site. Paper sizes here are A4 and Letter; margins, page numbers and encryption are keyed-surface parameters.

Questions

Which markdown does it support?

A closed subset, listed in full on the page below: ATX headings, paragraphs, bold and italic, inline code, fenced code blocks, links, images, blockquotes, one level of ordered and unordered lists, horizontal rules, and GitHub-style pipe tables. Raw HTML passes through, so an embedded styled div prints. Setext headings, reference links, footnotes and nested lists are not supported.

Why is my nested list flattened?

The subset carries one level of list nesting; an indented child line is read as a paragraph continuation. Flatten the list or express the nesting as headings if the hierarchy matters on paper.

My front matter shows up at the top of the PDF.

Front matter is not stripped. The leading dashes are read as a horizontal rule and the YAML lines as a paragraph. Remove the block before rendering, or wrap it in a fenced code block if you want it visible as text.

Do images and links survive?

Links become real link annotations in the PDF. Images load from absolute URLs, or from relative paths against the base URL you supply; without one, a relative image has no origin to resolve against and is dropped by the renderer.

When fair use is too small

Every tool here is the free slice of the same API: paste a URL, HTML or markdown, get the file, a few renders a minute and ten a day. When a task outgrows fair use, mint a key: the first 50 renders a month are free, no credit card, and the keyed surface takes the same inputs plus the rest of the parameter set.