# HTML to EPUB Converter A free in-browser tool at https://htmltoepubconverter.com/ that merges one or more HTML files into a single EPUB 3 ebook. Each file becomes a chapter, with an automatic table of contents. Last updated: 2026-12-04 ## How it works 1. Upload one or more .html files (each file becomes a chapter) or paste HTML. Files added together are sorted by name in natural order (2 before 10), and any chapter can be moved up or down before converting. 2. Optionally set the title, author, language, and a cover image. Headings become a table of contents automatically. The form title names the book; each chapter keeps its own heading or title. 3. The ebook is built in the browser with JSZip and downloaded as a valid EPUB 3 file. The tool can extract readable article content (Mozilla Readability) and drop menus, ads, and sidebars. To keep local images, add the image files along with your HTML. Images are matched by filename (a src such as "my%20photo.png" finds "my photo.png"). Added images are listed separately and can be removed one by one. Remote images are not downloaded; the status line says how many images were not found. ## Facts - Conversion runs entirely in the browser. Those files are not uploaded to a server. - Page visits are counted with Cloudflare Web Analytics, which sets no cookies and never sees the files or pasted HTML. - This version does not fetch pages from a URL. To convert a web page, save it as HTML and upload the file (and any saved images). - Total input is capped at 50 MB. Over-limit files are rejected with a clear error. - Output is EPUB 3 (not EPUB 2): XHTML chapters, a navigation document, and an uncompressed mimetype entry. - Text encodings: UTF-8, and older encodings declared in the file or common for the browser's language, such as GBK/GB18030, Big5, Shift_JIS, EUC-KR, and Windows-1252. The file list shows the encoding that was used. - Table-of-contents entries and in-page links (#anchors) always point at targets that exist in the book; a link whose target is missing keeps its text but loses the link. Emoji and characters in any script are kept. - Up to 80 images are kept per chapter (per HTML or Word file). - The downloaded file is named after the book title, including Chinese, Japanese, and other non-Latin titles. - Images are kept when possible. Large images are resized to a 1600-pixel longest edge and recompressed. Tiny images are left alone. Transparent PNGs stay PNG when that still makes sense. WebP is converted to JPEG or PNG. - The converter is free to use and does not require an account. - Amazon’s Send to Kindle accepts EPUB files, so a downloaded ebook can be sent to a Kindle that way. The file also opens in Apple Books, Google Play Books, Kobo, and other EPUB readers. ## Sample: merge multiple HTML files into one EPUB A public worked example is at https://htmltoepubconverter.com/merge-html-files-into-one-epub/. It uses three HTML chapter files and one local image, converted in the browser with the same tool as the homepage. - Book title: Three Notes on Making an Ebook. Author: Demo Author. - Input files, in order: 01-the-blank-page.html (chapter “The Blank Page”), 02-pictures-on-the-wall.html (chapter “Pictures on the Wall”), 03-the-table-of-contents.html (chapter “The Table of Contents”), and letter-ornament.png (packed into chapter 2). - Final table of contents: The Blank Page; Pictures on the Wall; The Table of Contents, with nested entries “Chapter titles versus file names” and “Checking the result.” - Generated file: three-notes-on-making-an-ebook.epub, 13,803 bytes, SHA-256 af714fa2768c9232e9684d0b02d8da61e8340831bfae4590f5cbc9986a30a9ca. - Validated with EPUBCheck v5.4.0 on 3 December 2026, 18:02 NZDT (Pacific/Auckland). Result: no errors or warnings (0 fatals / 0 errors / 0 warnings / 0 infos). The report is for that exact file. Source files, the EPUB, a Calibre screenshot of the table of contents, and the EPUBCheck report are all linked from the sample page. ## Word to EPUB A companion page at https://htmltoepubconverter.com/docx-to-epub/ converts Microsoft Word .docx files to EPUB 3 in the browser, using Mammoth to turn the document into HTML and the same EPUB packer as the HTML converter. - Upload one or more .docx files; each file becomes a chapter. - Title and author are read from the document’s core properties when they are present. - Heading 1, Heading 2, and Heading 3 styles become the table of contents. - Images and tables are kept when possible. Large images are resized to a 1600-pixel longest edge. - Old .doc files (Word 97–2003) are not supported; save or export them as .docx first. - Text boxes, SmartArt, charts, comments, headers, and footers are often skipped. Footnotes are usually kept. - Conversion is free, requires no account, and is capped at 50 MB. Those files are not uploaded to a server. ## TXT to EPUB A companion page at https://htmltoepubconverter.com/txt-to-epub/ converts plain text .txt files to EPUB 3 in the browser. A Simplified Chinese version of the same tool is at https://htmltoepubconverter.com/zh/txt-to-epub/. - Upload one or more .txt files; their chapters follow one another in the order of the file list. - Encodings are detected automatically and shown in a preview: UTF-8 (with or without a byte order mark), UTF-16, GBK/GB18030, Big5, Shift_JIS, EUC-JP, EUC-KR, Windows-1252, and Windows-1251. The encoding can also be chosen by hand. - Chapter headings on their own line start new chapters and become the table of contents: "Chapter 1", "CHAPTER IV.", "Part One", "Prologue", and Chinese headings such as 第一章, 第十二回, 第一卷, 序章, and 番外. Chapters under a part or volume heading are nested under it. A contents list at the top of the file stays as text. Splitting can be turned off. - Paragraphs: one paragraph per line (common in web novels), or hard-wrapped lines with blank lines between paragraphs (as in Project Gutenberg files), which are joined back into paragraphs. The layout is detected and can be chosen by hand. - Text with no headings becomes one chapter; very long text is stored as several files of about 100,000 characters inside the EPUB, with one table-of-contents entry. - Chinese, Japanese, and Korean books get a two-character first-line indent and a table of contents titled in that language. The book language is detected from the text (Simplified and Traditional Chinese are told apart). - Title is taken from 《书名》 on the first line, or a first line followed by "by Name"; otherwise from the file name. Author is taken from an "Author:" or "作者:" line. - Conversion is free, requires no account, and is capped at 50 MB. Those files are not uploaded to a server.