slimdocs

Guides · Updated 2026-06-07 · 6 min read

How to compress a PDF without losing quality

Why PDFs get large, how compression actually works, and how to shrink a PDF dramatically while keeping text perfectly sharp.

A PDF that's too large to email or upload is one of the most common file headaches there is. The good news: most oversized PDFs can be shrunk by a huge margin without any visible loss of quality — if you compress them the right way. This guide explains why PDFs balloon in size, the difference between the compression methods, and how to get the smallest file that still looks perfect.

Why is my PDF so large?

A PDF's size almost always comes down to one thing: embedded images. Text and vector graphics (lines, shapes, logos drawn mathematically) take up almost no space. A 40-page contract that's pure text might be 200 KB. Add a few high-resolution scanned pages or product photos and the same document can jump to 20 MB or more.

The three usual culprits are:

Lossless vs. lossy compression

There are two fundamentally different ways to make a PDF smaller:

The mistake cheap tools make is applying lossy compression to the entire page — they flatten everything, including your crisp vector text, into a single low-resolution image. That's why the text on a badly compressed PDF looks fuzzy.

The right way: optimize images, leave text alone

High-quality PDF compression treats the two kinds of content differently. It leaves all text and vector art completely untouched — so words stay razor-sharp at any zoom level — and only downsamples and recompresses the embedded raster images, which is where the bulk actually lives. A photo displayed in a 4-inch-wide column simply doesn't need 300 DPI of detail; bringing it down to 150 DPI can cut its size by 75% with no visible difference on screen.

This is exactly how slimdocs compresses PDFs. It uses Ghostscript to downsample only the images, applies a tuned JPEG quality per level, and then runs a lossless pass with qpdf to squeeze the file structure further. Vector text is never rasterized, so headings and body copy stay perfectly legible.

Choosing a compression level

slimdocs offers four levels, and picking the right one matters:

How much smaller can you expect?

It depends entirely on what's inside:

Step by step

  1. Open the slimdocs compressor and drop your PDF in.
  2. Choose a level — start with Balanced.
  3. Compress, then check the before/after sizes shown.
  4. If you need it smaller and can accept slightly softer photos, try Maximum or Extreme.
  5. Download. Your file is processed in memory and never stored on a server.

That's it — a dramatically lighter PDF that still reads perfectly.

Try it now — free

No sign-up. Files are processed in memory and never stored.

Open slimdocs

Related guides

Why scanned PDFs are so large (and how to shrink them)

Scanned documents create enormous PDFs. Here's the technical reason why, and the best way to reduce their size without making the text unreadable.

JPEG vs PNG vs WebP vs AVIF: which image format should you use?

A practical guide to the four major image formats — when each one wins, how much smaller WebP and AVIF really are, and how to convert between them.