Skip to content
IhatePDF

PDF compression explained: lossless vs lossy

What actually happens when a PDF is compressed, and why the results vary so much between files.

Skip the reading. Use Compress PDF.Shrink it until the email goes through. Free, no sign-up, nothing uploaded.›

A PDF is a container

A PDF bundles text instructions, fonts, images and metadata into numbered objects. Each object can be compressed separately, which is why two PDFs that look identical can differ in size by 20×.

Lossless: tidying the structure

Lossless compression shrinks the file without changing anything you can see, typically by packing many small objects into compressed streams and cutting redundant data. Savings are usually modest, often in the 5–30% range, but quality is untouched.

Lossy: re-encoding images

Lossy compression throws away detail you're unlikely to notice. Images are resampled to a lower resolution and re-encoded as JPEG at a chosen quality. This is where large savings come from on scans and photo-heavy files.

  • Resolution (DPI): how many pixels per inch. Around 100–150 DPI is fine on screen; print usually wants 200–300.
  • JPEG quality: higher keeps more detail. Below about 50%, blocky artefacts start to show around text.

Why I Hate PDF tries both

There's no single best method. A scanned contract shrinks dramatically when it's redrawn as compressed images, while an exported report barely moves and would lose selectable text. So Compress PDF tries both: it repacks the file losslessly, then redraws each page as a JPEG at your chosen level. The image version is only used if it's at least 30% smaller, and the result screen tells you which one you got. If neither beats the original, you get a message instead of a pointless copy.

Skip the reading. Use Compress PDF.Shrink it until the email goes through. Free, no sign-up, nothing uploaded.›

More PDF guides