llmdoc

Markdown in, PDF out.

Paste Markdown or upload a .md file, preview the exact A4 page, download the PDF — math renders as real equations, diagrams included. Free, in your browser, no signup.

Nothing uploads when you paste. The next page shows the exact document before you download it.

or drop a file

Drop your Markdown file here

or browse — .md, .markdown, .txt · opens in the converter with PDF pre-selected

Want the full editor first? Open the converter →

Paste or upload

Paste Markdown into the box above, or drop a .md file — both open the same live editor with PDF pre-selected.

Preview the exact page

The right-hand pane is the page you'll download — A4, smart page breaks, headings, tables, highlighted code, LaTeX math, and Mermaid diagrams, nothing regenerated.

Download the PDF

One click. The PDF renders entirely in your browser — the document never touches a server.

What actually happens to your Markdown

The preview is the document. Your Markdown is parsed in the browser for GitHub-Flavored tables, fenced code, LaTeX math, and Mermaid fences, then laid out on A4 pages with the page breaks already decided: a heading is kept with the text under it, and every cut is checked against the rendered pixels so no line is sliced in half. When you click Download PDF, those same pages are captured and written into a compressed PDF, entirely on your machine. Nothing is uploaded, nothing is logged, and the export works offline once the page has loaded. A typical ten-page document takes a few seconds; the file is usually under a megabyte, because the pages are compressed rather than stored as raw screenshots. Word export is the one format that uses a server, since editable equations need the Pandoc engine; if you need a .docx as well, switch formats without pasting again.

What converts, and how it looks

Each Markdown construct and what it becomes on the page.

In MarkdownIn the PDF
# Heading, ## HeadingSerif headings on a proper scale; a heading never strands alone at the bottom of a page.
| pipe | tables |Ruled tables with the alignment you specified; wide tables scroll in the preview and shrink to fit the page.
```python code fences```Monospace blocks with the same syntax colors as the preview.
$E = mc^2$ and $$…$$KaTeX-rendered equations, crisp at any zoom: fractions, roots, matrices, Greek letters.
```mermaid flowcharts```Flowcharts and sequence diagrams rendered as vector graphics.
![image](url)Images embedded in the page, fetched and inlined before rendering.
Long documentsPage cuts are verified against the rendered pixels, so a line of text is never sliced in half.

Common questions

How do I convert a Markdown file to PDF?

Paste the Markdown into the box at the top of this page, or upload the .md file, and check the live A4 preview: it is the page you will download, rendered by the same engine, with page breaks already placed. Click Download PDF and the file is generated in your browser in a few seconds; nothing is sent to a server. The result opens in any PDF reader, prints at A4 without scaling, and keeps text selectable. Free, no account, and it works offline once the page has loaded.

Does LaTeX math render in the PDF?

Yes. Inline $…$ and block $$…$$ formulas, and the \(…\) and \[…\] delimiters ChatGPT produces, render through KaTeX and export exactly as previewed — fractions, roots, sums, integrals, matrices, and Greek letters all included, as vector graphics that stay sharp at any zoom level. This is the part most Markdown-to-PDF tools get wrong: they either print the raw LaTeX source or rasterize the equation into a blurry image. If a formula fails to parse, it is shown in red in the preview so you can fix the source before exporting.

Do Mermaid diagrams appear in the PDF?

Yes. A ```mermaid code fence renders as a diagram in the preview, and because the PDF captures the preview, flowcharts, sequence diagrams, and Gantt charts arrive as crisp graphics on the page. Very wide diagrams are scaled to the page width. If Mermaid reports a syntax error, the fence is shown as code instead so the export never fails.

What page format does the PDF use?

A4 portrait with comfortable margins, a readable serif for body text, and content-aware page breaks: headings stay with the paragraph that follows them, and a block that is taller than a page continues across the break instead of leaving a large gap. Page cuts are checked against the rendered pixels before the file is written, so a line of text cannot end up split between two pages. The preview shows the same pages, so what you see is what you print.

Is my document uploaded anywhere?

No. The PDF path is fully client-side: parsing, rendering, and PDF generation all happen in your browser, and the document never leaves your machine. It works offline once the page has loaded. Only the Word export uses a server, because editable Word equations need the Pandoc engine; PDF, HTML, and Markdown never do.

Can I get Word, HTML, or other formats from the same Markdown?

Yes. The same converter exports DOCX with editable Office Math equations, self-contained HTML, EPUB for e-readers, PowerPoint slides, a Google Docs handoff, and a copy-for-Notion mode. Switch the format with one click; the document you pasted stays loaded. For a folder of files, the batch converter takes up to 20 at once and returns one ZIP.