Skip to content
FreeConvertter

TXT to EPUB Converter

Turn a plain-text book into a proper e-book with chapters and a table of contents.

TXTto

or drag and drop them here · up to 50 MB per file

Your files are processed on this device and never uploaded.

Instant conversion

There is no upload or server queue, so conversion starts the moment you drop a file and finishes as fast as your device can process it.

Your files stay private

Files are processed entirely inside your browser. They are never sent to, stored on, or seen by any server.

Nothing to install

Works on Windows, macOS, Linux, Android and iOS in any modern browser. No software, no extensions, no account.

How to convert TXT to EPUB

  1. 1

    Click "Choose TXT files" or drop your .txt files onto the converter.

  2. 2

    Open "Options" if you need to set the file's encoding, how paragraphs are separated, or whether to split chapters.

  3. 3

    Click "Convert". Chapters such as "Chapter 1" or "Prologue" are detected automatically.

  4. 4

    Click "Download" and open the .epub in your favourite reading app.

Why convert TXT to EPUB?

  • Comfortable reading — e-reader apps paginate EPUB books, remember your position and let you change fonts and sizes.
  • Navigation — detected chapters become a clickable table of contents.
  • Kindle and other readers — EPUB is accepted by Send to Kindle, Apple Books, Google Play Books, Kobo and more.

How the conversion works

The file’s encoding is detected, then the text is read line by line. Lines that look like chapter headings start a new chapter; other lines become paragraphs. Very long sections without headings are split into smaller files so that e-readers stay fast. The resulting EPUB 3 file also includes an EPUB 2 table of contents for older devices.

What is a TXT file?

A TXT file contains plain text only: no fonts, layout, images or hidden markup. That makes it the most portable document format there is. It opens on every device and in every text editor, is easy to search and process with scripts, and takes up very little space.

The trade-off is that formatting such as bold text, tables and pictures cannot be stored. Line breaks and blank lines are the only structure a TXT file has.

What is an EPUB file?

EPUB (Electronic Publication) is the most widely used open e-book standard, maintained by the W3C. An EPUB file is a ZIP archive that contains one XHTML page per chapter, CSS stylesheets, images, fonts, and a package file listing the reading order and metadata such as title, author and language.

Because the text is reflowable, EPUB adapts to any screen size. Apple Books, Google Play Books, Kobo and most other reading apps open EPUB natively, and Kindle accepts EPUB through Send to Kindle.

Frequently asked questions

My text shows broken characters. What should I do?

Leave the encoding on "Detect automatically" first — it recognises UTF-8 as well as older Korean, Japanese, Chinese, Cyrillic and Western encodings. If the result is still garbled, pick the correct encoding manually in Options and convert again.

Which chapter headings are recognised?

Lines such as "Chapter 1", "Chapter IV", "Part 2", "Prologue" and "Epilogue" are recognised, as well as common Korean, Japanese and Chinese chapter headings. Each heading becomes a chapter in the table of contents. Choose "Do not split into chapters" if your text has no headings.

Every line became its own paragraph. Can I change that?

Yes. If your file wraps long paragraphs over several lines and separates paragraphs with a blank line, choose "Blank lines separate paragraphs" in Options.

What is the book title?

The file name is used as the title. Rename the .txt file before converting to change it.

Related guides

Related converters