Technical books from publishers like Pragmatic Bookshelf, Manning, No Starch Press, Leanpub, and Standard Ebooks are distributed as DRM-free EPUB archives. While EPUB is great for reading on a Kobo or Apple Books, it is awkward when you want to search across your personal reference library in Obsidian, quote code listings in Logseq, or load specific chapters into Google NotebookLM for study synthesis.
Most online file converters require uploading your entire .epub file to a remote cloud server—which is slow on image-heavy books and undesirable for personally watermarked or purchased reference titles. Because an EPUB is simply a structured ZIP archive containing XHTML chapters, package metadata, and stylesheets, your web browser can parse and convert the entire book locally in seconds.
Single Markdown File vs. Per-Chapter ZIP: Which Should You Pick?
Different knowledge-management tools handle book-length documents very differently:
Choose Single Markdown (.md) when:
- Importing into Google NotebookLM: NotebookLM enforces limits on the number of separate sources per notebook, while handling long individual Markdown documents up to hundreds of thousands of words cleanly. One
.mdfile lets you query an entire reference book as a single source. - Full-book grep or archive search: Keeping one self-contained
.mdfile with YAML frontmatter makes regex search effortless.
Choose Per-Chapter Archive (.zip) when:
- Building an Obsidian or Logseq vault: Very large single Markdown files (400+ KB of text and code blocks) can feel sluggish in live-preview editors, and atomic linking works far better when each chapter has its own note (
01-introduction.md,02-data-models.md) plus a00-index.mdMap of Content (MOC). - Importing into Notion: Notion’s Markdown importer struggles with massive single-file books, whereas importing individual chapter files keeps headings, tables, and fenced code blocks intact.
Cleaning Up Footnotes and Hyperlinks
Academic and non-fiction EPUBs often contain hundreds of inline footnote superscripts ([1], [2]) and internal cross-reference anchors (ch04.xhtml#sec-2). When converted literally into Markdown, those internal .xhtml relative links break outside the EPUB container and clutter raw text.
- Strip footnote refs: Enable this toggle when preparing study material for NotebookLM, LLM context windows, or text-to-speech readers so inline citation numbers don’t interrupt sentences.
- YAML frontmatter: Keeps
title,author,language, andchaptersstructured at the top of the file for Obsidian Properties / Dataview queries.
Why Some EPUBs Have encryption.xml Without Having DRM
A common frustration with simplistic EPUB tools is seeing legitimate, DRM-free books rejected just because META-INF/encryption.xml exists inside the archive.
Under the W3C EPUB 3 specification, publishers frequently embed licensed display fonts using IDPF or Adobe font obfuscation (http://www.idpf.org/2008/embedding or http://ns.adobe.com/pdf/enc#RC). Font obfuscation scrambles the first ~1,000 bytes of .otf/.ttf font files so they can’t be extracted as standalone desktop fonts—the actual XHTML book chapters remain 100% unencrypted.
BookFileKit inspects each <EncryptedData> entry inside META-INF/encryption.xml:
- If only font files are obfuscated, the converter safely ignores the font binaries and extracts every chapter normally.
- If the XHTML content files themselves are encrypted with Adobe ADEPT, Apple FairPlay, or Readium LCP DRM, the tool stops cleanly and explains why encrypted chapters cannot be read.