How to Compress a PDF Without Losing Too Much Quality
Published 5 min readBy SlimMyFile
Compressing a PDF is always a trade-off between file size and fidelity, but the trade-off is usually far kinder than people expect. Most of the weight in a typical PDF comes from a small number of oversized images, while the text and drawings that make a document readable take up very little space. If you know where the bytes are, you can remove most of them without anyone noticing.
This guide explains what actually makes a PDF large, which compression choices are safe, which ones cost quality, and how to check the result before you send it.
What takes up space inside a PDF
A PDF is a container. Inside it you will typically find:
- Text, stored as characters plus a reference to a font. Text is tiny: a page of plain text often needs only a few kilobytes.
- Fonts. Embedded fonts make the document look identical everywhere. Many tools embed only the characters actually used (a subset), but some embed whole fonts, which can add hundreds of kilobytes each.
- Vector graphics: lines, shapes, charts and logos described mathematically. These stay sharp at any zoom level and are usually compact.
- Raster images: photos, screenshots and scanned pages stored as grids of pixels. These are usually the largest part of a big PDF.
- Housekeeping data: page thumbnails, metadata, leftover objects from earlier edits and application-specific data that viewers never display.
A ten-page report with three photos straight from a phone camera can easily be 15 MB, while the same report with web-sized photos might be under 1 MB. The text did not change at all; only the images did.
Changes that cost no quality
Some optimisations are lossless: the document looks exactly the same afterwards. They are always worth doing first.
- Recompressing internal data streams with stronger settings. PDFs use Flate (the same algorithm as ZIP) for most data, and many programs save with fast, light compression.
- Removing unreachable objects. When a PDF is edited and saved incrementally, old versions of pages and images can remain inside the file even though nothing displays them.
- Dropping page thumbnails and private application data that viewers do not need.
- Packing small objects into compressed object streams, a feature added in PDF 1.5.
The Low compression level in SlimMyFile does exactly these things and nothing else. Gains vary a lot: a cleanly exported PDF may shrink only slightly, while a file that has been edited many times can lose a surprising amount of dead weight.
Changes that trade a little quality for a lot of size
The big savings come from images, and they involve two separate decisions: how many pixels to keep, and how strongly to compress them.
Resolution matters most. A photo that is 4000 pixels wide but printed 8 cm wide on the page contains far more detail than any screen or printer can show at that size. Reducing it to 2400 pixels removes about two thirds of its pixels while still giving more than enough sharpness for reading on screen.
JPEG quality is the second lever. JPEG discards fine detail the eye is least sensitive to. At moderate settings the change is very hard to spot in photographs, but at aggressive settings you begin to see blocky 8×8 patterns, smeared colours and "ringing" around sharp edges.
| SlimMyFile level | What happens to images | Good for |
|---|---|---|
| Low | Nothing. Lossless clean-up only. | Contracts, forms, anything you may print professionally |
| Balanced | Large photos re-encoded as JPEG (quality 72) and limited to 2400 px on the longest side | Sharing, email, uploading to portals |
| High | JPEG quality 55, limited to 1600 px | Reading on screen when size matters most |
In every level, SlimMyFile keeps a re-encoded image only if it is genuinely smaller than the original, and it never touches text, fonts or vector graphics. Links and form fields stay intact.
Step by step
- Keep a copy of the original PDF. Compression cannot be undone, and you may want a high-quality version for printing later.
- Open the PDF compressor and select your file. It is read by your browser and never uploaded.
- Start with Balanced. It is the best default for documents that contain photos.
- Compress and look at the result card: it shows the real original size, the new size and the percentage saved.
- Download the file and check it (see below). If photos look soft, go back to Low; if the file is still too large, try High.
How to check the compressed PDF
- Zoom to 100% and 200% on pages with photos. Look for blockiness in smooth areas such as skies and skin, and for halos around text that is part of an image.
- Search for a word (Ctrl+F or Cmd+F). If search works, your text is still real text.
- Click a couple of links and, if the document has form fields, check they can still be filled in.
- Print one page if the document will be printed, because paper reveals softness that screens can hide.
Common mistakes
- Compressing an already compressed file again and again. Each lossy pass removes a little more detail; always start from the original.
- Turning every page into an image to save space. Rasterising removes searchable text and sharp vector graphics. It only makes sense for scans, which is why SlimMyFile keeps it as a separate, clearly labelled mode. See how to compress scanned PDFs.
- Using the strongest setting for a document that will be printed. Screen and print have very different needs.
- Compressing a digitally signed PDF without realising that any change invalidates the signature. SlimMyFile warns you and asks for confirmation first.
Frequently asked questions
Will compressing a PDF make the text blurry?
Not when the text is real text. Text and fonts are stored as characters and shapes, which SlimMyFile does not re-encode. Text can only become blurry if it is part of an image, such as a scanned page or a screenshot.
Which level should I choose if I am unsure?
Balanced. It focuses on oversized photos, which are usually the cause of a large PDF, and leaves everything else alone. You can always try another level, because your original file is never modified.
Can I get a specific size, such as under 2 MB?
SlimMyFile does not target an exact size. Try Balanced, then High, and check the reported result. If a document is mostly text and fonts, it may not get much smaller with any browser-based tool.
Try it with SlimMyFile
Related guides
- PDF
Why Some PDF Files Cannot Be Compressed Further
Already-optimised images, fonts, vector artwork and encryption: the real reasons a PDF refuses to shrink, and what you can still do.
3 min readRead guide - PDF
How to Reduce PDF File Size for Email Attachments
Attachment limits, why encoded attachments grow in transit, and a step-by-step way to get a PDF small enough to send.
3 min readRead guide - Compression basics
Lossy vs Lossless Compression Explained
What lossy and lossless compression actually do, which formats use each, and how to choose without damaging your files.
3 min readRead guide