TXT to EPUB

TXT to EPUB Features

Auto Chapter Splitting

Detects Chapter X, Markdown headings and other markers to auto-split chapters

TOC Auto Generation

Generates NCX and nav table of contents from split results for reader navigation

Standard EPUB3 Output

Produces IDPF-compliant EPUB3 with mimetype as first entry in STORE mode

Custom Metadata

Set book title and author, automatically written to OPF dc:title and dc:creator

Local Privacy

All processing in the browser — text never uploaded to a server

Chapter List Preview

Displays chapter list after generation to verify splitting

How to Use the TXT to EPUB

1

Enter title and author

Fill in the book title and author (optional, defaults used if empty)

2

Paste text content

Paste plain text into the textarea, supports mixed Chinese and English

3

Click generate

The tool auto-detects chapter markers, splits content and builds the EPUB3

4

Download EPUB

Click download to save the EPUB and open it in your ebook reader

Where the TXT to EPUB Helps

Self-Published Ebook

Compile web serials or personal writing into EPUB for mobile reading

Document Archiving

Package long plain text documents as EPUB for offline reading and archiving

Multi-Language

Mixed Chinese and English text supported, dc:language set to zh

Blog Post Collection

Compile multiple blog posts with chapter markers into an EPUB anthology

Sharing

Create EPUBs from public text to share with others, compatible with major readers

Bedtime Reading

Convert long articles to EPUB for night-mode reading on ereaders

TXT to EPUB Explained

EPUB3 Standard

EPUB3 is an IDPF ebook standard based on HTML5, CSS and SVG. Core files include mimetype, container.xml, OPF and XHTML chapters.

mimetype First Entry

The EPUB spec requires mimetype to be the first file in the ZIP and stored in STORE (uncompressed) mode. This tool strictly follows this.

Chapter Markers

Supports Chinese chapter markers, English Chapter X and Markdown headings (# ## ###). Each line starting with a marker triggers a split.

OPF and Spine

OPF (Open Package Format) defines metadata, file manifest and reading order (spine). The itemref order in spine is the chapter order.

NCX and nav

NCX is the EPUB2 table of contents format; nav.xhtml is the EPUB3 navigation file. This tool generates both for compatibility.

TXT to EPUB FAQ

Q: Q: Which readers can open the generated EPUB?
A: A: The EPUB3 is IDPF-compliant and works with Apple Books, Calibre, FBReader, Aldiko and other major readers. Amazon Kindle requires format conversion.
Q: Q: What chapter marker formats are supported?
A: A: Chinese markers, English markers (Chapter 1, CHAPTER I) and Markdown headings (# heading, ## heading, ### heading). Any line starting with a marker triggers a split.
Q: Q: What happens to text without chapter markers?
A: A: If no markers are detected, the entire text becomes a single default chapter. Adding markers manually is recommended for better navigation.
Q: Q: Is there a text size limit?
A: A: Up to 5 million characters. Browser memory may impose additional limits for very large files.
Q: Q: Does the generated EPUB support TOC navigation?
A: A: Yes. Both NCX and nav are generated, supporting chapter jumping in reader TOC features.
Q: Q: Can I add a cover image?
A: A: The current version does not support cover images. Future versions will add cover upload and embedding. Use Calibre to add a cover in the meantime.
Q: Q: How large is the generated EPUB file?
A: A: EPUB uses ZIP compression, so plain text ebooks are typically small. A 100,000-word novel produces an EPUB of about 100-200KB.