Skip to main content
BookFileKit

EPUB to Clean Markdown & TXT Converter

Extract clean, structured Markdown or plain text from DRM-free EPUB books directly in your browser—ready for Obsidian, Logseq, Notion, or Google NotebookLM.

Processed locally in your browser — 0 bytes uploaded to any server
Supports DRM-free EPUB 2 & 3 up to 100.00 MB

How Browser-Side EPUB Conversion Works

An .epub file is a ZIP archive structured around an Open Packaging Format (.opf) manifest, table of contents (EPUB 3 nav XHTML or EPUB 2 .ncx), and ordered XHTML chapter documents. When you select a book above, an isolated browser Web Worker unpacks the archive in memory, validates chapter reading order from the OPF <spine>, sanitizes inline scripts and styles, and serializes semantic elements—headings, code blocks, tables, blockquotes, and nested lists—into clean Markdown.

Before & After Output Example

Source EPUB XHTML Chapter

<section epub:type="chapter">
  <h1>Chapter 2: Indexing</h1>
  <p>B-trees keep keys <strong>sorted</strong><sup class="noteref"><a href="#fn1">1</a></sup>.</p>
  <pre class="language-sql"><code>CREATE INDEX idx_users_email
ON users (email);</code></pre>
</section>

Converted Clean Markdown (.md)

---
title: "Database Internals"
chapters: 12
---

# Chapter 2: Indexing

B-trees keep keys **sorted**.

```sql
CREATE INDEX idx_users_email
ON users (email);
```

Supported Formats & DRM Limitations

  • Supported: DRM-free EPUB 2 and EPUB 3 files up to 100 MB (250 MB uncompressed safety ceiling), including books that use W3C/IDPF or Adobe standards-based font obfuscation in META-INF/encryption.xml.
  • Not supported: Books locked with Digital Rights Management (Adobe ADEPT, Kindle .azw3/.kfx, Apple FairPlay, or Readium LCP) where the XHTML chapter files themselves are encrypted, as well as image-only comic EPUBs with no text layer.

Troubleshooting Common Issues

  • "Protected by Digital Rights Management" message: Retail stores like Kindle, Apple Books, and some Kobo titles encrypt chapter HTML with account keys. DRM-free editions from Pragmatic Bookshelf, Manning, Leanpub, No Starch Press, Standard Ebooks, and Project Gutenberg convert directly.
  • Obsidian feels slow opening one giant Markdown file: Switch the output format to Per-Chapter ZIP (.zip) to generate individual chapter files plus a linked 00-index.md contents note. Read our full EPUB to Obsidian & NotebookLM workflow guide for details.

Frequently Asked Questions

Are my EPUB files uploaded to a server during conversion?

No. Decompression, XML parsing, and Markdown generation run completely inside a local Web Worker on your device. Even if you disconnect your Wi-Fi after loading this page, the converter continues working normally.

What happens to images inside an EPUB when converting to Markdown?

Because a standalone .md text file cannot embed binary image files without broken relative paths, decorative images are omitted and images with descriptive alt attributes are preserved cleanly as *[Image: description]* markers.

Can I also prepare PDF books on BookFileKit?

Yes—if your textbook is a PDF rather than an EPUB, use the PDF Margin Cropper to resize wide margins for e-ink screens, or PDF Split & Merge to extract individual chapters.