Markdown to PDF
Professional PDFs from Markdown.
HTML to PDF is a pain. You run a headless browser and keep print styles working after every update. legivel takes your Markdown and sends back a typeset PDF, from one API call, the editor or your AI agent. Nothing to install, 100 free documents a month.HTML to PDF is a pain to keep running. legivel typesets your Markdown instead, from one API call. 100 free documents a month.
Free for 100 documents a month, no card. Paid plans from $19 a month. No document storage.
Typeset, not printed
The same Markdown, two PDFs.
A common Markdown converter turned this file into a web page, and a browser printed it. legivel set the same file as a document. Below, page 1 of one file, both ways.

- The formula stays as source text.
- The diagram stays as code.

- The formula is set as math.
- The diagram is drawn as vector art.
- The command wraps inside the page.
What usually breaks
What goes wrong in a PDF, and what legivel does about it.
- Contents
- Often goes wrong: No contents page with page numbers
- With legivel: Page numbers, leader dots and bookmarks
- Page breaks
- Often goes wrong: A diagram split across two pages
- With legivel: Each diagram on a page of its own, on request
- Math
- Often goes wrong: Left as source text in a file printed as it is
- With legivel: Set as math, in vector glyphs
- Diagrams
- Often goes wrong: Mermaid left as a code block
- With legivel: Drawn as vector art where you wrote them
- Fonts
- Often goes wrong: Different fonts on every machine
- With legivel: Embedded in the file, 24 writing systems
| Topic | Often goes wrong | With legivel |
|---|---|---|
| Contents | No contents page with page numbers | Page numbers, leader dots and bookmarks |
| Page breaks | A diagram split across two pages | Each diagram on a page of its own, on request |
| Math | Left as source text in a file printed as it is | Set as math, in vector glyphs |
| Diagrams | Mermaid left as a code block | Drawn as vector art where you wrote them |
| Fonts | Different fonts on every machine | Embedded in the file, 24 writing systems |
Three ways in
Write it, call it, or let an agent do it.
Editor
Write or paste Markdown, preview every page, download the PDF. Nothing to install.
- Preview every page before you download
- Upload a .md file or paste text
- Light or dark document, every feature as a switch
REST API
Send Markdown in one request; the finished PDF comes back in the response.
curl -X POST https://api.legivel.com/v1/render \
-H "Authorization: Bearer $LEGIVEL_API_KEY" \
-H "Content-Type: text/markdown" \
--data-binary @report.md \
-o report.pdfMCP server
Give Claude Code, Codex, Claude Desktop or any MCP client a render tool backed by your account.
claude mcp add --transport http legivel https://api.legivel.com/mcp --header 'Authorization: Bearer ${LEGIVEL_API_KEY}'codex mcp add legivel --url https://api.legivel.com/mcp --bearer-token-env-var LEGIVEL_API_KEYSaved templates
Invoices and packing slips from your data, one call each.
An order has five line items or fifty. The template you fill today cannot take a varying number of line items.
Start from an invoice, a letter, a shipping label or a certificate, and put fields where the data goes. The editor shows the page the way the PDF prints it.
Then each document is one API call, or one tool call from your agent. JSON fills the fields, and a list or CSV fills the table, one row per item.
Templates you save, with their sample records, are stored encrypted until you delete them.
PlaygroundOpen in editor
Press Convert to see the PDF.
Who it is for
Documents people send, print and file.
Developers
Invoices, statements and reports generated by your code, the same way every time, from one API call.
Teams and writers
Papers, filings, handbooks and itineraries written in Markdown and delivered as documents people take seriously.
Features
Everything renders. Every feature is a switch.
The Markdown you write, set as a document. Every feature can be switched off for one document; the output then falls back to plain text and the call never fails.
Text and structure
- Tables that repeat their header on every page
- A table of contents with page numbers, bookmarks for every heading
- Footnotes, task lists with real checkboxes, alerts
- Book line breaking, curly quotes, no stranded lines
Math and diagrams
- LaTeX math, inline and on its own line, as vector glyphs
- 33 kinds of Mermaid diagram and chart
- A page of its own for a wide diagram, on request
- Code in 23 languages, light or dark per block
Codes and graphics
- 21 barcode types: QR, EAN, Code 128, Data Matrix, PDF417
- Styled QR codes with a logo, still scannable
- SVG drawings that stay sharp at any zoom
- Images in the document or loaded from the web
Languages
- Fonts for 24 writing systems, embedded in the file
- Arabic and Hebrew right to left, mixed with Latin
- Chinese, Japanese and Korean line breaking
- Hyphenation in 69 languages, color emoji
Built for production
The parts you need once it runs every day.
Retries without double charges
Send an idempotency key and a retried request costs nothing.
Straight to your storage
Give a pre-signed URL and the PDF is uploaded there, never kept here.
Your own seal
Seal a PDF with your own certificate on paid plans.
Stable errors
Every refusal has a code you can branch on and a sentence you can show.
Usage you can read
One call reports the month and each key's share of it.
Clear limits
Pages, Markdown size and images per plan, stated up front.
Your documents
Documents never stored
We generate the PDF in memory and never store the documents you convert or your PDFs.
Images handled with care
Images from the web are loaded for that one conversion and never kept.
Pricing
Start free. Pay when it is part of your work.
Questions
Something else? support@legivel.com
Do I need an account?
Not to try it. The playground on this page and the Convert page make a watermarked PDF without an account. A free account gives you 100 documents a month without a watermark, no card.
What Markdown does legivel support?
CommonMark plus the GitHub extensions: tables, task lists, footnotes, definition lists, alerts and strikethrough. Beyond that, a [TOC] marker that renders with real page numbers, front matter that becomes the PDF's document information, code colored in 23 languages and color emoji.
Do Mermaid diagrams and LaTeX math really render?
Yes, as vector drawings, not as screenshots. Thirty-three kinds of Mermaid diagram and chart are drawn directly, where they are written in the text; on request, each diagram gets a page of its own, sized to fit and linked from the text. LaTeX math is drawn the same way, inline and on its own line.
Why does this look different from other converters?
A common converter turns your Markdown into a web page, and a browser prints that page. The printout has no contents page with page numbers. A diagram can be split across two pages. legivel typesets the document instead. You get a contents page with page numbers. On request, each diagram gets a page of its own.
Can I automate it, or use it from an AI agent?
Yes. Send your Markdown in one request and the finished PDF comes back, so it fits any script or build step. AI agents use legivel the same way through its MCP server. The editor on this page is that same converter with a preview in front of it.
What happens with my images?
Your images work out of the box. Images embedded in the document always render. Images linked from the web are loaded too, for signed in accounts, over a secure connection, each time you convert. We keep none of them: the images, your document and the finished PDF leave our server the moment the PDF is delivered. Images inside a template you save are stored with it, encrypted. How we load images.
What does it cost?
Free gives you 100 documents a month with no card and no watermark. Paid plans start at $19 a month for 1,000 documents. See plans.
Your next document, as a proper PDF.
100 documents a month free, no card and no watermark on what you download.