Skip to content

What Is File Compression?

A plain-language guide to file compression: how ZIP, JPEG, MP4, and PDF shrink data, and when compression helps everyday file sharing.

By Petr Samokhin

Your folder of exports weighs several gigabytes. Email allows tens of megabytes. Compression is how you close that gap without deleting the project.

The term covers single files and whole folders. You might compress one MP4 for Slack or run a batch pass on last month’s screen recordings before backup.

Compression in everyday terms

File compression means representing the same (or nearly the same) content with fewer bytes. Software reads the compressed file and reconstructs something usable: an image, a video, a document.

Two families matter for media work:

  • Lossless: smaller file, exact recovery (PNG, FLAC, ZIP on text).
  • Lossy: much smaller file, approximate recovery (JPEG, MP4, lossy PDF image downsampling).

Deep dive: lossy vs lossless compression .

Compression ratio depends on how predictable the data is. Random noise compresses poorly. A solid blue slide compresses extremely well even losslessly.

Lossless vs lossy approaches

Lossless algorithms find repeated patterns. A row of identical blue pixels in a PNG compresses tightly. Decode and every pixel matches the original.

Lossy algorithms remove detail humans rarely notice at normal viewing size. A JPEG might smooth skin texture slightly. A video codec merges similar blocks across frames.

Pick lossless when you might edit again. Pick lossy when the file travels over email, chat, or the web.

Hybrid workflows are normal: lossless master on disk, lossy copy in the ticket, lossless PDF for print, lossy PDF for review.

How compression differs by file type

Images

  • JPEG: lossy, great for photos.
  • PNG: lossless, supports transparency.
  • WebP and AVIF: can be either mode; often smaller than JPEG at similar quality.
  • HEIC: common on phones; efficient lossy stills.

Guides: compress images on Mac , compress images on Windows .

Video

Video stacks image compression across time. Codecs like H.264 and HEVC exploit motion: only changes between frames are stored in full.

Bitrate, resolution, and frame rate all affect size. See video bitrate explained and how to compress video on Mac .

PDF

PDF mixes vector text (sharp at any zoom) with embedded bitmaps. Compression often means downsampling those bitmaps while leaving text alone.

Guide: compress PDF on Mac .

Audio

MP3 and AAC are lossy. FLAC is lossless for archiving music or podcast masters.

GIF is a special case: palette limits act like lossy preprocessing, then frame data compresses within that palette.

ZIP and archives vs media compression

ZIP (and gzip, tar.gz) compress at the file level losslessly. That helps text, CSV, and SVG. It barely shrinks an already compressed MP4, JPEG, or PDF, because those formats already removed redundancy.

Zipping ten PNG screenshots might save a little. Re-exporting them as optimized JPEG might save much more, with quality tradeoffs.

Use ZIP for bundling, not as a substitute for media encoding.

Why compressed files still have limits

Compression is not infinite. A noisy 4K screen recording has little redundancy left to exploit. You must also reduce duration, resolution, frame rate, or accept visible loss.

Email and upload caps measure final bytes, not effort spent. A “compressed” 4K clip can still exceed 25 MB. See email attachment size limits for typical caps.

LeverTypical impact
Trim durationLinear savings
4K to 1080pLarge savings
Lower bitrateModerate to large
ZIP already-compressed mediaMinimal

See reduce file size on Mac for a cross-format checklist.

Safe habits when compressing

Keep an uncompressed or high-quality master in project storage. Export compressed copies into a delivery or exports folder with clear names.

Avoid re-compressing the same lossy file repeatedly. Each pass adds artifacts.

For contracts, medical scans, or unreleased product media, compress on your machine. Online upload tools copy data to servers outside your control.

Label outputs clearly: deck-master.pdf vs deck-email-8mb.pdf. Future you should not guess which file is safe to re-send.

When a simpler tool is enough

A one-off export from Preview, Photos, QuickTime, or Clipchamp can work when a single file lands under the limit after a sensible setting.

Local media tools fit better when the same oversize files arrive every week: mixed folders, reusable presets, preview before send, and processing that never leaves your computer. GetCompress compresses images, video, GIF, PDF, and audio locally, with video target file size when a portal lists a megabyte cap. Exact target size is video only. It does not replace a records system, redaction workflow, or full editor.