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, .log70-90% smallerLots of repeating patterns
.docx, .xlsx, .pptx5-20% smallerAlready zip files internally
.bmp, .tiff, .wav50-80% smallerUncompressed formats
.jpg, .png, .gif1-5% smallerAlready compressed
.mp4, .mkv, .mp30-2% smallerAlready highly compressed
.pdf5-30% smallerVaries 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_Store files: 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)GoodFastUniversal
.7z (LZMA2)ExcellentSlowerNeeds 7-Zip
.tar.gz (gzip)GoodFastLinux/Mac native
.tar.zst (Zstandard)ExcellentVery fastModern Linux
.rar (RAR5)Very goodMediumNeeds WinRAR

Last updated: March 2026