Compress
Compress EPUB
Upload an EPUB to re-compress its internal files with maximum DEFLATE compression. The tool rebuilds the EPUB archive with optimized compression for HTML, CSS, XML, fonts, and images. View the before and after file sizes and download the compressed EPUB. The mimetype file is kept uncompressed as required by the EPUB specification.
Input formats
Output formats
Common uses
- Reduce an EPUB to meet a platform's file size limit
- Compress an EPUB before emailing or sharing
- Optimize an EPUB for faster delivery
Limitations
- Compression reduces ZIP overhead. Image quality is not changed in the default mode.
- The mimetype file must remain uncompressed per EPUB spec — this is handled automatically.
- DRM-protected EPUBs cannot be processed.
- For significant size reduction, the largest gains come from compressing large images inside the EPUB.
Your e-book files, handled privately
This tool runs entirely in your browser. On this site, your files are not uploaded to a server. This tool does not remove DRM or bypass copyright protection. Only upload files you own or have permission to process.
When re-compressing an EPUB actually helps
Compress EPUB rebuilds an EPUB archive so that every internal file is stored with maximum DEFLATE compression, then reports the original size, the bytes saved, and the new size. It fits situations where the file is already finished and you just want a leaner copy: trimming an EPUB to fit a storefront or email size cap, slimming a library of older books that were packaged with weak or no ZIP compression, or preparing a tidy archive copy before backing up a collection.
For self-publishers and small presses it is a final-step housekeeping pass after the cover, metadata, and content are settled. EPUBs exported from some authoring tools leave files uncompressed or only lightly compressed, and a clean re-pack recovers that overhead without touching the reading experience. Students and readers sharing a book over a slow connection or a messaging app may also shave enough to make the transfer easier.
The honest expectation is that gains come from squeezing out ZIP overhead. If a book is mostly text, the saving is usually modest because text already compresses well. The largest files in most EPUBs are images, so image-heavy books have the most room to move; text-only books will see small percentages.
The flow and what gets compressed
Drop or select a single .epub file, choose whether to also re-compress images, then click Compress EPUB. The tool reads the archive in your browser, writes a fresh archive, and shows a three-up readout of original size, bytes saved, and new size with a percentage. Download the result, which is named with a -compressed suffix; nothing is uploaded and nothing persists once the tab closes.
HTML, XHTML, CSS, XML, OPF, NCX, SVG, and embedded TTF/OTF fonts are always packed with maximum DEFLATE (level 9). The mimetype file is stored uncompressed at the start of the archive, exactly as the EPUB specification requires, so the output stays a valid EPUB. By default images keep standard ZIP compression; ticking Compress image files applies maximum DEFLATE to JPG, PNG, WebP, and GIF too.
What it does not do is re-encode images, lower their quality, resize them, downsample fonts, subset glyphs, or rewrite your HTML and CSS. It is purely a re-archiving step. JPEGs and most PNGs are already compressed formats, so applying ZIP to them often yields little, which is why the image option can help on some books and barely move others.
Where it falls short and what trips people up
DRM-protected EPUBs cannot be processed: if the file contains an encryption manifest, the tool stops and tells you rather than producing a broken output. The most common disappointment is expecting a dramatic shrink from a text-heavy novel — there simply is not much overhead to remove, and a result of a few percent is normal and not a failure.
A frequent misread is the image checkbox. Because it changes only the ZIP layer and never the pixels, turning it on for a photo-rich book may save almost nothing, since JPEG and PNG data resist further DEFLATE. If you genuinely need a much smaller image-heavy EPUB, the real lever is reducing the source images themselves before packaging, which this tool deliberately does not do.
Other pitfalls: it works on one EPUB at a time, not folders or batches; very large books take longer because the work happens on your device; and the output is a new file, so confirm you are sharing the -compressed copy rather than the original. It also will not repair a malformed or already-corrupt EPUB.
Checking the compressed copy before you use it
Open the downloaded -compressed.epub in a reader and skim the table of contents, a few chapters, the cover, and any image-heavy or styled pages. Confirm fonts still render, internal links and the navigation still jump correctly, and that nothing has gone missing. Compare the reported new size against the original to make sure the trade was worth it; if the saving is negligible, the original is fine to keep.
If the EPUB is bound for a store or device, validate it afterward and run it through the relevant store or e-reader checker before submitting, since size is only one of many acceptance criteria. Keep your original until you have confirmed the compressed copy reads cleanly end to end.
For any official, financial, or legal publication, verify the result manually rather than trusting the size readout alone. Re-open the file, check that text, figures, and metadata are intact and accurate, and have a second person review it where the stakes call for it.
Frequently asked questions
HTML, CSS, and XML files typically compress very well (40–70% reduction). Images in formats like JPG are already compressed and may see only small reductions. Large EPUBs with uncompressed assets see the biggest savings.
No. Re-compressing the archive does not change the reading content, formatting, or image quality. It only changes how files are stored inside the ZIP container.
The EPUB specification requires the mimetype file to be the first entry in the archive and stored uncompressed, so reading apps can identify the file as an EPUB. The tool handles this automatically when it rebuilds the archive.
No. The archive is re-compressed in your browser. On this site, your files are not uploaded to our servers — the smaller EPUB is built on your device and downloaded directly.
Related tools
Tool last reviewed: June 30, 2026 · Report a problem