SavingBits

Compression

Does zipping photos and videos save space?

≈ 0% saved

for JPEG photos and MP4 videos: they are already compressed. Zip helps text-like files a lot.

Hardly at all. JPEG, HEIF, MP3 and MP4 are already compressed, and compressing compressed data finds almost nothing left to remove. Text, spreadsheets and logs are another story.

The arithmetic

  1. A compressor removes repetition and predictability
  2. JPEG, HEIF, MP3 and MP4 already removed it when the file was made
  3. What is left looks random to zip, so the archive is about the same size, sometimes a little bigger
Typical zip/gzip ratios by file type (estimates)
File typeTypical ratio
Plain text, CSV, logs3:1 – 10:1
HTML, JSON, source code3:1 – 8:1
Office documents (.docx, .xlsx)≈ 1:1 (already zipped inside)
JPEG / HEIF photos≈ 1:1 (1–3 % saving)
MP3 / AAC music≈ 1:1
MP4 / MOV video≈ 1:1
BMP / uncompressed TIFF2:1 – 4:1
WAV audio1.1:1 – 1.3:1 with zip; ~2:1 with FLAC

Try your own numbers in the compression ratio calculator