EPUB to Markdown
Convert EPUB ebooks to Markdown locally — one section per chapter.
MarkPrep reads an EPUB's spine in your browser and converts each chapter's XHTML to Markdown, giving you a clean, chapter-structured document. Nothing uploads. The token count and chunk view make it easy to prep a whole book for a RAG index.
How to convert epub to markdown
- 1Drop your EPUB file onto the box above, or click to browse. Nothing uploads — the file is read in your browser.
- 2MarkPrep converts it to Markdown locally and shows a live token count for your chosen model.
- 3Check the Preview, adjust the chunk size, and review the Verify tab for anything worth a second look.
- 4Copy the Markdown, download the .md/.zip, or export JSONL chunks for your RAG pipeline.
Format notes & gotchas
- DRM-protected EPUBs can't be read — only unencrypted files.
- Chapter order follows the OPF spine.
- Embedded fonts and images are ignored; text is what you get.
Related converters
Frequently asked questions
Is my file uploaded anywhere?+
No. Conversion runs entirely in your browser tab using WebAssembly. There is no upload endpoint — open your browser's Network tab and watch: nothing leaves the page. The only labelled exceptions are fetching a public URL and optional bring-your-own-key OCR.
How much does it cost?+
Conversion and the entire AI-Ready Pack — token counts, chunking, JSONL export — are free and unlimited, because they run on your hardware. Pro ($4/mo) adds workflow features like the local MCP server, watch folders and saved profiles.
Are the token counts accurate?+
Exact for OpenAI models (GPT-4o, o-series) via their published tokenizer. For Claude and Gemini we show a labelled approximation, because those tokenizers aren't public.
Want it inside your workflow?
Conversion is free forever. Pro ($4/mo) adds the local MCP server so Claude Code converts files on your machine, plus watch folders, saved profiles and encrypted sync.
See pricing