Make an EPUB E-book from Markdown
Write or paste Markdown and download an EPUB 3 e-book: chapters split at your headings, a clickable table of contents, title and author from front matter, and code, tables, images and equations formatted for e-readers. Every file passes EPUBCheck, so it opens in Apple Books, Kobo, Google Play Books, Calibre and Send to Kindle.
- Free, no watermark
- No sign-up
- Files never leave your browser
EPUB 3 with a table of contents, for Apple Books, Kobo, Google Play Books, Calibre and Send to Kindle.
Contents
- Chapter 1: Arrival
- Chapter 2: The Logbook
- Chapter 3: The First Storm
The Lighthouse Keeper
Chapter 1: Arrival
The boat left her on the jetty with two suitcases and a box of books. The lighthouse was taller than the photographs had suggested.
“You’ll get used to the stairs,” the boatman said. “Everyone does, eventually.”
Chapter 2: The Logbook
Every keeper before her had written in the same logbook:
| Year | Keeper | Storms logged |
|---|---|---|
| 1952 | T. Reyes | 14 |
| 1968 | M. Okafor | 22 |
She added her name to the bottom of the list.
Chapter 3: The First Storm
It arrived on the fourth night, exactly as the barometer had warned.
How to Convert Markdown to EPUB in 3 Simple Steps
No installation or registration required. Follow these steps to convert and export your files in seconds.
Write or paste your book
Use # or ## headings for chapters. Add front matter (title, author, lang) or fill in the fields above the preview.
Check the chapters
The preview shows how many chapters were found; open Contents to see their titles.
Download the EPUB
Click “Download .epub” and open it in your reader, or send it to your Kindle.
Known Limitations of Markdown to EPUB
What this converter does not do (yet), and what to do instead.
- No cover image yet; the book has a text title page. Add a cover in Calibre or your publishing platform.
- Images must be embedded in the Markdown; images linked from the web become links.
- MathML support depends on the reader (Apple Books, Kobo and Thorium display it; some readers show the formula as text).
- Footnotes ([^1]) are not turned into EPUB pop-up notes.
Markdown ↔ EPUB Syntax Cheat Sheet & Reference Guide
Side-by-side syntax comparison and quick reference guide. Look up how headings, code blocks, tables, and typography elements translate between Markdown and EPUB. Click any snippet to copy.
Markdown vs. EPUB — Deep Feature Analysis
Understanding the architectural trade-offs, ecosystem compatibility, and optimal workflows for each format.
When to Use Markdown
Best for fast, distraction-free drafting, Git version-controlled documentation, developer pull requests, and multi-format source authoring.
When to Convert to EPUB
Best for delivering formal client assets, corporate stakeholder review, publication on specialized platforms, or high-fidelity visual presentation.
Who Relies on Markdown to EPUB?
Explore how engineering teams, technical writers, and data analysts streamline daily operations.
Reading your draft as a book
Export the manuscript and read it on a phone or e-reader — the change of format makes problems easier to spot.
Course notes for offline reading
Turn lesson notes with code and formulas into an e-book students can read without a connection.
Collecting posts into a book
Paste a series of posts, one per heading, and give readers a downloadable EPUB.
Pro Tips & Edge Cases Handled for Markdown to EPUB
Practical advice for achieving high-fidelity conversions and resolving syntax edge cases.
Developer Pro Tips
- Put a single
# Book Titleat the top and use##for chapters — the title then stays out of the chapter list. - Start each chapter with its own heading; text before the first chapter becomes an “Introduction”.
- Converting a Word manuscript? Use Word to Markdown with images embedded, then paste the result here.
- To go the other way, EPUB to Markdown turns a DRM-free e-book back into editable text.
Edge Cases Resolved Automatically
Frequently Asked Questions About Markdown to EPUB
Comprehensive answers to common technical, formatting, security, and compatibility questions.
pandoc book.md -o book.epub; this page needs no install and shows the chapter list before you download.# headings make one chapter each. If there is a single # heading, it becomes the book title and the ## headings become chapters (or ###, if those are the first to repeat). Text before the first chapter becomes an “Introduction” chapter.title:, author: and optionally lang: between two --- lines — or type them into the Title and Author fields above the preview. Without either, the first heading is used as the title.$ or $$ becomes MathML, which Apple Books, Kobo and Thorium display natively (support varies on other readers). Code blocks keep their line breaks and syntax highlighting colours.How the Markdown to EPUB Engine Works
Every step below runs in your browser tab; your content is never sent to a server.
Pipeline Architecture Specification
Front matter is read for title, author and language, and the Markdown is split into chapters at the first heading level that repeats. Each chapter is rendered with marked (GitHub Flavored Markdown) and highlight.js; LaTeX becomes MathML with KaTeX; embedded images are stored as files; headings get ids so internal links can point across chapters. The HTML is re-serialised as well-formed XHTML (void elements closed, presentational attributes turned into CSS) and packed with JSZip into an EPUB 3 container with a nav document, an NCX and a package document.
Why Choose MDConverter for Markdown to EPUB?
100% Client-Side Privacy & Security Guarantee
Unlike online converters that upload your files to a remote server, MDConverter runs every conversion with JavaScript inside your browser tab. Your documents are never uploaded, so they never leave your machine.
Related Converters
Move Markdown in and out of Word, PDF, PowerPoint, EPUB, OneNote, RTF, HTML, plain text and images.