Clean up and merge the CSS of an EPUB
Lighten the styling of an EPUB by choosing the CSS rules to keep.- 1Import
- 2Adjust
- 3Download
Drag and drop your EPUB books here
or click to select them from your device · 100% processed in your browser
About this tool
“Clean / merge CSS” lightens an EPUB’s style sheets: comments removed, identical rules merged, unused rules deleted (no element targeted), sheets grouped and formatting normalised.
Two levels: careful or full cleaning, and merging of sheets linked by the same chapters; a report lists the changes.
Main benefits
- Comments removed
- Duplicates merged
- Unused rules
- Sheets grouped
How to use “Clean / merge CSS”
Import the book
Drop one or more EPUBs.
Choose the level
Careful cleaning, or full.
Merge
Option: group sheets linked by the same chapters.
Check
Browse the report of changes.
Collect
Save the book with lightened styles.
Key features
- Comments removed
- Identical duplicate rules merged
- Unused rules: no element targeted
- Sheets grouped into one
- Code formatting normalised
- Report: what changed
Compatible formats
Accepted formats
- EPUB
Output formats
- EPUB
- ZIP
Clean the text too?
To remove empty paragraphs and pasted styles in the text, use text cleaning.
Common use cases
CSS from a Word export
Strip hundreds of superfluous rules.
Book with ten sheets
Group them into one.
Weight
Save a few KB on each chapter.
Before formatting
Start again from a sober base.
Frequently asked questions (FAQ)
What differs between careful and full?
Careful deletes only the safe; full also removes rules without a target.
Does the look change?
It should stay identical; compare in a reader.
What does merging do?
It groups into one the sheets linked by the same chapters.
Where do I see the changes?
In the report provided.
What capacity?
20 books per pass, 100 MB each.
Related tools
Discover other tools for your e-books and EPUB files.
File privacy
Your files stay in your browser: processing happens on your device and no book is sent to a server.
Understanding the tool settings
Here is what each setting really changes in the result.
Cleaning
Careful or full.
Merging
Group sheets linked by the same chapters.
Common problems and solutions
Style gone?
A rule targeted a non-existent element: restore the original.
No change?
The sheets were already clean.
Different rendering?
Switch to careful cleaning.
Sheets not merged?
They are not linked by the same chapters.
Book not read?
Only EPUB is accepted.
Bulky book?
Above 100 MB it is set aside.
Best practices
- Careful first: then full if needed.
- Compare before and after: in a reader.
- Read the report: list of changes.
- Merge the sheets: fewer files.
- Validate afterwards: conformity.
- Keep the original: with its styles.
Security and privacy
Local processing
The work is done directly in your browser, on your device.
No upload required
Your files are sent to no server: nothing is uploaded or stored.
Local cleaning
Styles are rewritten by your browser; the book goes to no server.
Compatibility and limits
What the tool accepts, what it produces and how far it goes.
- Input: EPUB books. Output: the books with lightened CSS, as EPUB, in a ZIP for a series.
- Capacity: 20 books per pass, 100 MB each.
Go further
Check fonts
List embedded fonts, read their real name, format and embedding rights, and spot those that are missing, unused or too heavy.
Validate an EPUB
Check your book’s structure, package, navigation, XHTML and resources with EPUBCheck, and read errors and warnings file by file.
Repair an EPUB
Repair paths, manifest, reading order, mimetype, metadata and navigation, and see exactly what changes before you download.
French typography
Apply the rules of French typography to your whole book: non-breaking spaces, « » quotation marks, curly apostrophes, ellipses and dashes.
