TXT to EPUB converter

Paste text or open a .txt or .md file, give the book a title and author, and download an EPUB that any e-reader opens. Headings start new chapters and appear in the table of contents.

Everything happens in your browser. Your text is never uploaded.
JPG or PNG; a tall image of about 1600 × 2560 px suits most readers.

Chapters: 2— Chapter 1 · Chapter 2

Runs in your browser: nothing you enter is sent anywhere.

How to use it

  1. Paste your text or open a .txt or .md file.
  2. Set the title, author and language code.
  3. Choose Markdown or plain text, where chapters start, and, for plain text, how paragraphs are marked.
  4. Add a cover if you have one, check the chapter list and press Download EPUB.

How it works

The text is split into chapters at headings. Markdown chapters are turned into HTML with the same converter as the Markdown to HTML tool and closed into well-formed XHTML; plain-text chapters become one paragraph per line or per block between blank lines. The chapters, a navigation page, a toc.ncx and a stylesheet are packed into a ZIP with the EPUB mimetype first, and a random book identifier is created in your browser.

Worked example

The sample text has two headings, so the book has 2 chapters: “Chapter 1” with one paragraph (the word Anna in italics), and “Chapter 2” with a sentence and a three-item list. Both names appear in the reader’s table of contents.

Tips

  • For a novel saved as plain text with one paragraph per line, keep Every line is a paragraph.
  • Text wrapped at a fixed width (hard line breaks inside paragraphs) needs Blank lines separate paragraphs, which joins the lines back.
  • To check the book, open it in your reader or read it back with the EPUB to TXT converter.

Frequently asked questions

How are chapters made?

In Markdown, every # or ## heading starts a chapter, and its text becomes the chapter's name in the table of contents. In plain text, every short line that begins with Chapter, Part, Book, Prologue or Epilogue (and the Russian and Spanish words for them) starts one. Text before the first heading becomes a chapter named after the book.

Which Markdown is supported?

Headings, paragraphs, bold, italics, strikethrough, lists, quotes, code, tables, links and horizontal rules. Raw HTML is shown as text, not inserted.

My TXT file shows strange letters. Why?

The file is read as UTF-8, and if that fails, as Windows-1251, the usual encoding of older Russian text files. Other encodings may need converting to UTF-8 first.

Will it open on Kindle, Kobo or Apple Books?

The result is a standard EPUB 3 with an EPUB 2 table of contents, which Kobo, PocketBook, Apple Books and Google Play Books read. Recent Kindles take EPUB through Send to Kindle.

More in PDF

All tools in this category: PDF ·Updated November 7, 2026

Privacy choices

Google Analytics shows us which tools are used and whether they work. It may set cookies. Your choice is kept in this browser.