A powerful, client-side, single-page application (SPA) for professionally editing EPUB files, built entirely with HTML, CSS (Android 15 Dark Theme), and Vanilla JavaScript.
The editor allows users to load an EPUB file, perform common fixes and edits, and download the modified file—all without server-side processing.
This editor is designed to streamline the EPUB preparation process with a focus on fixing common metadata and structural issues.
| Feature | Description |
|---|---|
| Metadata Editing | Modify core EPUB metadata like Title, Author, Language, and Publisher. |
| Cover Replacement | Easily replace the cover image, with automatic updates to the OPF manifest (item and <meta name="cover">). |
| Cover Structure Fix | Option to Ensure cover is the first item in spine order to correct reading flow. |
| Front Page Generator | Add Front Page feature to automatically create a simple XHTML wrapper for the cover image and insert it as the first spine item if a proper cover wrapper is missing. |
| Table of Contents (TOC) | Generate/Replace TOC (NCX) by scanning chapter files using a customizable CSS Selector (e.g., h1, h2, .chapter-title). |
| Bulk Find & Replace | Apply multiple, non-global, or RegEx based text replacement rules across all chapter (XHTML/HTML) files in the EPUB package. |
| Client-Side Only | All processing is done locally in the browser for speed and privacy. |
| Modern UI | Utilizes an Android 15 Dark Theme inspired design for a clean and focused experience. |
- Frontend: HTML5, CSS3 (Vanilla), JavaScript (Vanilla)
- Key Library: JSZip for reading, modifying, and writing
.zipfiles (EPUB format). - Styling: Custom CSS implementing a modern, dark-themed UI.
Since this is a client-side application, you can use it immediately by visiting the demo link or by cloning the repository and opening the index.html file in your web browser.
- Navigate to the EPUB Professional Editor Demo.
- Click "Choose File" and select your
.epubfile. - The metadata fields will populate automatically.
- Make your desired edits in the Metadata, Cover, or TOC sections.
- Use the "Open Find & Replace Tool" to set up bulk text replacement rules.
- Click "Generate & Download EPUB" to save your modified file.
- Clone the repository:
git clone [https://github.com/BR1JM0H4N/Epub-editor.git](https://github.com/BR1JM0H4N/Epub-editor.git) cd Epub-editor - Open
index.htmlin your browser.
Note: The application uses standard browser APIs and does not require any build tools or local servers.
Contributions are welcome! If you have suggestions for new features, bug fixes, or improvements to the styling or core logic, please feel free to open an issue or submit a pull request.
- Fork the Project.
- Create your Feature Branch (
git checkout -b feature/AmazingFeature). - Commit your Changes (
git commit -m 'feat: Add amazing feature'). - Push to the Branch (
git push origin feature/AmazingFeature). - Open a Pull Request.
Distributed under the MIT License. See LICENSE for more information.