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 4 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, 4 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. The TXT format reference covers the encoding and metadata limits worth knowing before you convert.

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.

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.

Can Kobo Read EPUB Files? (And When to Convert)

Can Kobo read EPUB files? Yes — every Kobo eReader opens EPUB natively. EPUB is the one format Rakuten Kobo built its entire reading ecosystem around, from the store to the device firmware, so an EPUB file you sideload behaves like a store-bought book: real chapters, reflowable text, embedded fonts. The short version is that you almost never need to convert anything before putting it on a Kobo. The exceptions are DRM lockouts and Amazon-format files (MOBI, AZW3), and this guide covers exactly when those exceptions apply, how to get an EPUB onto your Kobo in under a minute, and what to do when a file refuses to show up in your library. > BookConv converts your file on our servers and automatically deletes it within 1 hour. No account, no software install.

Related Guides