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

August 2, 2026BookConv Team
TXTEPUBtable of contentsebookBookConvconversionguide

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.

What a TXT File Is Missing

Plain text is just characters. An e-reader opens it, but you get one endless scroll with no way to jump to Chapter 5 or see your reading position as a percentage of a real book.

An EPUB adds three things a TXT lacks:

  • Structure — chapters and sections marked as distinct blocks

  • A table of contents — the navigation panel you tap into on any device

  • Metadata — title, author, and language so the book files correctly in your library


You don't have to build any of that by hand. The converter infers it from the text.

Convert TXT to EPUB on BookConv in Three Steps

  • Open the TXT to EPUB converter and upload your .txt file.

  • BookConv scans the text, detects chapter breaks, and wraps each section in proper EPUB markup with a generated table of contents.

  • Download the .epub and send it to your reader. It opens on Kindle, Kobo, Apple Books, and most apps.


The free tier handles files up to 10 MB — enough for a long novel several times over.

Two things to know before you upload

  • Download links are temporary. Converted files are deleted after a period, so save the .epub to your device right after the progress bar finishes.

  • Encoding matters. Save your .txt as UTF-8. A file saved in an old code page will show garbled characters for accents and non-Latin scripts.

How Chapter Detection Works

The converter looks for consistent patterns that mark a new chapter. You get the best result by pre-formatting the text just a little:

  • Blank-line-separated blocks — each block becomes a section.

  • Numbered or titled headings — lines like "Chapter 1", "1. The Beginning", or "PART TWO" are recognized as chapter starts.

  • Consistent markers — if every chapter starts with a centered title in ALL CAPS, keep that pattern; the detector learns it.


A few minutes of cleanup before upload beats fighting the output afterward. If your file is already one giant paragraph with no breaks, the converter can only split on the cues it finds.

After Conversion: Check the Table of Contents

Open the EPUB and tap the contents or Go To menu. You should see one entry per detected chapter.

If the TOC looks wrong — too many entries, or chapters merged — the cause is almost always in the source text:

  • Inconsistent heading style (some chapters titled, others not)

  • Missing blank lines between sections

  • A repeated phrase the detector mistook for a heading


Fix the .txt, re-upload, and convert again. It's a 30-second round trip. For the wider format trade-offs, see Ebook formats explained.

TXT to EPUB vs Building an EPUB by Hand

You can author an EPUB manually with a tool like Sigil or Calibre's editor, and that's worth it for a polished, styled release. But for turning an existing text into a readable book fast, automated conversion wins:

  • No markup to learn — you skip XHTML, OPF, and NCX entirely.

  • TOC is free — generated from your headings, not hand-coded.

  • Good enough to read — clean structure, correct metadata, navigable chapters.


If you later want a Kindle-native file from the same text, convert the EPUB onward to EPUB to AZW3.

Key Takeaways

  • TXT has no structure; EPUB adds it. Chapters and a table of contents come from the conversion, not from you hand-coding.

  • Three steps on BookConv. Upload, convert, download — no install, no account, 10 MB free tier.

  • Pre-format for clean chapters. Blank-line breaks and consistent "Chapter N" headings get the best TOC.

  • Save as UTF-8. Old code pages produce garbled characters.

  • Save immediately. Download links are temporary and files are deleted after a period.

Frequently Asked Questions

Do I need any special software to make the EPUB?

No. BookConv runs the conversion on its servers. You only need an e-reader app or device to open the finished .epub.

Will my TXT keep its chapter structure in the EPUB?

The converter detects chapter breaks from patterns like "Chapter 1" headings and blank-line-separated blocks, then builds a table of contents from them. Consistent formatting in the source text gives the cleanest result.

What if my table of contents looks wrong after conversion?

It almost always means the source text was inconsistent — missing blank lines, or some chapters untitled. Fix the .txt, re-upload, and convert again; it takes about 30 seconds.

My text shows strange characters. Why?

Your .txt was likely saved in an old character encoding. Re-save it as UTF-8 and re-upload; accented and non-Latin characters will render correctly.

Can I read the resulting EPUB on a Kindle?

Yes. Kindle devices and the Kindle app read EPUB directly through Send to Kindle, or you can convert it onward to AZW3 for native sideloading.

Ready to Convert?

Try our free online converter:

Related posts

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.

Kindle vs Kobo: Best eBook Formats (AZW3, EPUB, MOBI)

If you are an avid reader or self-published author, the biggest hurdle is often format compatibility. The short answer is: **Kindle users should use AZW3**, while **Kobo and other e-readers prefer EPUB**. MOBI is outdated for new devices. Use tools like [bookconv.com](/convert) or Calibre to convert your files instantly. For the head-to-head of the two formats themselves, see our [EPUB vs MOBI comparison](/blog/epub-vs-mobi).

Related Guides