15 / Extract · EPUB → Markdown

EPUB to Markdown converter

Your book, ready to edit.

Convert selected EPUB chapters to one Markdown file for notes, editing or version comparison. Preview the generated Markdown and control inserted chapter headings before downloading. Text structure such as lists, code and tables can survive, but images, layout and some links or footnotes need review in the destination editor.

  • DRM-free EPUB 2 or 3, up to 100 MB
  • Runs in this tab; nothing is uploaded
  • One .md file, chapters split by ---
All tools
Opening your workspace…

At a glance

EPUB to Markdown quick specs

Verified
Input
DRM-free EPUB 2 & EPUB 3 (.epub)
Output
Single .md file with chapters separated by ---
Scope & limit
Up to 100 MB per book
Processing
Local in your browser — files never upload
Price & account
Free; no sign-up or install required
Key boundary
Exports clean text structure; images are referenced or omitted rather than embedded

From file to finished

How to convert an EPUB to Markdown

  1. Drop an .epub on the page or press Choose an EPUB. The picker accepts only .epub files and refuses anything over 100 MB; Try a sample opens the bundled book if you want to see the flow first.

  2. Wait for the sidebar to list the chapters with numbers and titles, and for the count below it to read “N of M selected.” Non-linear chapters arrive unchecked; linear chapters are all selected.

  3. Use All, None or Filter chapters to reach the rows you want, then tick each chapter to include. The filter only hides rows, so confirm the count before moving on.

  4. Leave Add a heading per chapter checked to put each title above its text, or clear it to keep only headings already in the XHTML. This choice applies to every selected chapter.

  5. Press Convert to Markdown, read the preview and the “N chapters · size Markdown” line, then press Download .md. The status line confirms the file is ready; an empty selection stops with a sentence.

Formats and inputs

Supported EPUB formats and inputs

EPUB packages web-style chapters and their resources; Markdown is a text notation interpreted by another application. This converter uses GitHub Flavored Markdown extensions, so tables and strikethrough may render differently in a basic Markdown viewer. EPUB 2 versus 3 is less important here than the chapter markup. Image references and footnote anchors do not become a portable asset collection or complete Markdown footnotes.

