Skip to content
UniKit

EPUB to plain text

Walk the EPUB spine in order, strip the XHTML tags, resolve entities and keep paragraph breaks, producing copy-ready plain text. Extraction runs in Rust-compiled WebAssembly and the file never leaves your browser.

Runs in your browserEvery computation happens in your browser — your data never leaves this device.

Pick a file — it is read and processed locally in your browser and never uploaded.

Loading the ebook module…

Pick a file first.

Result

These are the real numbers from this run — copy them straight out.

Pick a file and set the options; the result shows up here.

What this tool does

  • Turn a book body into plain text for notes.
  • Check whether the spine order matches the table of contents.
  • Feed text-only tools that cannot read EPUB.

Example

Input

An EPUB (the real sample from the spec)

Output

Chapters: 2
Characters: 97

Chapter One Begins

He opened the door and saw the snow.

Chapter Two Snow

The wind grew stronger.

Paragraphs keep a blank line between them; script, style and head content is dropped.

Frequently asked questions

What happens to images and tables?

Images are ignored; table cells are treated as block elements and each gets its own line.

Are HTML entities such as non-breaking spaces resolved?

Yes. Common HTML entities and numeric character references are restored.

Why is a chapter empty?

A spine entry whose file is missing produces empty text and the path is listed in stats.missing.

Can I limit the chapter count?

Yes, maxChapters only reads the first N spine documents.

Keywords:epubepub to txtoffline

Related tools