Free · In your browser · EPUB 3
TXT to EPUB Converter
To convert a TXT file to EPUB, upload one or more .txt files, check the preview, and download an EPUB 3 ebook with a table of contents built from chapter headings. Conversion runs in your browser — your files are never uploaded to a server.
Preview
Converting a Word document or HTML instead? Use the Word to EPUB converter or the HTML to EPUB converter. 中文用户请看中文版 TXT 转 EPUB。
How to convert a TXT file to EPUB
-
01
Add your text files
Upload one or more .txt files. The encoding is detected automatically, and a preview shows the first lines and the chapters that were found.
-
02
Check the preview and book details
Make sure the preview reads correctly; if it is garbled, choose the encoding. Optionally edit the title, author, language, and a cover image.
-
03
Download the ebook
Chapter headings become the table of contents, and the book is packed as an EPUB 3 file in your browser and downloaded.
Privacy & limits
- Runs in your browser Text files you add are turned into an ebook on your device with JSZip and are never uploaded to a server. Nothing is sent to an external conversion API.
- Visit counts only Page visits are counted with Cloudflare Web Analytics, which sets no cookies. It never sees your files or their contents.
- 50 MB total input The text files you add together cannot exceed 50 MB. You will see a clear error if you go over it.
- Encodings UTF-8, UTF-16, GBK/GB18030, Big5, Shift_JIS, EUC-JP, EUC-KR, Windows-1252, and Windows-1251. Detection is automatic; you can override it.
- Headings on their own line A chapter heading must sit on a line by itself: up to 40 characters for Chinese, Japanese, or Korean headings and 80 for others. Hard-wrapped text may also put a short title on the next line.
- Plain text has no formatting A .txt file has no images, bold text, or links, so the ebook has none either. You can still add a cover image.
- Free EPUB 3, no account The download is an EPUB 3 ebook. The converter is free to use and does not require an account.
Frequently asked questions
Which text encodings are supported?
UTF-8 (with or without a byte order mark), UTF-16, and older encodings: GBK and GB18030 for Simplified Chinese, Big5 for Traditional Chinese, Shift_JIS and EUC-JP for Japanese, EUC-KR for Korean, and Windows-1252 and Windows-1251. The encoding is detected automatically and shown in the preview. If the preview looks garbled, choose the encoding yourself under Text encoding.
How are chapters found?
A line such as “Chapter 1”, “CHAPTER IV.”, “Part One”, or “Prologue”, or a Chinese heading such as 第一章, 第十二回, 第一卷, 序章, or 番外, starts a new chapter and becomes an entry in the table of contents. Chapters that follow a part or volume heading are nested under it. A contents list at the top of the file stays as ordinary text. To keep the whole text as one chapter, untick “Split into chapters”.
What if my text file has no chapter headings?
The whole text becomes one chapter named after the book. Very long text is stored as several files inside the EPUB, about 100,000 characters each, so ebook readers stay responsive; the table of contents still has a single entry.
How are paragraphs and line breaks handled?
Two layouts are detected. In the first, each line is a paragraph, which is common for web novels. In the second, lines are broken at a fixed width and blank lines separate paragraphs, as in Project Gutenberg files; those wrapped lines are joined back into paragraphs. If the result looks wrong, choose the layout yourself under Paragraphs.
Can I combine several TXT files into one ebook?
Yes. Add more than one .txt file and their chapters follow one another in the order shown in the file list. Files added together are sorted by name, with numbers in natural order (2.txt before 10.txt), and you can move a file up or down. A file with no chapter headings becomes one chapter named after the file.
Can I read the EPUB on a Kindle?
The download is an EPUB 3 file. Amazon’s Send to Kindle accepts EPUB files, so you can send the ebook to a Kindle that way. You can also open the file in Apple Books, Google Play Books, Kobo, and other EPUB readers.
Is Chinese, Japanese, or Korean text formatted for reading?
Yes. When the book language is Chinese, Japanese, or Korean, paragraphs get a two-character first-line indent and the table of contents is titled in that language (目录, 目次, or 목차). Full-width spaces at the start of lines are removed so indents are not doubled. The language is detected from the text, and you can change it.
Is this TXT to EPUB converter free, and is there a size limit?
Yes, it is free to use and does not require an account. The total size of the text files you add is capped at 50 MB, which is enough for long novels with thousands of chapters. A progress bar shows how far the conversion has got. Everything happens in your browser — your files are never uploaded to a server.