How to compress an EPUB and reduce its file size
To make an EPUB smaller, shrink its images: they are almost always what makes a book big, and resizing them to e-reader size can cut the file by half or more without any visible loss. Embedded fonts come second. Below you'll find how to see what is taking up the space, five free ways to compress an EPUB, and how small the file needs to be for Kindle and the ebook stores.
- What makes an EPUB file so big
- How small does the EPUB need to be?
- Find out what is taking up the space
- Method 1: rebuild comics and picture books at e-reader size
- Method 2: compress images in Calibre's editor
- Method 3: replace oversized images and the cover
- Method 4: subset or remove embedded fonts
- Method 5: shrink many books at once with Polish books
- What not to do
- Frequently asked questions
What makes an EPUB file so big
An EPUB is a zip file with a small website inside: chapters in HTML, a stylesheet, images and sometimes fonts. Text takes very little room, so a text-only novel is usually a megabyte or two. When an EPUB weighs 30, 80 or 300 MB, the cause is nearly always one of these:
- Images saved at print size. A photo exported at 4000 pixels wide, or saved as PNG, can weigh several megabytes, and an e-reader screen never shows those extra pixels.
- Comics, manga and picture books. In a fixed-layout book every page is an image, so 200 pages of high-resolution scans add up quickly.
- A huge cover. Covers are often exported straight from a design app as large PNG files.
- Embedded fonts. A full font family with bold and italic adds a few megabytes, and fonts for Chinese, Japanese or Korean can be far larger.
How small does the EPUB need to be?
EPUB has no size limit of its own. The limits come from where you send the book:
- Send to Kindle by email: 50 MB per email at the time of writing, according to Amazon's help pages. Your own email service may refuse even less; Gmail attachments stop at 25 MB.
- Send to Kindle website (amazon.com/sendtokindle): up to 200 MB per file at the time of writing. Between 50 and 200 MB, use the website instead of compressing. Our guide to putting EPUB books on a Kindle covers every way to send.
- Selling on Kindle with the 70% royalty: Amazon charges a delivery cost based on file size, $0.15 per MB in the US store at the time of writing. It is worked out on the file Amazon makes from your upload, and the KDP pricing page shows the figure after you upload.
Find out what is taking up the space
Before compressing anything, look inside:
- Open it as a zip. Copy the EPUB, rename the copy from
.epubto.zip, open it with your system's zip viewer or 7-Zip, and sort the files by size. - Calibre's Reports. In Calibre, select the book and click Edit book, then open Tools > Reports. The Files and Images tabs list every file with its size, so the heavy ones stand out right away.
If the top of the list is images, start with Methods 1 to 3. If it is .ttf or .otf files, go to Method 4.
Method 1: rebuild comics and picture books at e-reader size
For a comic, manga, photo book or any book that is one image per page, the quickest fix is to build the EPUB again from the page images with resizing turned on. Our free converters do this in your browser, and the files are never uploaded:
- Open the CBZ to EPUB converter if your pages are in a CBZ or ZIP file, or the images to EPUB converter if you have a folder of PNG, JPG or WebP images.
- Add the file or the images, check the page order, and fill in the title and author.
- Tick Reduce file size. Every page is resized to 2048 pixels on its longest side and saved as JPEG. That is still more than most e-reader screens show, so the pages look the same on the device.
- For manga, set Reading direction to Right to left, then click Create EPUB.
Only have the big EPUB, not the original pages? Make a copy, rename it from .epub to .zip and extract it: the page images are inside, usually in a folder named images or Images. Add those images to the converter and continue from step 2.
If the book started as a PDF, the PDF to EPUB converter has a similar switch: in Exact layout mode, tick Smaller file and each page is drawn at 1200 pixels instead of 1800. Cleaned scans also compress better, because flat white paper takes fewer bytes than grainy beige; our free Comic Scan Cleaner straightens, crops and whitens pages and saves them as a CBZ.
Shrink a comic EPUB in your browser
Rebuild it from its pages with "Reduce file size" on: 2048-pixel JPEG pages, the same look on an e-reader, a fraction of the size.
Open the CBZ to EPUB converterMethod 2: compress images in Calibre's editor
For a regular book with photos or illustrations in the text, use Calibre's book editor. It recompresses the images and leaves everything else alone.
- Add the book to Calibre, select it and click Edit book. If Calibre asks which format to edit, choose EPUB.
- Open Tools > Compress images losslessly.
- Lossless compression alone often saves only a few percent. For a real reduction, tick Allow lossy compression of JPEG images and set the quality. Around 80% is a reasonable start; lower values save more but can show blocky edges on line art.
- Run it, then save the book with File > Save (or Ctrl+S).
This option changes the quality of JPEG images but not their dimensions. If an image is 4000 pixels wide, it stays 4000 pixels wide, so huge images need Method 3 as well.
Tip: Keep a copy of the original EPUB before compressing, in case an image comes out worse than you expected.
Method 3: replace oversized images and the cover
When Reports shows a few images of several megabytes each, resizing just those saves the most for the least work.
- In Calibre's editor, find the image in the File browser on the left, right-click it and export it to your computer.
- Resize it in any image editor. Around 1600 pixels on the longest side is plenty for images inside the text. Save photos as JPEG; keep PNG only for drawings with flat colors, diagrams and screenshots. Paint's Resize on Windows or Preview's Tools > Adjust Size on a Mac is enough.
- Back in the editor, right-click the original image and choose the option to replace it with your new file. Keeping the same file name means every page that shows the image still finds it.
- Save the book.
The cover is often the heaviest image in a text book. Our EPUB cover changer replaces the cover in your browser; a JPEG of 1600 × 2560 pixels is a safe size for stores and e-readers (see EPUB cover size) and usually weighs well under a megabyte. If the cover doesn't show up afterwards, see why an EPUB cover is not showing.
Method 4: subset or remove embedded fonts
Many EPUBs carry whole font files even though the book uses only a few hundred characters from them. Calibre can strip each font down to just the characters the book uses, which is called subsetting:
- In the book editor, choose Tools > Subset embedded fonts, then save.
- When converting a book in Calibre, the same thing is available as Subset all embedded fonts in the conversion options.
Subset only the final version of the book: characters you add later may fall back to another font. You can also remove the embedded fonts altogether; most e-readers let people pick their own fonts anyway, so for a novel this is often fine. Our guide on how to edit an EPUB shows how to work with the files inside the book if you go that way.
Method 5: shrink many books at once with Polish books
Calibre's Polish books tool applies the same clean-ups to several books in one go. Select the books in your library and press P, the Polish books shortcut. Tick:
- Subset all embedded fonts
- Compress images losslessly
- Remove unused CSS rules
Click OK. Polish books only compresses images losslessly, so for image-heavy books the savings are modest; use Methods 1 to 3 on those.
What not to do
- Don't simply unzip and zip the book again. An EPUB must start with a file called
mimetype, stored without compression. Ordinary zip tools put the files in any order and compress all of them, and many readers then refuse the book. Calibre's editor and our tools write the file in the right order for you. - Don't convert to PDF to make it smaller. A PDF is usually bigger than the EPUB for the same book, and the text stops reflowing. Our comparison of EPUB vs PDF explains the difference.
- Don't try to compress store-bought books. Books with DRM can't be edited, and our tools reject them.
Check the book after compressing
Open the smaller EPUB in your browser and flip through the pages with images before you send it anywhere. Nothing is uploaded.
Open the EPUB readerFrequently asked questions
Is there an online EPUB compressor?
For comics and picture books, yes: our CBZ to EPUB and images to EPUB converters build the book in your browser with a Reduce file size option, without uploading it. For a text book with images inside, Calibre's editor (Method 2) gives better results than a website, because it can recompress the images without touching the text.
Will compressing an EPUB lower its quality?
Only the images can lose quality, and only with lossy settings or resizing. Text, chapters and the table of contents stay the same, and images resized to e-reader size look the same on an e-reader.
My EPUB is under 50 MB and still won't send to Kindle. Why?
Size is only one of the causes. Others include an unapproved email address, DRM and errors inside the file. Go through the checks in EPUB won't send to Kindle.
How do I compress a comic for a Kindle?
Rebuild it with Reduce file size ticked (Method 1) and send it from the Send to Kindle website. Our guide on reading comics on a Kindle also covers Kindle Comic Converter, which resizes pages for your exact Kindle model.