InputSupportWhat to expect
EPUB 3 with a navigation documentBest fitChapter labels come from the nav links; the spine decides order. A normal reflowable book converts with headings, lists, tables and fenced code intact.
EPUB 2 with an NCX table of contentsWorksThe NCX supplies chapter labels when no EPUB 3 nav exists. If a label is missing, the first h1 or h2, the document title, then “Chapter N” is used.
A book with non-linear spine itemsWorksThose chapters are listed but start unchecked. Tick them if you want an appendix, a pop-up page or a notes section in the export; the count updates immediately.
A fixed-layout or image-heavy bookPartialAny XHTML chapter with text is converted, but every image is dropped along with its alt text, and the page layout is not represented. A picture-only page leaves blank space.
A book with footnotes or endnotesPartialA reference becomes a link such as [1](#fn1) and the note text stays where it sat. The output has no id anchors, so the link points at nothing and the notes are not moved to the end.
Tables with merged cellsPartialThe GFM table rule reads rows and cells but ignores colspan and rowspan. A simple two-column table survives; a layout table with merged cells loses the merge and may read column by column.
A DRM-protected or encrypted EPUBNot supportedEncrypted reading content is refused when the book opens. Obfuscated fonts are tolerated, but the tool does not remove DRM from a store-bought book.
A file over 100 MB or a ZIP64 archiveNot supportedThe picker stops a file over 100 MB before reading it. The opener also refuses ZIP64, multi-part archives and books that expand beyond 250 MB or 10,000 entries.

What it can do

What EPUB to Markdown can do

Tick the chapters you want to export

The sidebar lists every chapter with its number and title, plus All, None and a Filter chapters box. Chapters the publisher marks as non-linear start unchecked, and the count reads “N of M selected.” Filtering only hides rows; it does not change the selection. Check the count before you convert, because a filtered list can hide a chapter you meant to include.

Decide whether each chapter gets a heading

Add a heading per chapter is checked by default and writes “# ” plus the chapter title above the body. If the XHTML already opens with the same h1 or h2, you get two headings, so clear the box or delete one line after conversion. With the box clear, only headings that exist inside the chapter remain.

Read the result before you commit to a file

Convert to Markdown fills a read-only textarea with the exact file content. Changing a chapter checkbox or the heading option clears that preview and disables Download .md until you convert again; typing in the filter only hides rows. Previews longer than 300,000 characters show the first part plus a note, but the download still contains everything.

Keep tables, code blocks and list structure

Turndown runs with the GFM plugin: simple tables become pipe tables, fenced code keeps its language class, bullets use a dash and emphasis uses underscores. Task-list checkboxes are removed with their input elements, so only the item text remains. Strikethrough is written with one tilde, which some editors render as literal text.

Download one file with clear chapter breaks

Every selected chapter is joined into a single .md file, separated by a line containing three hyphens. The file is named from the EPUB title, with characters such as colon, slash and question mark replaced by hyphens, spaces kept and the base name cut at 120 characters. A missing title falls back to Untitled book. Output uses UTF-8 and LF line endings.

After you run it

What you get from EPUB to Markdown

The download is one file, not a folder of chapter files. These are the parts you can check before you use it.

What you getWhat it means
One .md file named after the bookThe download name replaces characters such as : / * ? with hyphens, keeps spaces and ampersands, trims the base name to 120 characters and adds .md. A missing title becomes Untitled book.
Chapters joined by a three-hyphen lineEvery selected chapter appears in spine order and is separated by “---” with a blank line on each side. The separator is a thematic break in Markdown, not a page break.
An optional # heading per chapterWith the box checked, each chapter starts with “# ” and its title. If the body already opens with the same heading, the file shows it twice and you delete one.
Pipe tables and fenced codeSimple tables become GFM pipe tables with a header row. Code blocks keep their language class, so a JavaScript sample opens as a fenced block marked js rather than an indented blob.
Underscore emphasis and dash bulletsItalic text uses _…_, bold uses **…**, bullets use a dash and strikethrough uses a single ~…~. The markers are Turndown settings, not guesses, so every export looks the same.
A size line you can use as a checkThe toolbar reports “N chapters · N B Markdown” after a run. A 0 B result means the selected chapters had no text and headings were off; the download stays disabled, even though the success toast appeared.
A preview capped at 300,000 charactersPreviews longer than 300,000 characters show the first part and a note that the download contains everything. The cap affects the textarea only, not the file you save.

When people reach for it

Common EPUB to Markdown use cases

Markdown suits notes, prose revision and text comparison, especially when headings and lists are useful to the next tool. A visually complex book still needs its EPUB reference copy for pictures, equations and note relationships.

If you need to…What this tool does
Move a chapter into a notes appTick one chapter, keep the heading and paste the Markdown into Obsidian, Bear or Notion. Tables and lists arrive as editable blocks instead of a wall of text.
Put a public-domain book in a git repositoryExport all chapters with headings off, commit the single .md and let line-based diffs show corrections across revisions. The stable chapter separators make changes easy to locate.
Compare two editions of the same titleConvert the same chapter range from both EPUBs, then diff the files. Text edits appear as line changes; use headings off so a renamed TOC label does not create noise.
Hand chapters to a translatorExport the chapters that need translation, keep headings for context and split the result at the separator. The translator works in plain text without an EPUB editor.
Fix OCR text before rebuilding a bookConvert, correct the paragraphs in an editor, then use Markdown to EPUB to make a new book. Images stay in the original EPUB and need separate handling.
Keep a searchable plain-text copyExport the whole book and index the .md with grep or a desktop search tool. You keep the words and heading structure even if the reader app or the EPUB itself stops opening.

Why use it

Why convert EPUB chapters to Markdown

Use Markdown when the next step is working with structured words rather than reproducing the book’s design. The preview is particularly useful for deciding whether a chapter needs cleanup before entering a notes vault, repository or editorial comparison.

Keep useful structure in an editable text workflow

Plain TXT discards heading levels, emphasis and list notation. Markdown can carry that structure into an editor, which reduces the work of turning selected chapters into working notes while keeping the result readable as text.

Review conversion artifacts before importing a whole book

Duplicate titles and broken note references are easier to identify in a preview than after a bulk notes import. Selecting a representative chapter first helps establish the cleanup needed for the rest of that edition.

Create a focused source for version control

An EPUB ZIP changes as a package, making small wording revisions awkward to inspect in a repository. Markdown gives text comparison tools a more useful working copy, although it does not capture image or layout revisions.

Choose extraction with its losses made explicit

A chapter with diagrams or scholarly notes may depend on more than prose. Knowing that assets and anchors need attention lets you keep the EPUB alongside the Markdown instead of silently discarding information the next reader needs.

When it does not work

Why EPUB to Markdown may fail

Most runs fail at one of four checks: the file gate, the archive and encryption checks, the chapter selection, or the amount of text the selected chapters actually contain. Each message below is produced by one of those branches.

  • No chapter is selected

    The status says “Select at least one chapter.” Press All, clear the filter and tick a row, then watch the count. Hiding rows with a filter does not clear the selection, so a visible empty list can still have items selected.

  • The file is not a readable EPUB archive

    A renamed PDF, MOBI or DOCX, or an interrupted download, fails before the chapter list appears. The message is “This file is not a readable EPUB ZIP archive, or its download is incomplete.” Download the book again or convert it to EPUB first.

  • The book is encrypted or password-protected

    A ZIP entry with the encrypted flag stops with “Password-protected archives cannot be opened. Choose a DRM-free EPUB.” A book with encrypted reading content gets the DRM message instead. Neither path decrypts the book, and neither is a bug to retry.

  • The spine has no supported HTML chapters

    The message is “This EPUB has no supported HTML chapters in its reading order.” The spine may point only to images, PDFs or media types this reader does not treat as text. That book needs OCR or a different source.

  • The selected chapters contain no text

    When every selected chapter is empty and headings are off, the export is 0 B: the success toast appears, the size line reads “1 chapters · 0 B Markdown”, and Download .md stays disabled. Tick a chapter with words, or leave headings on to get at least the title.

  • The first heading appears twice

    If a chapter’s XHTML starts with an h1 or h2 equal to its title and Add a heading per chapter is checked, the export contains both. Clear the option for that run or delete the duplicate line in the .md; the page does not compare the title with the body.

  • Images disappear from the result

    Chapter images point at temporary blob URLs, which are not on the sanitizer’s URL allowlist, so the src attribute is stripped. Turndown then writes nothing for the img and the alt text is lost, leaving no image line to repair.

Repair paths

How to fix common EPUB to Markdown issues

Find the sentence in the status bar or the symptom in the preview, then take the action in the third column. The last two rows replace the source file, because no setting can restore text or pictures that were never in the EPUB.

What you seeLikely causeWhat to do
“This file is not a readable EPUB ZIP archive…”Download interrupted, or a non-EPUB renamed to .epubDownload the book again, confirm it opens in a reader, and keep the .epub extension. For a PDF or MOBI, convert it to EPUB first; renaming does not change the container.
“Select at least one chapter.”None was pressed, or every box is clearPress All, or clear Filter chapters and tick one row. The count below the list must be above zero before Convert to Markdown will run.
A chapter is missing from the export but visible in the sidebarIt is marked non-linear in the spineTick that row manually; non-linear chapters start unchecked by design. The filter does not remove a chapter from the selection, only from view.
Download .md stays disabled after a success toastThe selected chapter has no text and headings are offSelect a chapter with words, or leave Add a heading per chapter checked so the title produces a non-empty file. Check the size line before pressing download.
No images or alt text in the .mdImages are stripped during sanitizingKeep the EPUB for pictures, or extract images with an EPUB image tool and place them beside the Markdown. Re-converting cannot bring the img elements back.
The chapter title appears twiceThe body already starts with an h1 or h2Clear Add a heading per chapter before converting, or delete the inserted “# Title” line in the editor. The duplicate is predictable, not random.
A DRM or encryption messageThe book is protected or from a storeUse a DRM-free copy you are allowed to convert. The page has no decryption step, and changing the extension or retrying will produce the same message.

Plain-language notes

Key EPUB and Markdown terms explained

These are the terms that change what you select or how you read the result. Each note describes what this page does with the term, not a general definition.

Spine

The OPF section that lists the reading order of a book. The sidebar follows it, so chapter numbers here can differ from file names such as part10.xhtml. Changing the tick boxes changes the export, not the spine.

linear="no"

A spine attribute that marks a document as optional, such as a pop-up footnote page or an appendix. The chapter is still listed, but it starts unchecked. Tick it when you want that material in the Markdown.

XHTML content document

The HTML file behind one chapter. Its headings, paragraphs, lists, tables and code are what Turndown reads. CSS, fonts and images are outside the text it can carry.

Navigation document

The EPUB 3 file that names chapters in a menu. Its labels become the headings and sidebar titles when its links match the spine. Without one, an NCX or the first h1 supplies the label.

Turndown

The library that turns HTML into Markdown. This page configures ATX headings, fenced code, dash bullets and underscore emphasis, then adds the GFM plugin for tables, strikethrough and task items.

GFM

GitHub Flavored Markdown, the dialect used for pipe tables and extended syntax here. It is wider than original Markdown but narrower than an EPUB: it has no page layout or image packaging, and this converter writes no footnote block.

ATX heading

A heading written with one to six hash marks, as in “## A subheading.” The page uses this style instead of underlining the text. It keeps the heading level from the source XHTML.

Fenced code block

A code block wrapped in triple backticks, optionally followed by a language name. The page keeps a class such as language-js, so the fence opens with js and syntax highlighters can read it.

Thematic break

A line of three hyphens that Markdown renders as a horizontal rule. The converter inserts one between chapters; it is a visual boundary, not a chapter object or a page break.

Markdown dialect

Markdown applications do not all support the same extensions. This output uses GFM-style tables and strikethrough; specialized footnotes, math and embedded resources need separate handling. Inspect the file in the app where you intend to use it.

Other ways to do it

EPUB to Markdown vs. alternatives

The right choice depends on how many books you have, how much fidelity you need and whether you can install a program. This page is the smallest option, not the most complete one.

OptionBetter whenTrade-off
CalibreYou need a batch queue, a library or an output format other than MarkdownCalibre’s text-conversion and editing routes are alternatives when you need TXT or package repair. Check current output support; plain-text export is not the same as this Markdown extraction.
PandocYou want a command line, templates or images extracted beside the textInstall Pandoc and learn its flags; it reads EPUB and writes GFM, and --extract-media saves pictures, but the command and media folder are extra work.
SigilYou want to repair or edit the EPUB itself, not export its textUse the editor when you want to repair source markup and keep book resources. A Markdown working copy is a different output and may still need another export step.
Keep the EPUB and read itYou only need to read the book or search inside itKeep the designed reading edition. For a text-based editor or version-control workflow, prepare a separate extraction rather than treating the EPUB ZIP as plain text.
Copy and paste one short chapterThe book is short and you need one page or one paragraphNo file limits or conversion quirks, but manual cleanup grows with every page and you can miss text.

Your files and this tool

Privacy, accuracy and EPUB to Markdown limits

The page is a local tool, not a service. These points describe what happens to the book, what leaves the browser and where the output stops being trustworthy.

  • The file is read with the browser File API. There is no upload endpoint, no account and no server-side copy; the bytes stay in the tab.
  • Unzipping, XML parsing, HTML sanitizing and Turndown conversion run locally in the tab. Standard site assets and Google Analytics load separately and never receive your book.
  • The tool keeps the book in memory only: no localStorage, no IndexedDB and no draft to recover. The site’s Google tag can set its own cookies, but the EPUB bytes and Markdown never enter them.
  • The page loads its own HTML, CSS and scripts, and the site tag, over the network. Those requests never include the EPUB bytes or the Markdown text.
  • The output is not checked by a Markdown linter or an EPUB validator. Read the preview before downloading: nothing verifies that tables, headings or links are well formed, and images and layout are outside what the file can carry.
  • Only DRM-free books are accepted. The tool does not remove encryption, does not prove you have the right to copy a book and keeps no audit trail of what you opened.

A little more detail

Frequently asked questions about EPUB to Markdown

Does the converter keep images or their alt text?

No. The chapter HTML points images at temporary blob URLs, which the sanitizer’s URL allowlist rejects, so the src is stripped. Turndown writes nothing for the img element, and its alt text goes with it. Keep the EPUB if you need the pictures, or extract them with an image tool and reference the files from your Markdown by hand.

Are footnotes turned into Markdown footnotes?

No. A reference such as a superscript 1 becomes a link like [1](#fn1), and the note text stays inline where its aside sat. The output writes no anchor ids, so the link has no target. If you need real footnotes, move the note text to the end and write the reference syntax your editor supports.

Why does a chapter start with two headings?

The page inserts “# ” plus the chapter title whenever Add a heading per chapter is checked. If the XHTML already opens with an h1 or h2 containing the same words, both survive. Clear the option before converting, or delete the inserted line in the .md; the tool does not compare the title with the first line of the body.

Is the whole book saved as one file?

Yes. Every selected chapter is joined into a single .md, with a line containing three hyphens between chapters. There is no option to write one file per chapter. If you need separate files, split the download at the separator in your editor or with a small script; the separator is always the same.

Why do Markdown tables look different in my notes app?

Markdown readers do not all implement the same syntax. This converter writes GFM-style pipe tables, while a basic parser may display them as literal punctuation or handle alignment differently. Open the result in the intended app before importing the complete book. Complex EPUB tables may need manual restructuring even when ordinary Markdown tables are supported by the destination.

Can I convert part of a chapter or a page range?

No. Selection is per chapter: a tick includes the whole XHTML document, a clear excludes all of it. To export a page range, convert the chapter and delete the unwanted paragraphs in your editor, or split the EPUB first. A fixed-layout page with no text layer produces no Markdown whichever chapter you tick.

Does it work with Kindle books or DRM?

No. The picker accepts .epub, the opener requires an EPUB container and the encryption check refuses protected reading content. An AZW3 or KFX file is not an EPUB even if renamed. Use a DRM-free EPUB edition; this page has no decryption step and no way to import a Kindle library.

What happens to links between chapters?

A link to another chapter keeps its text but loses its destination: the converter writes [text](#), which goes nowhere in the single file. Links inside the same chapter keep a fragment such as #fn1, but the target id is not written into Markdown. Plan to rebuild cross-references after conversion.

Is the conversion lossless, and will the layout match the book?

No. Text, heading levels, lists, simple tables and code fences survive. Fonts, colors, margins, page breaks, images and fixed positioning do not. Treat the .md as an editing copy: compare a few chapters with the source, fix tables and footnotes, and keep the EPUB as the reference for anything visual.