EPUB to Markdown
Convert DRM-free EPUB e-books into one clean Markdown file. Chapters follow the book's reading order, with headings, emphasis, lists, tables and links intact.
- Reading order
- Chapters as headings
- DRM-free EPUB 2 & 3
Web pages are reduced to the main article: menus, cookie banners and footers are removed. Public Google Docs, Sheets, Slides, Drive, Dropbox and GitHub links work too.
What the EPUB converter keeps
- Reading order: chapters follow the book's spine, not the file order inside the archive.
- Headings: chapter and section titles.
- Text formatting: italic, bold, lists, block quotes, tables and links.
- Metadata: title and author (in the API's JSON response).
Example output
A two-chapter EPUB comes out as:
# Chapter One
It was a *dark* and stormy night.
# Chapter Two
The end.How to convert EPUB to Markdown
- Drop a DRM-free .epub file above.
- The chapters are converted in reading order.
- Copy or download the Markdown for notes, study material or an LLM.
EPUB to Markdown API
Long books: the API converts EPUBs up to your plan's size limit and can return RAG chunks with includeChunks=true.
curl -X POST "https://anytomarkdown-pdf-to-markdown-and-document-parser-api.p.rapidapi.com/v1/convert/raw" \
-H "X-RapidAPI-Key: YOUR_RAPIDAPI_KEY" \
-H "X-RapidAPI-Host: anytomarkdown-pdf-to-markdown-and-document-parser-api.p.rapidapi.com" \
-F "file=@book.epub" Frequently asked questions
Can it convert DRM-protected e-books?
No. Only DRM-free EPUB files can be read.
Are images included?
Image alt text is kept; image files are not uploaded anywhere.
Is there a size limit?
The free tool accepts EPUB files up to 5 MB. The API accepts up to 100 MB.
Related converters
PDF to Markdown
Headings, tables and lists from any PDF, with OCR for scans.
Open converter →Word (DOCX) to Markdown
DOCX, DOC, RTF and ODT with styles, lists, tables and footnotes.
Open converter →HTML to Markdown
Paste HTML and get clean Markdown.
Open converter →Token counter
Count GPT-4o, GPT-4.1 and GPT-5 tokens in any text.
Open converter →