TXT to EPUB: Turn a Plain Text File into a Real Ebook with a TOC

You have a manuscript or public-domain book as a plain TXT file, but reading apps treat it as one endless scroll. A TXT to EPUB conversion adds a table of contents and real structure. Here is how to build a proper EPUB from plain text.

August 3, 2026
txtepubebook conversiontable of contentsmanuscript

Key Takeaways

  • •TXT files have no structure, so reading apps show them as one long scroll.
  • •EPUB adds a table of contents, chapters, and reflowable text that any reader understands.
  • •Headings survive only when the converter detects your chapter markers or you set them.
  • •BookConv converts TXT to EPUB in the browser and builds a navigable table of contents.

A plain TXT file is the most portable document format there is, but it has no structure. Reading apps display it as a single unbroken scroll with no chapters and no table of contents. Converting TXT to EPUB turns that flat file into a proper ebook with navigation, chapters, and reflowable text. This guide shows how to do it and how to keep your chapter breaks.

Why convert TXT to EPUB

TXT is just characters with line breaks. It works everywhere but gives readers nothing to navigate. EPUB is the open reflowable standard that supports a table of contents, chapter breaks, and adjustable fonts. If you want a manuscript, a public-domain novel, or your own notes to read like a real book, EPUB is the destination. A format overview is in /blog/ebook-formats-explained.

What a good TXT to EPUB conversion adds

A proper conversion should produce more than a wrapped text file:

  • A table of contents built from your chapter headings.

  • Chapter breaks so readers jump between sections.

  • Reflowable text that adapts to phone, tablet, or e-reader screens.


Without these, you simply get a scrollable TXT with a different extension.

Convert with BookConv (fastest)

BookConv runs the Calibre engine in the browser, so you get a TXT to EPUB conversion with nothing to install. Upload the TXT, choose EPUB, and it builds a navigable table of contents from your headings. Start here: /convert/txt-to-epub. A step-by-step is in /blog/txt-to-epub.

Convert with Calibre (more control)

Calibre opens TXT and converts to EPUB with structure detection. Open the file, pick Convert books → EPUB, then use Structure detection to map your chapter markers (for example lines starting with Chapter) to headings. For a broader comparison of tools, see /guide/calibre-vs-online-converter. And if you need to understand format trade-offs for your device, EPUB vs MOBI vs AZW3 covers the landscape.

Check the result before you trust it

Open the EPUB in a reader and confirm the table of contents lists your chapters and tapping one jumps to the right place. If everything is still one scroll, the converter did not detect your headings and you should set chapter markers before reconverting.

Preparing Your TXT for a Clean Conversion

A little cleanup before you convert saves a lot of fixing afterward:

  • Use clear, consistent chapter markers such as Chapter 1 or Part One on their own line, so the converter can build the table of contents.

  • Separate paragraphs with a blank line, not just a line break, so the EPUB keeps proper paragraph spacing.

  • Save the file as UTF-8. A wrong encoding turns accented characters and quotes into garbage.

  • Avoid tabs and fixed-width spacing for indentation; EPUB reflows text and ignores column layouts.

  • Strip headers, footers, and page numbers if the TXT came from a scanned PDF, since they become noise in the ebook.


A well-structured TXT converts to an EPUB that reads like a real book instead of a formatted scroll.

What to Do When the Table of Contents Is Wrong

If the EPUB comes out as one long scroll, the converter did not find your chapter breaks. Fix it at the source:

  • Reopen the TXT and make sure every chapter heading sits on its own line with a consistent pattern.

  • In Calibre, open Structure detection and set a regular expression that matches your marker, for example chapters that start with the word Chapter, then reconvert.

  • In BookConv, confirm the chapter style is detected before downloading; re-upload if the preview shows a flat file.

  • After reconverting, open the EPUB in a reader and tap through the table of contents to confirm each entry jumps to the right place.


Getting the TOC right is what turns a text dump into a navigable ebook.

Should You Convert TXT to EPUB at All?

TXT to EPUB is the right move for plain prose: manuscripts, public-domain novels, notes, and drafts. It is the wrong tool in a few cases:

  • Illustrated or layout-heavy books - TXT has no images or positioning, so you would lose everything. Start from the original source format instead.

  • Documents with tables, footnotes, or sidebars - those structures do not survive a flat text file; convert from DOCX or PDF when that is available.

  • Final published editions - if you already have a retail EPUB, reconverting from a TXT export only throws away quality.


For everything else, turning a plain TXT into an EPUB is the fastest way to make a wall of text readable on a real device.

A 10-Second Pre-Conversion Checklist

Before you convert, glance at three things: your file is saved as UTF-8, chapter titles sit on their own lines, and paragraphs are separated by blank lines. Ten seconds of cleanup now prevents a flat, broken EPUB later, and it means the converter can build a real table of contents instead of guessing.

Frequently Asked Questions

Can I convert TXT to EPUB?

Yes. Online converters like BookConv convert TXT to EPUB in the browser, and Calibre does it on the desktop. The result reads on any EPUB app.

Will my chapters become a table of contents?

They can, but only if the converter detects your chapter headings. BookConv builds the TOC from your headings; Calibre lets you map them in Structure detection.

Why is my TXT ebook just one long scroll after conversion?

Because the converter did not find chapter markers. Mark chapters clearly (for example Chapter 1) or set detection rules before converting.

Is BookConv free for TXT to EPUB?

Yes. BookConv converts TXT to EPUB in the browser at no cost for standard files, with no software to install.

Can I convert a manuscript draft to EPUB?

Yes. Many authors turn a plain TXT draft into an EPUB preview to check flow on a real reading device before formatting for publication.

Does TXT to EPUB keep my line breaks?

Paragraph breaks are preserved, but TXT has no styling, so fonts and spacing become the reader default. That is expected and usually what you want for reading.

Try It Yourself

Convert TXT to EPUB for free:

Convert TXT to EPUB

Related blog posts

How to Turn a Plain TXT File into an EPUB with a Table of Contents

Got a plain .txt file — your own manuscript, a Project Gutenberg download, or public-domain text — that you want to read on a Kindle, Kobo, or phone without squinting at a wall of unbroken text? A TXT file has no chapters, no table of contents, and no structure. Converting it to EPUB gives you a proper ebook with a navigable TOC. This guide shows the shortest path and how to get clean chapter breaks.

How to Convert EPUB to Text (TXT) - Easy Guide

Are you tired of dealing with complex ebook formats that don't work on your preferred devices? Converting EPUB to TXT is the simplest solution for reading ebooks on any device, from basic e-readers to smartphones and computers. In this comprehensive guide, we'll explore everything you need to know about EPUB to TXT conversion, including why it matters, how to do it, and the best tools available.

Epub to Various Other Formats: The Ultimate Guide

Have you ever downloaded a beautiful ebook in EPUB format only to find it won't open on your device? You are not alone. EPUB is the open standard for eBooks, favored by libraries and publishers, but it isn't compatible with every reader on the market. Whether you are trying to read on an older Kindle, share a document with a colleague via PDF, or need a simple text file for quick editing, converting your EPUB is the solution. BookConv simplifies this process, allowing you to transform your library into the exact format you need in seconds.

More guides