Skip to content
Aback ZIP

How-to · 4 min read · Updated

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

Make a ZIP smaller by recompressing its contents at a higher level, with honest before-and-after sizes and no upload of your files to a server.

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.

Read the report properly

The report matters more than the download button. It tells you whether recompressing was worth doing for this particular archive, rather than assuming that a tool finishing means it helped.

NumberMeaningHow to use it
OriginalSize of the ZIP you suppliedThe baseline to compare against
CompressedSize of the rebuilt ZIPWhat you would actually download
SavedOriginal minus compressedIf it is zero, recompression gained nothing
PercentageSaving measured against the originalUseful when a service has a hard size cap
Per-file actionRecompressed, kept or skippedShows which entries produced the gain

If nothing gets smaller, the page says the ZIP is already as small as this tool can make it and offers no download. That is a result, not a failure.

Choose a strategy and a level

You can decide how aggressively the tool tries. Both options keep a file's original compressed data whenever a new version would be larger, so choosing the slower option cannot make the archive bigger.

SettingWhat it doesPick it when
Smart (default)Skips formats that are already compressed; much fasterMixed archives; the sensible first try
Try every fileRecompresses all readable entries, keeping a new version only if it is smallerText-heavy archives where every byte counts
Level 6Balanced Deflate effortNormal use
Level 9Searches harder for repeated patternsYou can afford the extra time for a small gain

A practical decision tree

  1. Write down the hard limit you are aiming for, including any allowance for Base64 encoding in email.
  2. Inspect the biggest entries in ZIP Viewer and note their compression methods.
  3. If most of the bulk is JPEG, MP4, PDF or Office files, stop here: recompressing will not close a large gap.
  4. If the bulk is text, code, CSV or logs, run Compress ZIP and read the exact saving.
  5. If the gain is trivial, consider skipping this step and going straight to cleaning or splitting.
  6. If the archive is still too big, remove junk with Clean ZIP, or use Split ZIP to fit the limit instead of shrinking the contents.
  7. A format with a larger compression window, such as 7z or .tar.xz, may do better on text-heavy data if both sides can open it. See ZIP vs 7Z.

Keep track of what changed

  • The original ZIP is never modified. Keep it until you have checked the result.
  • Entries that could not be recompressed, including encrypted entries and methods this engine cannot decode, are copied unchanged rather than dropped.
  • Folder paths and stored modification times are kept, and the archive comment is carried over.
  • Use Compare ZIP to confirm that no file went missing, and ZIP Checksum if you need hashes of the contents.
  • Finish with Test ZIP Integrity when the archive is going to someone else.

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