Convertly Epub

Clean up and merge the CSS of an EPUB

Lighten the styling of an EPUB by choosing the CSS rules to keep.
  1. 1Import
  2. 2Adjust
  3. 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”

  1. Import the book

    Drop one or more EPUBs.

  2. Choose the level

    Careful cleaning, or full.

  3. Merge

    Option: group sheets linked by the same chapters.

  4. Check

    Browse the report of changes.

  5. 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