llm2doc

Markdown to PDF converter. Typeset, with real text.

Paste Markdown or upload a .md file, check the preview, download a typeset PDF — text you can search and copy, math as real equations, diagrams included. Free, no signup.

Checked

Nothing uploads when you paste. The next page shows the document; Download PDF sends its text once to our converter, which keeps nothing.

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 →

How do I convert Markdown to PDF?

Paste the Markdown into the box above, or drop the .md file on it, and the preview shows it in the fonts and page width chosen in Document setup, where you also pick A4 or US Letter, the margins and page numbers. Headings, tables, highlighted code, typeset LaTeX formulas and Mermaid fences drawn as diagrams all show there, so you fix a problem before you download rather than after. A cover page and a contents list are one switch each when the document is going to someone. Click Download PDF and the text goes once to our converter, which keeps nothing; the pages are then typeset in your browser, with real text you can select, search and copy, links that open and bookmarks from the headings. There is no account and no watermark. A VS Code extension or Pandoc does the same job from a file on disk, but needs an install, and Pandoc a LaTeX engine as well.

Paste or upload

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

Check the preview

The right-hand pane shows the document in the PDF's fonts and page width — headings, tables, highlighted code, LaTeX math, and Mermaid diagrams — so you fix it before you download.

Download the PDF

One click. The text goes once to our converter, which keeps nothing, and the pages are typeset in your browser, with text you can select and search.

What actually happens to your Markdown

Your Markdown is parsed in the browser for GitHub-Flavored tables, fenced code, LaTeX math, and Mermaid fences, and shown in the preview with the fonts and page width of your Document setup. When you click Download PDF, Mermaid diagrams are drawn in your browser and pictures stay there; the text, with a short name in place of each picture, goes once to our converter, where Pandoc writes it out for the typesetter and sends it back. Nothing is logged or stored. Typst, a typesetting engine compiled to WebAssembly, then sets the pages in your browser, with Noto fonts, served from llm2doc.app, for the scripts the document uses — for Chinese, Japanese and Korean only the parts holding its characters — and STIX Two Math for formulas. It chooses the line and page breaks itself: a heading stays with the text under it, and no break falls through a line. What you get is real text you can select, search and copy, links that open and bookmarks from the headings, in a file far smaller than pictures of the pages would make. A document in a script with no font here, or one exported while the converter is busy or out of reach, takes the older route instead — pages drawn as pictures of the preview with an invisible text layer, made entirely in your browser — and the export says so. Word uses the same converter for its editable equations; if you need a .docx as well, switch formats without pasting again.

Other ways to a PDF, and when they fit

RouteGood forWhat to expect
This pageA document you want to read through before it goes out: notes, a report, an AI answer, a README.Nothing to install, any device. Math, Mermaid, cover page, contents, five paper sizes. Typeset with real text that selects, searches and copies; the text goes once to our converter, which keeps nothing.
A VS Code extensionFiles you already edit in VS Code, converted where they live.An install, and a headless browser it downloads on first use. Math and diagrams depend on the extension and its settings.
Pandoc on the command lineMany files, a build script, a typeset look.Pandoc plus a LaTeX engine (several hundred megabytes). Real vector text; a raw HTML block or a Mermaid fence needs extra filters.
Print from a Markdown viewerOne quick copy for yourself.The browser decides the page breaks; headings can strand at the foot of a page and wide tables are cut at the margin.

What converts, and how it looks

Each Markdown construct and what it becomes on the page.

In MarkdownIn the PDF
# Heading, ## HeadingHeadings 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 are fitted to the page width, a long one repeating its header row.
```python code fences```Monospace blocks with the same syntax colors as the preview.
$E = mc^2$ and $$…$$Typeset equations in STIX Two Math, sharp at any zoom: fractions, roots, matrices, Greek letters.
```mermaid flowcharts```Flowcharts, sequence diagrams, and charts drawn in your browser and set on the page as vector pictures, their labels real text.
![image](url)Images fetched by your browser and embedded in the page; only their names go to the converter.
Long documentsPage breaks fall between lines of text, never through one, and stay out of a formula where they can.

Habits that give the cleanest pages

Name the code's language

Write it after the opening fence — ```python, ```sql — and the block prints in color. A fence without one stays plain monospace: the converter does not guess the language.

Give pictures a description

A picture is fetched from its address while the PDF is made; when its host refuses the browser, our server fetches it from that address once. One that cannot be had at all prints as its description, so write one: ![Quarterly revenue](…).

Full-size fractions in a sentence

Inline math is scaled to the line, so a fraction inside running text comes out small. Write \dfrac where it has to read at full size, or give the formula a $$ … $$ line of its own.

Know which PDF you get

Text is typeset as vector glyphs, sharp at any zoom, Chinese, Japanese and Korean included. A document in a script with no font here comes out as pictures of the pages at 192 dots per inch with an invisible text layer that still selects and searches — as does any document our converter cannot take (too long, busy, or out of reach). The export says when.

Leave the tab open

The pages are typeset by your own browser. The first PDF also loads the typesetting engine, about 7 MB, once; after that a long document dense with formulas takes longer than a short one, and a phone longer again. The download starts when the file is done.

Common questions

Is the text in the PDF real text?

Yes. The pages are typeset by Typst, an engine that runs in your browser, so every letter is a vector glyph — sharp at any zoom, selectable, searchable and copyable — in Latin, Greek, Cyrillic, Arabic, Hebrew, the Indian scripts, Thai, Chinese, Japanese, Korean and many more, and the file stays small. Formulas are typeset too; copied, they read as math letters rather than TeX, and each keeps its TeX as alternative text for screen readers. To change the wording, change the Markdown and download again, or take the Word export, which is fully editable.

Does LaTeX math render in the PDF?

Yes. Inline $…$ and block $$…$$ formulas, and the \(…\) and \[…\] delimiters ChatGPT produces, show in the preview through KaTeX and are typeset in the PDF in STIX Two Math — fractions, roots, sums, integrals, matrices, and Greek letters all included, as vector glyphs that stay sharp at any zoom. 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 the PDF sets each one on the page as a vector picture, drawn in your browser, its labels real text — flowcharts, sequence diagrams, and Gantt charts alike. 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.

Can I choose US Letter or A4, landscape, margins, and page numbers?

Yes. A4 is the default; US Letter, Legal, A3 and A5, and landscape pages, are one click in Document setup, next to three margin widths, a serif or sans body at 10, 11 or 12 points, line spacing, page numbers in the footer, a cover page with title, author and date, and a contents list built from your headings. Page breaks are the typesetting engine's own, whatever the size: headings stay with the paragraph that follows them, a long table continues on the next page with its header row, and no break falls through a line of text. The preview shows the document in the chosen fonts and page width on one continuous sheet; the pages themselves are made when the PDF is typeset.

Is my document uploaded anywhere?

Its text is, once. To typeset the PDF, the Markdown goes to our converter, where Pandoc prepares it for the typesetter and sends it back; nothing is logged or stored, as with the Word export. Pictures stay in your browser — only their names are sent — and the pages are typeset there. When the converter is busy or cannot be reached, offline included, the PDF is drawn as pictures of the pages in your browser instead. The preview, HTML and Markdown never leave your browser.

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.