How to Compress a PDF Without Losing Quality
What actually makes a PDF file large, why compression sometimes barely shrinks it, and how to get a smaller file without visibly softening scans or photos.
Quick answer: A PDF compressor shrinks file size by re-encoding the embedded JPEG images inside the document at a lower quality or resolution, while leaving text, fonts, and vector graphics completely untouched. That's why a scanned document (mostly images) can shrink by 80% or more, while a document exported from a word processor (mostly text) barely changes size at all, there's simply very little image data in it to begin with.
A 40-page PDF that started life as a Word document is usually a few hundred kilobytes. The same 40 pages, scanned on an office photocopier, can easily land at 80 MB. Both are "one PDF," and that gap is the whole story of why compression works dramatically on some files and does almost nothing on others.
What a PDF actually is, structurally
A PDF isn't a single file format so much as a container format: it bundles together whatever mix of content a page needs (text runs, font data, vector drawing instructions, and embedded raster images) into one file, along with a layout description that says where each piece goes on the page. Compression only ever touches one of those pieces, the embedded raster images, which is the key fact that explains almost everything else in this article.
What actually takes up the space
Inside a PDF you'll typically find some mix of:
- Text and fonts: usually tiny. A page of body text, even embedded with its own font, rarely adds more than a few kilobytes.
- Vector graphics: logos, diagrams, chart lines. Also small, since they're stored as drawing instructions rather than pixels.
- Raster images: scanned pages, photos, screenshots. This is almost always where the size comes from, because a single full-page color scan at print resolution can be several megabytes on its own, and a 40-page scanned document is 40 of those.
That last category is why "compress my PDF" and "compress the images in my PDF" are, in practice, the same task. A compressor that only strips a bit of unused metadata might shave off a few percent. One that actually re-encodes the embedded images is doing the real work.
How image recompression actually reduces size
Most embedded PDF images are already stored using JPEG encoding, which works by discarding fine visual detail a viewer is statistically unlikely to notice (see lossy compression for the mechanism in more depth). A PDF compressor typically does two things: it re-runs that same JPEG encoding at a lower quality setting than the original, discarding more detail than the first pass did, and it can also downsample the image's resolution outright, since a scan captured at 600 dots per inch carries far more pixels than a screen or a reasonable print job actually needs. Both moves shrink the file; downsampling resolution tends to save more, since it reduces the raw pixel count the encoder has to represent at all.
Why the result varies so much file to file
This is the part that trips people up: run the same compressor on two different PDFs and get wildly different results. The reason is almost always what's inside them, not the tool.
A document exported straight from a word processor or design tool has no raster images to shrink, so a compressor genuinely has little to do. A document scanned from paper is the opposite case: it's effectively a stack of photographs with text-shaped content, and those photographs compress well because scans usually carry far more resolution than needed for on-screen reading.
Compress a PDF works exactly on this principle: it recompresses the JPEG-encoded images inside your file and strips unused objects, then shows you the size difference before you download anything, so you're never guessing whether it actually helped.
Picking a compression target
Most compressors offer some version of light, balanced, or aggressive, and the tradeoff is exactly what it sounds like: a bigger drop in file size costs a bit more image sharpness. A few rules of thumb:
- Light is right for anything that might get printed, or where fine text inside an image (a scanned form, a signature) needs to stay crisp.
- Balanced is the sensible default for emailing a document, uploading it to a portal with a size cap, or general archiving.
- Aggressive makes sense for a bulk archive of scans you'll skim on screen but never zoom into.
What to check before trusting a compressed result
Zoom into any small text that sits inside an image, a signature block, a stamped date, a form field filled in by hand, since that's the content most likely to show visible softening first. Large photos and full-page scans of typed text tend to tolerate a heavier setting with no visible difference, small handwritten or stamped detail tolerates it worst. Since the original file is never modified, there's no risk in trying a stronger setting first and dialing it back if that detail looks soft.
It also helps to compare the compressed file size against a rough expectation rather than just eyeballing the preview: a genuinely image-heavy scan should drop sharply at even a balanced setting, while a mostly-text document that barely moves is a sign there was little to compress in the first place, not that the tool underperformed.
When compression isn't actually the right tool
Two situations that look like a "compress this PDF" problem usually aren't:
You only need part of the document. If a 200-page report only matters for its first 10 pages, splitting out just those pages will shrink the file far more than compression ever could, because you're removing content instead of re-encoding it.
You're about to combine several files anyway. If the end goal is one document assembled from several PDFs, merge them first, then compress the result once. Compressing each piece separately and merging afterward can leave you re-encoding images twice, with no size benefit over doing it once at the end.
The short version
Most of a PDF's file size lives in its embedded images, not its text. A compressor's job is to re-encode those images more efficiently, which is why the same tool can do almost nothing to a text-heavy document and cut a scanned one by 80% or more. Start with a balanced target, check the size estimate before downloading, and reach for split or merge instead when the actual problem is "this file has content I don't need" rather than "these images are bigger than they need to be."
Tools mentioned in this article
Frequently asked
Why did compressing my PDF barely change the file size?
Compression works by recompressing the JPEG-encoded images inside a PDF, which is how most scans and photos are stored. If your file is mostly text and vector graphics, or its images are already efficiently encoded, there's very little left to squeeze out.
Will compressing a PDF make the text blurry?
No. Text and vector content are untouched by compression, only embedded JPEG images are downsampled. A PDF that's small because of small file size and blurry text usually means it was scanned at a low resolution to begin with, not that it was compressed.
Is there a limit to how large a PDF I can compress?
There's no size limit imposed by the tool itself. On very large scans, the practical ceiling is your device's own memory. On phones, that tends to land somewhere around 200 MB.
What's the actual difference between light, balanced, and aggressive compression?
They're the same underlying process, recompressing embedded images, run at different quality settings. Light keeps images close to their original resolution and quality for minimal size reduction, aggressive downsamples resolution and drops quality more noticeably for a much smaller file, and balanced sits between the two. None of them touch text or vector content, the difference is entirely about how much the images themselves are allowed to degrade.
Why is my scanned PDF so much bigger than a Word document with the same number of pages?
Because a scan is, structurally, a stack of full-page photographs with text-shaped content on them, not actual selectable text. A Word-exported PDF stores its text as text (a few kilobytes) and its graphics as vector instructions (also small). A scan has neither, every page is one image, typically at a resolution well beyond what's needed just to read it on screen, which is exactly the redundancy compression is built to remove.
Should I compress a PDF before or after adding a password or signature to it?
Compress first. Adding a password, watermark, or signature afterward doesn't meaningfully change file size, but running compression on a file that's already been modified in other ways adds an unnecessary extra processing pass. Doing the size-heavy work (compression) first and the lighter finishing steps last keeps the workflow simpler and avoids any chance of a later step interfering with an already-compressed image.
More in PDF
YourFileKit vs iLovePDF: Merging PDFs Without Limits, Ads, or Uploads
iLovePDF's free plan caps how many PDFs you can merge and how large they can be, and shows ads while you wait. Here's what actually changes when a merge tool runs in your browser instead.
YourFileKit vs 11zon: Which Free PDF and Image Tool Should You Use?
11zon and YourFileKit both compress PDFs and images for free with no signup, but they handle your files completely differently once you hit upload. Here's the actual difference.
Free PDF Compressor Online vs Adobe: Which One Should You Use?
Adobe's PDF compressor and a free browser-based one both shrink a PDF the same basic way, they differ in where your file actually goes while that happens, and what's free versus what isn't.
More guides like this
Practical, tool-linked how-tos across PDF, image, finance, video, and more, no signup to read them.
