How to Reduce Zip File Size
Zip not small enough? Here are proven techniques to get the smallest possible compressed files.
Why Zip Files Can Still Be Large
Zip compression works by finding repeating patterns in data. Some file types compress very well, while others barely shrink:
| File Type | Typical Compression | Why |
|---|---|---|
| .txt, .csv, .log | 70-90% smaller | Lots of repeating patterns |
| .docx, .xlsx, .pptx | 5-20% smaller | Already zip files internally |
| .bmp, .tiff, .wav | 50-80% smaller | Uncompressed formats |
| .jpg, .png, .gif | 1-5% smaller | Already compressed |
| .mp4, .mkv, .mp3 | 0-2% smaller | Already highly compressed |
| 5-30% smaller | Varies by content |
1. Use Maximum Compression Level
Most zip tools default to "Normal" compression. Switching to maximum can squeeze out extra savings.
7-Zip
In 7-Zip's "Add to archive" dialog, set Compression level to "Ultra" and Compression method to "Deflate64" for best zip compatibility, or switch to 7z format with LZMA2 for maximum compression.
Terminal (Linux/Mac)
# Maximum compression (-9)
zip -9 -r archive.zip my-folder/
# Default compression is -6, range is -0 (store) to -9 (best)
2. Pre-Compress Your Files Before Zipping
Since zip can't shrink already-compressed files much, reduce file sizes before zipping:
- Images: Convert PNG to JPEG (if transparency isn't needed), or use tools like TinyPNG to optimize. Reduce resolution if full-size isn't needed.
- Videos: Convert to H.265/HEVC or use HandBrake to reduce bitrate.
- PDFs: Use "Reduce File Size" in Adobe Acrobat, or an online PDF compressor.
- Documents: Remove embedded high-res images, or compress images within the document.
3. Remove Unnecessary Files
Before creating the archive, clean up:
- Delete temporary files (
.tmp,.bak,~$files) - Remove
node_modules,.git, and other development folders - Clear browser caches and thumbnails
- Use file deduplication to find and remove duplicates
- On Mac, exclude
.DS_Storefiles:zip -r archive.zip folder/ -x "*.DS_Store"
4. Use 7z Format Instead of Zip
The .7z format typically achieves 10-30% better compression than .zip thanks to its LZMA2 algorithm. The trade-off is that recipients need 7-Zip or a compatible tool to open it.
# Create a 7z archive with maximum compression
7z a -t7z -mx=9 archive.7z my-folder/
5. Split Large Archives
If your zip is too large for email (over 25 MB), you can split it into smaller parts:
# 7-Zip: Split into 10MB parts
7z a -v10m archive.7z my-folder/
# Linux zip: Split into 25MB parts
zip -r -s 25m archive.zip my-folder/
This creates files like archive.zip, archive.z01, archive.z02, etc. Send each part separately, and the recipient can extract by opening the first file.
For more on this topic, see our guide to emailing zip files.
Compression Format Comparison
| Format | Compression | Speed | Compatibility |
|---|---|---|---|
| .zip (Deflate) | Good | Fast | Universal |
| .7z (LZMA2) | Excellent | Slower | Needs 7-Zip |
| .tar.gz (gzip) | Good | Fast | Linux/Mac native |
| .tar.zst (Zstandard) | Excellent | Very fast | Modern Linux |
| .rar (RAR5) | Very good | Medium | Needs WinRAR |
Last updated: March 2026