TXT to EPUB
Turn plain text into an EPUB with chapters and an optional cover.
- 1Add input
- 2Adjust settings
- 3Get your result
Tool input and files are processed in this browser without being uploaded.
Before you start
Create an EPUB 3 book from plain text with chapter navigation. Detect common Chinese or English chapter headings, or set chapter line numbers, levels and titles manually; text without detected headings becomes one chapter. The text remains selectable in the exported book, and you can add a local PNG or JPEG cover.
How to use this tool
- Paste text into “TXT” or choose one local TXT file. For a file, choose its encoding, read the preview excerpt and confirm that the displayed text is readable.
- Enter a book title and check the book language. Add an author and cover if needed. Detect chapters, then review their line numbers, levels and titles.
- Create and download the EPUB. Open it in your intended reading app to check the text, any cover and chapter links.
Supported inputs and limits
One plain-text file or pasted text up to 10 MiB; pasted text is measured in UTF-8 bytes. Optional local PNG/JPEG cover up to 5 MiB and 16,000,000 pixels. Up to 1,000 chapters, including any preface. Book title, author and manual chapter titles: up to 300 characters each; language tags: up to 35. Automatic detection checks heading lines up to 150 characters. Some characters, including many emoji, count as two toward character limits. For manual chapters, start line numbers must refer to existing lines in the source and be listed in ascending order, without duplicates; levels range from 1 to 3. For a file, read and confirm the decoded preview excerpt before exporting.
Worked example
Example input
第一章 开始 你好 😀 第二章 继续 第二段
Example options
{
"title": "测试书",
"author": "Fixture",
"language": "zh"
}Example output
{
"title": "测试书",
"author": "Fixture",
"language": "zh",
"chapters": [
{
"title": "第一章 开始",
"level": 1,
"start": 1
},
{
"title": "第二章 继续",
"level": 1,
"start": 5
}
]
}When something does not work
Keep the original text. If a file looks garbled or decoding fails, select its source encoding—UTF-8, GB18030/GBK or Big5—and prepare the preview again. Confirm only when the displayed text is readable. The preview only shows the beginning, so check the downloaded book in a reading app too. The default strict UTF-8 check does not detect the source encoding or repair text already damaged in the original. If the source exceeds size or chapter limits, split it before creating the book.
Frequently asked questions
Are my files uploaded?
No. TXT files, covers and pasted text are processed in your browser. Moving around the site can keep a temporary workspace in the same tab’s memory, subject to size and time limits. Refreshing or closing the tab clears it, so download results you want to keep.
What if chapter detection is wrong?
Compare the chapter list with your source text. In the editor, correct line numbers, levels and titles, and remove entries that are not real chapter starts. Add a missing chapter in the “Chapter list” JSON using line (start line), level and title. Check the preface, first chapter, short sections and appendices before generating; detecting chapters again replaces your manual edits.
Why do page breaks change between readers?
The exported EPUB uses reflowable text. Page breaks depend on screen size, fonts and reading app settings. Open the download in the app you plan to use and check its chapter links and paragraph breaks.
Documentation & further reading
Related tools
Read EPUB
Read a local EPUB in your browser, switch between chapters and copy the current chapter’s text.
EPUB to TXT
Convert a local EPUB into one TXT file in the book’s reading order.
Edit EPUB metadata
Edit a local EPUB’s title, author and language, with an optional cover image.