Skip to content
Aback ZIP

How-to · 4 min read · Updated

How to compress a ZIP file (and why it may not shrink)

Learn when recompressing a ZIP actually saves space, what to do when it does not, and how to read the before-and-after numbers honestly.

People usually want a smaller ZIP because something has a size limit. Recompressing can help a lot, a little or not at all, depending on what is inside. This guide shows how to tell in advance, how to recompress when it is worthwhile, and what actually works when it is not.

Check what is inside first

Open the archive in ZIP Viewer and look at the compression method and ratio of the biggest files. Entries marked Store were not compressed at all, which is the biggest opportunity. Entries that are Deflate-compressed but barely smaller than the original are usually already-compressed formats, and no ZIP tool will shrink them meaningfully.

What shrinks and what does not

ContentTypical result with Deflate
Plain text, CSV, JSON, XML, logsLarge savings, often 60-90% smaller
Source code, HTML, CSS, SVGLarge savings, often 60-80% smaller
Uncompressed images and audio (BMP, TIFF, WAV)Varies widely: screenshots and diagrams shrink a lot, photos and recordings much less
JPEG, PNG, WebP, GIF, HEICAlmost nothing; already compressed
MP4, MOV, MP3, AACAlmost nothing; already compressed
PDF, DOCX, XLSX, PPTX, EPUBUsually little; these formats are compressed internally, and Office and EPUB files are ZIPs themselves
ZIP, 7z, RAR, GZ archivesAlmost nothing

These ranges are typical, not promises. The only way to know for a given archive is to try, which is why Compress ZIP reports exact sizes.

Recompress a ZIP in your browser

  1. Open Compress ZIP and choose the archive.
  2. Start compression. Each file is recompressed at a high Deflate level and the smaller of the old and new versions is kept. Formats that are already compressed are left as they are.
  3. Read the report: original size, new size, bytes saved and percentage.
  4. Download only if it is worth it. If nothing got smaller, the tool says so instead of handing you a bigger file.

Recompressing is lossless. Every file extracts to exactly the same bytes as before; only the way it is packed changes.

What to do when the ZIP will not shrink

  • Remove what you do not need. Clean ZIP strips __MACOSX, .DS_Store, Thumbs.db, .git and dependency folders such as node_modules, which can make up a surprising share of a project archive.
  • Shrink the media itself. Photos and videos only get smaller by re-encoding them at a lower quality or resolution with an image or video tool. That changes the files, so do it deliberately and keep the originals.
  • Split instead of shrinking. If the problem is a size limit, Split ZIP makes parts that each fit and each open on their own.
  • Use a stronger format when both sides can open it. 7z or .tar.xz usually beat ZIP on text-heavy data, at the cost of compatibility. See ZIP vs 7Z.
  • Share a link instead. For very large files, a cloud storage link avoids attachment limits entirely.

Why maximum compression is only slightly smaller

Deflate, the method almost all ZIP files use, looks for repeated data within a 32 KB window. Higher levels search that window more thoroughly, which typically saves only a few percent over the default level while taking noticeably longer. Formats such as 7z and xz search windows of many megabytes and compress similar files together, which is where their advantage comes from.

Tools for this

Frequently asked questions

Because most of its contents were already compressed. JPEG, PNG, MP4, PDF and Office files rarely shrink further, no matter which ZIP tool or level you use.

More guides