Worked example · EPUB 3 · EPUBCheck
Merge Multiple HTML Files into One EPUB
Yes. This converter merges multiple HTML files into a single EPUB 3 ebook. Each file becomes a chapter, in the order shown in the file list, and headings become the table of contents automatically. Below is a real three-chapter example, with the source files, the EPUB produced in the browser, and the EPUBCheck result for that exact file.
To build the same kind of book from your own files, open the HTML to EPUB converter.
The sample book
The book is titled Three Notes on Making an Ebook, by Demo Author. It was built from three HTML files and one local PNG, using the same in-browser converter as the homepage — not a separate server-side tool. The files were added in this order. The image is not a chapter; it is packed into chapter two because that file references it by filename.
| Input file | Size | Becomes |
|---|---|---|
01-the-blank-page.html |
1,021 bytes | Chapter 1: The Blank Page |
02-pictures-on-the-wall.html |
1,189 bytes | Chapter 2: Pictures on the Wall |
03-the-table-of-contents.html |
1,353 bytes | Chapter 3: The Table of Contents |
letter-ornament.png |
8,839 bytes | Local image in chapter 2 |
The book title on the form is the name of the ebook. It is not copied onto every chapter. Each chapter title comes from that file’s own heading.
Final table of contents
This is the table of contents stored in the generated EPUB, and the same list Calibre shows when it opens the file:
- The Blank Page
- Pictures on the Wall
- The Table of Contents
- Chapter titles versus file names
- Checking the result
Download the source files and the EPUB
You can open the HTML files in a browser, add them to the converter yourself, or download the exact EPUB this page describes.
EPUBCheck result for this file
The report below is for the downloadable EPUB on this page, not for a different sample. The SHA-256 hash identifies that exact file.
- Validator
- EPUBCheck v5.4.0
- File
three-notes-on-making-an-ebook.epub- Run
- 3 December 2026, 18:02 NZDT (Pacific/Auckland)
- EPUB version checked
- EPUB 3.4 rules
- Result
- No errors or warnings detected. Messages: 0 fatals / 0 errors / 0 warnings / 0 infos.
- Size
- 13,803 bytes
- SHA-256
- af714fa2768c9232e9684d0b02d8da61e8340831bfae4590f5cbc9986a30a9ca
You can re-run EPUBCheck on the downloaded file and compare the hash. If the hash matches, you are validating the same bytes described here.
How to merge multiple HTML files into one EPUB
-
01
Add your chapter files
Upload two or more .html files. Each file becomes a chapter, in the order shown in the file list (files you add together are sorted by name, and you can move a chapter up or down). To keep local images, add the image files along with your HTML.
-
02
Set the book title
The title field names the whole ebook. Each chapter keeps its own title, taken from its heading or title tag, not from the file name.
-
03
Download one EPUB
Convert in your browser. You get a single EPUB 3 file with a table of contents, not one ebook per file.
Ready to merge your own chapters? The conversion runs in your browser — your files are never uploaded to a server.
Open the HTML to EPUB converter