Server-Powered · Pandoc · Free

Convert Markdown to EPUB
Chapters Included.

Turn a .md file into an e-book. Every top-level heading starts a chapter.

Markdown to EPUB Converter

MD → EPUB

How to Convert Markdown to EPUB Online

1
Upload your Markdown file

Drag & drop or click Browse. Max 10 MB.

2
Start conversion

The file is converted on our server by Pandoc, the open-source document converter. There are no options to choose.

3
Download result

Download your converted EPUB file. Auto-deleted within 4 hours.

Privacy: Files are processed securely and auto-deleted within 4 hours.

Built on Pandoc

Markdown is read and written by Pandoc, using the GitHub-flavoured dialect. Only your file is uploaded; pictures it points to are not fetched.

Auto-Deleted

Files automatically deleted within 4 hours. We never store your documents.

15+ Formats

PDF, DOCX, XLSX, PPTX, ODT, ODS, ODP, RTF, TXT, CSV, HTML, EPUB and more.

Markdown to EPUB: what changes

Markdown is plain text with a few marks for structure: # for a heading, ** for bold, - for a list item. It is what AI assistants, GitHub, Obsidian and Notion write. This page turns such a file into an EPUB e-book with real formatting. The work is done on our server by Pandoc, the open-source document converter.

  • Pictures are not fetched. A Markdown file only points to its pictures. A picture on the web becomes a link to it; a picture stored next to the file on your computer becomes its description text, because only the .md file is uploaded. Pictures embedded in the file itself (data: links) are kept.
  • Headings become chapters. Every top-level heading starts a new chapter, and the book gets a table of contents. The book title is the file name, unless the file starts with a title block.
  • A title block is understood. If the file begins with lines between --- marks (front matter, as Obsidian and static site tools write it), the title, author and date given there are placed at the top of the document, and the other fields are left out.

What we tested, and how it comes out

In the Markdown fileIn the EPUB
# Heading, ## HeadingReal heading styles, so a table of contents can be built
**bold**, *italic*, ~~struck~~Bold, italic and strikethrough text
Lists, nested lists, 1. numbered listsBulleted and numbered lists with indentation
- [x] task listsChecked and empty boxes
Tables written with |A real table; right- and centre-aligned columns stay aligned
Code between ``` fencesA monospaced block, with syntax colours when the language is named
Links and footnotes [^1]Clickable links; footnotes collected at the end
Formulas $E = mc^2$Kept as formulas where the format allows, otherwise as text

Settings on this page

  • There is nothing to set. Upload the .md file (or .markdown) and download the EPUB.
  • A Markdown file can be up to 10 MB, far more than a long book. Files with tens of thousands of separate headings and lists can be too much for one run; split those. The file is deleted from our server within 4 hours.
  • Only have the text, for example an answer copied from an AI chat? Paste it into a text editor, save it with the ending .md and upload that file.

When a different format is the better choice

  • To keep editing with styles, comments and tracked changes, use MD to DOCX.
  • To send or print something nobody should change, use MD to PDF.
  • To publish the text on a website, use MD to HTML.

Quick answers

How do I turn a ChatGPT or Claude answer into an EPUB e-book?

Copy the answer as Markdown, paste it into a text editor and save it as a file ending in .md. Upload it here; headings, lists, tables and code blocks become real formatting.

Which Markdown is supported?

GitHub-flavoured Markdown: headings, emphasis, lists, task lists, tables, fenced code, links and block quotes, plus footnotes and formulas between dollar signs.

Are my pictures included?

Only pictures embedded in the file itself. Pictures on the web become links, and pictures stored on your computer are not uploaded with the .md file.

About the MD Format

Markdown is ordinary text in which a few symbols mark the structure: # starts a heading, ** surrounds bold text, a dash starts a list item, and | separates table cells. The file stays readable as it is, and programs that understand Markdown display it as a formatted document. AI assistants such as ChatGPT and Claude write their answers in Markdown, and GitHub, Obsidian, Notion, Reddit and most documentation tools use it.

John Gruber published Markdown in 2004, with Aaron Swartz, as a way to write for the web without typing HTML. GitHub later added tables, task lists and fenced code blocks (GitHub-flavoured Markdown), and CommonMark gave the format a precise specification in 2014.

Advantages

  • Readable and editable in any text editor
  • Tiny files that work well with version control
  • Understood by AI assistants, GitHub, Obsidian and Notion

Disadvantages

  • No fonts, colours or page layout
  • Pictures are separate files, not part of the document
  • Several dialects that differ in details

About the EPUB Format

EPUB is the standard e-book format outside the Kindle store. Inside, it is a ZIP archive with the chapters as small web pages, the pictures, a style sheet and a table of contents. The text has no fixed pages: a reading app flows it to fit the screen and the font size the reader chooses.

EPUB was published by the International Digital Publishing Forum in 2007 as the successor of the Open eBook format; EPUB 3 followed in 2011. It is now maintained by the W3C and is the format publishers deliver to almost every store.

Advantages

  • Opens in Apple Books, Kobo, PocketBook, Google Play Books and most reading apps
  • Text adapts to any screen and font size
  • Open standard, also accepted by Send to Kindle

Disadvantages

  • No fixed pages, so page references differ between devices
  • Not opened by Word or a browser without extra software
  • Books from stores are usually copy-protected
All Tools

All Document Converters

Currently viewing: MD → EPUB · Click any cell to open the converter.

FROM ↓ · TO → PDF DOCX ODT RTF TXT HTML XLSX ODS CSV PPTX ODP
PDF — Convert Convert Convert Convert Convert Convert ✕ ✕ Convert ✕
DOCX Convert — Convert Convert Convert Convert ✕ ✕ ✕ ✕ ✕
ODT Convert Convert — Convert Convert Convert ✕ ✕ ✕ ✕ ✕
RTF Convert Convert Convert — Convert Convert ✕ ✕ ✕ ✕ ✕
TXT Convert Convert Convert Convert — Convert ✕ ✕ ✕ ✕ ✕
HTML Convert Convert Convert ✕ Convert — ✕ ✕ ✕ ✕ ✕
XLSX Convert ✕ ✕ ✕ ✕ Convert — Convert Convert ✕ ✕
ODS Convert ✕ ✕ ✕ ✕ Convert Convert — Convert ✕ ✕
CSV Convert ✕ ✕ ✕ ✕ Convert Convert Convert — ✕ ✕
PPTX Convert ✕ ✕ ✕ ✕ Convert ✕ ✕ ✕ — Convert
ODP Convert ✕ ✕ ✕ ✕ Convert ✕ ✕ ✕ Convert —

Markdown

MD → DOCX MD → PDF MD → HTML MD → ODT MD → RTF MD → EPUB MD → TXT DOCX → MD PDF → MD HTML → MD ODT → MD RTF → MD EPUB → MD CSV → MD XLSX → MD

E-books

EPUB → PDF EPUB → DOCX MOBI → EPUB MOBI → PDF AZW3 → EPUB AZW3 → PDF FB2 → EPUB DOCX → EPUB PDF → EPUB EPUB → MOBI EPUB → AZW3

Pages, Numbers, XPS and DjVu

Pages → PDF Pages → Word Numbers → Excel XPS → PDF DjVu → PDF DjVu → EPUB