Markdown to EPUB Converter
How to Convert Markdown to EPUB Online
Drag & drop or click Browse. Max 10 MB.
The file is converted on our server by Pandoc, the open-source document converter. There are no options to choose.
Download your converted EPUB file. Auto-deleted within 4 hours.
Built on Pandoc
Auto-Deleted
15+ Formats
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), thetitle,authoranddategiven 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 file | In the EPUB |
|---|---|
# Heading, ## Heading | Real heading styles, so a table of contents can be built |
**bold**, *italic*, ~~struck~~ | Bold, italic and strikethrough text |
Lists, nested lists, 1. numbered lists | Bulleted and numbered lists with indentation |
- [x] task lists | Checked and empty boxes |
Tables written with | | A real table; right- and centre-aligned columns stay aligned |
Code between ``` fences | A 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
.mdand 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