Description
epub2md converts EPUB ebooks into Markdown files. It works as a command-line tool and as a JavaScript library. By default it writes numbered Markdown files in sequence, and it can merge all of them into a single Markdown file with links that jump between sections. For images it can keep the original online links, or download them and save the copies locally. An autocorrection option handles spacing and punctuation between Chinese and English text. The tool can also show a book's basic information, its structure and chapters, and it can extract only the useful content of an EPUB. As a library, parseEpub accepts a file path, a binary string or a buffer, and returns an object with the structure, sections and info. You can supply your own HTML-to-Markdown function, such as turndown or node-html-markdown. The README is partly in Chinese, and the project is open source on GitHub.…
Highlights
- Converts EPUB to numbered Markdown files
- Merges chapters into one Markdown file
- Keeps or downloads remote images
- Chinese and English spacing autocorrection
- Usable as a CLI or a JavaScript library
Ratings & Reviews
No ratings yet
Be the first to rate Epub2MD.
People also visit

convert-documents-to-markdown
Convert Word (.doc, .docx), PowerPoint (.ppt, .pptx), Excel
Epub2MD FAQ
What does epub2md do?
It converts EPUB ebooks into Markdown, either as numbered files in sequence or as one merged Markdown file.
How do I install it?
Install it globally to use the command-line tool, or add it as a development install for use in code. The README has the commands for both.
Does it handle images?
Yes. You can keep the original online image links, or download the images and save them locally.
Can I use my own converter?
Yes. The parser accepts a custom HTML-to-Markdown function, and the README suggests turndown or node-html-markdown.
What are the best Epub2MD alternatives?
Popular alternatives to Epub2MD include Convert2EPUB, Pdf3md and Pdf2md. See all Epub2MD alternatives





