A ZIP usually stops shrinking because its contents are already compressed. Deflate can only exploit repeated byte patterns; if the underlying data has very few, raising the level or changing tools will not help. The useful question is what is inside the archive, not which button you pressed.
What compression can actually do
ZIP entries are commonly compressed with Deflate, a lossless method defined in RFC 1951. It replaces repeated sequences with short references to earlier data. Text, source code, CSV and log files contain a lot of repetition, so they shrink well. Random bytes contain almost none, so they shrink hardly at all.
This is a property of the data, not a setting. A compression level changes how hard the encoder searches for repeats. At high levels it may find a few more, but it cannot create redundancy that is not there. That is the reason a second pass over an existing ZIP almost always disappoints: the first pass already removed the easy wins.
If you want the mechanics of the format explained from first principles, how ZIP compression works walks through Deflate and the archive structure.
Already-compressed formats
Many common file types apply their own compression when they are created. Putting them in a ZIP bundles them into one file, which is often the real goal, but it rarely makes the bytes smaller.
| Content | Why it resists further compression | What still helps |
|---|---|---|
| JPEG, PNG, WebP | Image codecs have already removed spatial redundancy | Remove unused images; resize only if you accept a quality or resolution change |
| MP4, MP3, other media | Media codecs compress frames and audio aggressively | Shorter clips, fewer tracks, or a different codec chosen when the file is made |
| Often contains compressed image and font streams | Re-export with lower-resolution images if that is acceptable | |
| DOCX, XLSX, PPTX | Office files are ZIP containers themselves | Remove embedded media or unused content before saving |
| Existing ZIP, 7z or RAR | Entries have already been through a compressor | Remove duplicate or unnecessary entries rather than recompressing |
| Encrypted data | Encryption makes bytes look random | Nothing; encrypted data cannot be meaningfully compressed after the fact |
There are exceptions. A PNG with an unusual filter strategy or a PDF full of uncompressed text may shrink further, but you need to test rather than assume.
When compression genuinely works
Highly repetitive data is where compression shines. Aback ZIP's own benchmark suite records an extreme example: a 1 GB file of zeros builds into a roughly 1 MB ZIP, a ratio of about 1000:1. That figure comes from the project's benchmarks on an Apple Silicon machine, not from a general promise about real-world folders.
- Logs and CSV exports with repeated headers or values shrink substantially.
- Source code and configuration contain repeated syntax and whitespace.
- Uncompressed bitmaps and simple text are classic winners.
- Backups with many similar versions can benefit from archiving tools that deduplicate across files, though ZIP itself does not do that by default.
The opposite case is equally instructive: storing random bytes in a ZIP makes the archive slightly larger than the inputs, because each entry carries a header. That overhead is normal, not a bug.
Overhead and the many-small-files problem
Every ZIP entry has a local header, a name field and a record in the central directory, all defined in PKWARE's APPNOTE. Those bytes are there even for a zero-length file. With a few large files the overhead is invisible; with thousands of tiny files it becomes a significant part of the archive.
This is why a folder of 50,000 tiny text snippets may compress well in theory but not improve much in practice: the content saved is small, and the per-entry cost stays. Bundling small files into a single text or TAR file before compressing can help in controlled workflows, but it changes the structure and should be done deliberately. The trade-off is worth weighing explicitly. A single bundled file may compress better, but recipients can no longer pick out one entry without unpacking the whole thing, and a single damaged byte can affect a much larger portion of the data. For archives that will be searched or updated often, keeping separate entries is usually more useful than saving a few kilobytes. For a one-off transfer of a static collection, bundling may be perfectly reasonable. Neither choice is universally correct, and both are visible in the per-entry sizes your archive viewer reports.
You can see the effect yourself in ZIP Viewer: compare each entry's compressed size with its original size, then look at the totals. The tool reads the archive index, so this inspection does not extract everything.
What to do when the archive must be smaller
- Inspect the archive first. Find the largest entries and check whether they are already-compressed formats.
- Remove junk: macOS metadata, thumbnails, build output, editor files and dependency folders. Clean ZIP handles common patterns with a preview before changes are applied.
- Look for repeated copies of the same file. Find Duplicate Files in ZIP compares sizes, CRC-32 values and, for an exact answer, SHA-256 hashes.
- Try recompression only on entries that can still shrink. Aback ZIP's Compress ZIP keeps the smaller version of each entry and reports the real before-and-after sizes.
- If the problem is a transfer limit rather than storage, split the archive into parts that each open on their own. Splitting does not reduce total size, but it solves the actual constraint.
Deleting files to save space is a content decision, not a compression setting. Make sure the removed entries are genuinely disposable before you send the archive.
Reading the result honestly
A recompression tool should report four things: original size, output size, bytes saved and percentage reduction. If the result is larger, it should say so and let you keep the original. A progress bar reaching 100 percent proves that the operation ran; it says nothing about whether the output is smaller.
Aback ZIP follows that rule. It stores the smaller of the original and recompressed entry, and its report states when nothing was gained. If you want to check the output independently, extract one file from each archive and compare hashes with a checksum tool. Lossless compression means the extracted bytes should be identical.
For the byte-level reason why two archives with identical contents can have different sizes, see inside a ZIP file, byte by byte.
When a larger result is the right result
Sometimes a larger archive is preferable. Storing an already-compressed file without trying to compress it again is faster and uses less memory. Choosing Store mode for media makes extraction cheaper on a weak device. Keeping duplicates inside an archive may preserve a folder layout that someone expects. Size is one objective among several, and the honest tool tells you the trade-off rather than hiding it behind a success message.