llmdoc

Markdown in, EPUB out.

Paste Markdown or upload a .md file and download an e-book — chapters from your headings, equations as MathML, code highlighted. Free, 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 EPUB pre-selected

Paste or upload

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

Check the preview

Headings, lists, tables, code, and equations as the reader will see them. The first heading becomes the book's title.

Download the EPUB

An EPUB 3 file built by Pandoc on our server and deleted the moment it is sent. Open it in Apple Books, Calibre, Thorium, or any reader.

What actually happens to your Markdown

An EPUB is a zip of HTML chapters with a manifest and a table of contents. Your Markdown is sent once to our converter, where Pandoc splits it into chapters at the top-level headings, writes each as HTML, renders code with the editorial highlight theme, turns LaTeX into MathML, and packages the result as EPUB 3 with the first heading as the book’s title. The file comes back to your browser and every temporary file is removed. The same document exports to Word, PDF, or HTML with one click, without pasting again.

What converts, and into what

In MarkdownIn the EPUB
# HeadingA chapter. Every top-level heading starts a new one, and the reader's table of contents lists them.
## Heading, ### HeadingSections inside the chapter, in the contents as nested entries.
| pipe | tables |Real tables — most readers reflow them to the screen width.
```python code fences```Monospace blocks with syntax colours, using the same theme as the Word export.
$E = mc^2$ and $$…$$MathML equations: typeset by readers that support it (Apple Books, Thorium, Calibre), shown as text by those that don't.
![image](url)Pictures embedded in the document travel inside the book; linked images are fetched when the book is built.
<div class="callout">Raw HTML passes through — EPUB is HTML underneath, so styled callouts survive.

Common questions

How do I convert a Markdown file to EPUB?

Paste the Markdown into the box at the top of this page, or upload the .md file, check the preview, and click Download EPUB. The book is built with Pandoc on our server from the same document the preview shows, sent back to your browser, and deleted with every temporary file. It opens in Apple Books, Calibre, Thorium Reader, Kobo, and most other readers. Free, no account.

How are chapters decided?

Each top-level heading (a line starting with a single #) begins a chapter, and the book's table of contents lists them with their ## and ### subsections nested underneath. The first heading also becomes the book's title; a document without headings gets its first line as the title and reads as one chapter.

Do equations work in an EPUB?

They are written as MathML, the standard e-book format for math. Readers that support it — Apple Books, Thorium, Calibre's viewer, and recent Kobo firmware — typeset them; a reader without MathML support shows the formula's text instead of a blank. Word export remains the best target for editable equations.

Can I set the author or the cover?

Not yet. The book's title comes from your first heading, and the metadata otherwise stays minimal; Calibre can add an author, a cover, and a series in a few clicks after the export. If cover pages inside the book matter, the Word and PDF exports have a cover option in Document setup.

Is my document stored anywhere?

No. The EPUB build is the one export besides Word that uses our server, because the Pandoc engine does the packaging. The document is read once, the book is generated and returned, and everything is deleted; nothing is logged or kept.

What about Kindle?

Kindle devices and apps accept EPUB through Amazon's Send to Kindle, which converts it on the way in. Text, headings, tables, and code come through; MathML support depends on the Kindle model, so a math-heavy book is better sent as a PDF from the same converter.