Extracting DRM-Free EPUB Chapters via the OPF Spine
EPUB e-books follow an Open Packaging Format (.opf) manifest and reading <spine> inside a standard ZIP container. Rather than dumping chapter files alphabetically (chap10.xhtml before chap2.xhtml), ConvertToMD parses META-INF/container.xml, locates the .opf package manifest, follows the publisher-defined reading spine in exact chapter order, and strips XHTML ebook styling into readable Markdown.
The resulting .md file makes technical manuals, DRM-free textbooks, and long essays instantly searchable inside Obsidian, Logseq, or AI study assistants—without proprietary reader lock-in.
EPUB Package Traversal & Limitations
| EPUB Component | How ConvertToMD Handles It | Important Note |
|---|---|---|
META-INF/container.xml | Locates root .opf manifest path automatically | Supports non-standard internal folders |
OPF <spine> reading order | Processes chapters in true book sequence | Prevents chapter scrambling |
| Internal XHTML chapters | Converted via local HTML-to-Markdown engine | Preserves headings, quotes & italics |
| DRM-encrypted EPUBs | Cannot decrypt locked commercial DRM files | Works exclusively with DRM-free EPUBs |
Instant Browser Extraction vs. Calibre CLI
Calibre excels for managing multi-thousand-book libraries and format conversions like MOBI/AZW3. For pulling clean Markdown chapters out of a DRM-free .epub without installing desktop software, ConvertToMD completes the conversion right in your tab.