TXT to EPUB
Paste text or add one .txt file of at most 8 MB or 5,000,000 characters. This page splits the text into chapters, packs an EPUB 3 file in this tab, and lets you download it. Nothing is uploaded.
Add plain text
Download EPUB
How to use TXT to EPUB
- Paste or add a .txt fileType or paste the text, or choose one .txt file of at most 8 MB or 5,000,000 characters. You can set a book title and a language tag such as en or zh-CN.
- Choose how chapters are splitAutomatic uses chapter headings when they are found, then blank-line sections. You can also split only on headings, only on two or more blank lines, or keep the book as one chapter.
- Download an EPUB fileThe page packs an EPUB 3 file in this tab. Open it in an ebook reader and review the chapters before you use it.
Limits and how it works
- One pasted text or one .txt file at a time, at most 8 MB or 5,000,000 characters, with at most 200 chapters.
- Heading detection covers common English and Chinese chapter lines and Markdown # headings. Other heading styles may stay in the body text.
- The output is EPUB 3 with no cover, custom CSS, fonts, or DRM.
- Invalid language tags fall back to en. Review the file in an ebook reader before you use it.
How the EPUB is built
This page packs an EPUB 3 file in this tab with unmodified JSZip (MIT), already listed on the licenses page. The first ZIP entry is the uncompressed mimetype file required by the EPUB specification. Each chapter becomes an XHTML document in the spine, and a navigation document lists the chapter titles. Library source files are not modified.
Automatic splitting looks first for chapter headings such as “Chapter 1”, “CHAPTER XII”, Markdown headings that start with #, or Chinese headings such as 第12章. If no headings are found, it splits on two or more consecutive blank lines. A single blank line stays inside a chapter as a paragraph break. One-chapter mode does not split the text.
This is not a typesetting app and not a Kindle or Apple Books publisher. There is no cover image, custom CSS, or embedded font. Special typography, footnotes, and images are not created from the plain text. The file does not include DRM. Invalid language tags fall back to en. If you already have an EPUB and need plain text, use EPUB to TXT.
Frequently asked questions
Is the file uploaded?
No. Packing the EPUB runs entirely in this tab.
How are chapters detected?
Automatic mode looks for common chapter headings first. If none are found, it splits on two or more blank lines. You can force one of those rules, or keep the whole text as a single chapter.
How is this different from EPUB to TXT?
EPUB to TXT reads an existing ebook and writes a text file. This page does the reverse: it packs your text into a new EPUB.
Will the EPUB work in my reader?
The file is EPUB 3 with a standard package, spine, and navigation document. Support can still vary by reader. Open the file and review the chapters before you rely on it.
Related tools
All toolsEPUB to TXT
Extract plain text from an EPUB ebook in your browser.
EPUB to PDF Converter
Turn DRM-free EPUB e-books into printable PDFs.
TXT to PDF Converter
Turn plain text or .txt files into a clean, paginated PDF.
Word to TXT
Extract plain text from a Word .docx file in your browser.