Neatbo.

TXT to EPUB

Turn plain text into an EPUB with chapters and an optional cover.

Browser-local processingInputTXTOutputEPUBUp to 10 MiB per file · File limit: 1
  1. 1Add input
  2. 2Adjust settings
  3. 3Get your result

Tool input and files are processed in this browser without being uploaded.

Your input

or drag and drop it here

Files stay on this device. Your originals stay unchanged.

.txt

Up to 10 MiB per file · File limit: 1

    0 characters · 0 bytes

    Book cover (optional, JPEG or PNG)

    Options

    Complete the required options first. You can keep the defaults for the rest.

    Use en for English or zh for Chinese, or a common BCP 47 tag such as en-US, zh-Hans or zh-Hant. Tags can be up to 35 characters; use hyphens, not underscores. This sets the book’s language metadata; it does not translate the text.

    Inputs are kept temporarily in this tab when switching tools. Refreshing or closing clears them; large results may need to be regenerated.⌘ / Ctrl + Enter to run

    Preparing the tool…

    Before you start

    Create an EPUB 3 book from plain text with chapter navigation. Detect common Chinese or English chapter headings, or set chapter line numbers, levels and titles manually; text without detected headings becomes one chapter. The text remains selectable in the exported book, and you can add a local PNG or JPEG cover.

    How to use this tool

    1. Paste text into “TXT” or choose one local TXT file. For a file, choose its encoding, read the preview excerpt and confirm that the displayed text is readable.
    2. Enter a book title and check the book language. Add an author and cover if needed. Detect chapters, then review their line numbers, levels and titles.
    3. Create and download the EPUB. Open it in your intended reading app to check the text, any cover and chapter links.

    Supported inputs and limits

    One plain-text file or pasted text up to 10 MiB; pasted text is measured in UTF-8 bytes. Optional local PNG/JPEG cover up to 5 MiB and 16,000,000 pixels. Up to 1,000 chapters, including any preface. Book title, author and manual chapter titles: up to 300 characters each; language tags: up to 35. Automatic detection checks heading lines up to 150 characters. Some characters, including many emoji, count as two toward character limits. For manual chapters, start line numbers must refer to existing lines in the source and be listed in ascending order, without duplicates; levels range from 1 to 3. For a file, read and confirm the decoded preview excerpt before exporting.

    Worked example

    Example input

    第一章 开始
    
    你好 😀
    
    第二章 继续
    
    第二段
    Example options
    {
      "title": "测试书",
      "author": "Fixture",
      "language": "zh"
    }

    Example output

    {
      "title": "测试书",
      "author": "Fixture",
      "language": "zh",
      "chapters": [
        {
          "title": "第一章 开始",
          "level": 1,
          "start": 1
        },
        {
          "title": "第二章 继续",
          "level": 1,
          "start": 5
        }
      ]
    }

    When something does not work

    Keep the original text. If a file looks garbled or decoding fails, select its source encoding—UTF-8, GB18030/GBK or Big5—and prepare the preview again. Confirm only when the displayed text is readable. The preview only shows the beginning, so check the downloaded book in a reading app too. The default strict UTF-8 check does not detect the source encoding or repair text already damaged in the original. If the source exceeds size or chapter limits, split it before creating the book.

    Frequently asked questions

    Are my files uploaded?

    No. TXT files, covers and pasted text are processed in your browser. Moving around the site can keep a temporary workspace in the same tab’s memory, subject to size and time limits. Refreshing or closing the tab clears it, so download results you want to keep.

    What if chapter detection is wrong?

    Compare the chapter list with your source text. In the editor, correct line numbers, levels and titles, and remove entries that are not real chapter starts. Add a missing chapter in the “Chapter list” JSON using line (start line), level and title. Check the preface, first chapter, short sections and appendices before generating; detecting chapters again replaces your manual edits.

    Why do page breaks change between readers?

    The exported EPUB uses reflowable text. Page breaks depend on screen size, fonts and reading app settings. Open the download in the app you plan to use and check its chapter links and paragraph breaks.

    Documentation & further reading

    Related tools