ToolsEdit PDFArticlesPricingContact
TryPDFKit
Ebooks tool

Convert TXT to EPUB

Turn a text file into a proper ebook with chapters and a table of contents. Lines such as Chapter 1 or Part Two begin new chapters automatically.

  • 3 free uses, 10 with a free account
  • Text stays on your device
  • Chapters detected for you
  • No watermark

Drop your TXT or TEXT file here

or click to browse your device

  • TXT
  • TEXT
Files never leave your device
  • Files stay on your device
  • 3 free uses, no account needed
  • Works offline once loaded
How was TXT to EPUB?
Be the first to rate this tool.
1How it works

TXT to EPUB in three steps

  1. 01

    Add your text file

    Drop a TXT on the page, or tap Choose file. Add an optional cover picture too.

  2. 02

    Tune the details

    Set the title, author and language. Choose how paragraphs are found, and keep chapter detection on or turn it off.

  3. 03

    Download your EPUB

    You get an ebook with a contents list, and the note shows the chapter count.

2The details

What you get, and what to know

What you get

  • Chapter lines recognizedLines like "Chapter 1" or "Part Two" start a new chapter and appear in the contents.
  • Three paragraph modesDetect automatically, split on blank lines, or treat every line as a paragraph.
  • Hard-wrapped text is repairedOld text files with fixed-width lines are joined into flowing paragraphs, while short lines such as poetry keep their breaks.
  • Odd encodings handledUTF-8, UTF-16 and Windows-1252 text files are decoded so accents survive.

Good to know

  • No formatting in plain textA TXT file has no bold, italic, images or headings, so the EPUB is plain prose. For styled text start from Markdown to EPUB or DOCX to EPUB.
  • Chapter titles must look like chaptersHeadings that do not start with a word like Chapter or Part may not be detected. Turn detection off to get one long chapter.
  • One file at a timeCombine several books afterward with Merge EPUB files.
3Use cases

When people use TXT to EPUB

Read a saved story on an e-reader

Convert a text download into a book with bookmarks and fonts you control.

Publish a draft

Turn plain-text writing into a shareable ebook.

Preserve old text libraries

Move a folder of .txt books into a neater format.

Create reading packs

Make a single EPUB from class notes.

How chapters are found

Plain text has no real headings, so the tool looks for lines that read like chapter titles: Chapter 1, CHAPTER ONE, Part Two and similar. Each one starts a chapter and gets an entry in the contents.

If your book uses another pattern, turn detection off or edit the text to add a clear chapter line.

Choosing a paragraph mode

Detect automatically works for most files. Use blank lines when paragraphs are separated by an empty line. Use every line when each line is its own paragraph, as in scripts or lyrics.

If the result has odd breaks mid-sentence, try the blank-line mode.

Polish the finished book

After converting, add a cover with Change EPUB cover, tidy details with Edit EPUB metadata and make sure the file is sound with Validate EPUB.

4FAQ

Questions, answered

How do I convert a TXT file to EPUB?+

Add the text file, set the title and author, and download. Chapters are found automatically.

How does it find chapters?+

Lines such as Chapter 1 or Part Two start new chapters. You can turn this off.

Is my text uploaded?+

No. The conversion happens in your browser and your file stays on your device.

Will accented letters display correctly?+

Yes. UTF-8, UTF-16 and Windows-1252 text are all decoded.

Does it work on my phone or Mac?+

Yes, in any modern browser on Windows, Mac, iOS and Android.

Can I add a cover?+

Yes. Add a JPG or PNG in the optional cover slot.

+Keep going

Related tools