Export
EPUB to Markdown
Convert your EPUB's text to Markdown. Headings, bold and italic, lists, blockquotes, code blocks, tables and web links are carried over, and each chapter starts with its title as a heading, in the book's reading order. Pick the chapters you want, add optional YAML front matter with the title, author and language, and download one .md file for Obsidian, a static site generator, or any Markdown editor.
Written by Jay Sudha · Published · Last updated
Input formats
Output formats
Common uses
- Import a book's text into Obsidian or Notion
- Use book content as a Markdown source in a static site generator
- Archive an e-book in a portable text format
Limitations
- Images are not exported; an image with alt text leaves an [Image: …] note in its place.
- Links between chapters become plain text, since the chapters are joined into one file; web links are kept.
- Formatting applied only through CSS classes, rather than bold or italic tags, is lost, and nested lists are flattened.
- DRM-protected EPUBs cannot be converted.
Your e-book files, handled privately
This tool runs entirely in your browser. On this site, your files are not uploaded to a server. This tool does not remove DRM or bypass copyright protection. Only upload files you own or have permission to process.
Where EPUB to Markdown fits
This tool reads an EPUB and rewrites its reading-order text as a single Markdown (.md) file. It is built for moving a book's text out of a closed e-reader format and into tools that speak Markdown: importing a title into Obsidian or Notion, dropping chapters into a static-site generator (Hugo, Jekyll, Astro) as content source, or keeping a plain, portable text copy of something you own.
It suits writers and researchers who want to quote, annotate, or restructure a book's prose in a Markdown editor, and anyone archiving an e-book in a format that stays readable without special software. Because chapter titles become real Markdown headings, the output keeps a navigable structure rather than collapsing into one undifferentiated block of text.
It is not a layout tool: to keep the book's look, keep the EPUB; Markdown is for reusing the text.
How the conversion runs
Drop or select an .epub file. Everything happens in your browser: the file is unzipped and parsed locally, walked in reading order, and each chapter's HTML is mapped to Markdown. Nothing is uploaded, and the parsed book is gone once you close the tab.
The converter maps structure where it can. Headings h1 through h6 become # to ######; bold (strong or b) becomes **text** and italic (em or i) becomes *text*; lists, blockquotes and inline code are kept, and code blocks are fenced with their spacing untouched; tables become pipe tables of their cell text, with the first row as the header; links to web addresses keep their URL, while links between the book's own pages become plain text. Each chapter starts with its title as a heading, from the table of contents or the first heading. You get a chapter checklist with All/None toggles and word counts, optional YAML front matter (title, author, language, date), then Download .md or Copy to clipboard; chapters are joined with --- lines.
What it does not do: it does not export images. An image with alt text becomes an [Image: …] note so you can see where it was; one without alt text leaves nothing. DRM-protected EPUBs are detected and refused.
Where it falls short, and easy missteps
Fidelity depends on how the EPUB was authored. Books with clean semantic HTML (real headings, strong and em tags) convert cleanly; books that fake formatting with CSS classes lose that emphasis, since the tool reads tags, not stylesheets. Nested lists are flattened into their parent item, table cells keep their text but not inline formatting or merged-cell layout, and footnotes stay wherever they sit in the text.
A common surprise is chapter naming. If the book's table of contents is thin, some sections take their first heading, page title or file name as a title, and front matter or copyright pages appear as their own chapters. Untick anything you do not want before exporting rather than deleting it afterward.
Respect copyright too: extracting text from a book you may not redistribute is on you, not the converter.
Checking the .md before you rely on it
Open the file in your Markdown editor and skim top to bottom. Confirm chapters are in the right order and that headings render at sensible levels (a chapter title showing as ### instead of # usually means the source used a lower heading). Spot-check a few paragraphs for dropped emphasis, and look at the start and end for copyright or other pages you meant to exclude. If you enabled front matter, verify the title and author fields populated.
Search for [Image: to find where pictures were, and decide whether to add them back. Check that list items, tables and blockquotes kept their shape, and that the --- chapter separators land between chapters rather than mid-text.
Before quoting or republishing, compare key passages with the original EPUB, since styled text and footnotes can shift.
Frequently asked questions
Yes, when the EPUB marks them with the usual tags (strong or b for bold, em or i for italic). Emphasis applied only through CSS styles is not carried over, because the converter reads tags, not stylesheets.
Each chapter starts with its title as a heading, taken from the table of contents or the chapter's first heading. Chapters appear in reading order, separated by --- lines. Pages with no title of their own, such as a copyright page, are listed by their page title or file name, so you can untick them.
Yes. The output is a standard .md file with optional YAML front matter, which Obsidian and static site generators read. Headings, lists, tables and reading order are kept; images are not included.
No. The EPUB is parsed and converted in your browser. On this site, your files are not uploaded to our servers; the Markdown file is generated on your device and downloaded directly.
Related tools
Tool last reviewed: September 27, 2026 · Report a problem