PDFLeo Blog · Updated 16 November 2026

Choosing a PDF Compression Level: Size vs Quality

Every few months someone asks the same question: "Why is my PDF 40 MB, and how do I get it under the 10 MB limit of this upload form?" The honest answer is that compression is a trade. You give up some image detail to get a smaller file, and the right amount to give up depends on what the document is and who will read it.

This article explains where PDF size actually comes from, what the three levels in PDFLeo's Compress PDF tool are meant for, and how to test a result so you do not send something unreadable.

Where PDF file size comes from

A PDF is a container. Inside it you can find text, fonts, vector drawings, and images. In most documents the first three are tiny. A page of plain text might take a few kilobytes. Images are different: a single phone photograph can take several megabytes, and a scanned page is essentially one big picture of a sheet of paper.

So when a PDF is large, the cause is almost always one of these:

Knowing which case you are in tells you what to expect. A text-only PDF will barely shrink. A scan can shrink a lot.

What the three levels in PDFLeo do

The Compress PDF tool offers a quality choice with three options. Behind them is Ghostscript, a long-established PDF engine, running in your browser. The options map to Ghostscript's standard presets:

The exact savings depend entirely on the input. Two PDFs of the same size can come out very different, so we do not promise any percentage. The tool also has a safety rule: if the compressed version is not smaller than your original, it hands back the original unchanged rather than a bigger file.

A practical way to choose

Start with Balanced

Run your file at Balanced and look at the new size. If it already meets your limit, stop there. Many people jump straight to the smallest setting and then wonder why their signature looks fuzzy.

Go smaller only when you must

If Balanced is still too large, try Smallest file. This is reasonable for documents that will only be read on screen, such as a form uploaded to a portal, or a long scan sent for reference. It is a poor choice for photographs, drawings with fine lines, and anything with small print.

Use Higher quality for anything that will be printed or archived

If a design proof, a brochure or a signed original has to look right on paper, start at Higher quality. You may save less, but you will not have to redo the job.

A before-you-send checklist

After compressing, open the new file next to the original and check:

  1. Smallest text. Zoom to 100 percent on footnotes, tables and stamps. If you cannot read them comfortably, the level was too aggressive.
  2. Signatures and stamps. These are images in many documents. Look for blur or jagged edges.
  3. Photos and charts. Look for visible blocks or banding in gradients.
  4. Selectable text. Try selecting a sentence. If you could before, you should still be able to. Ghostscript presets normally leave real text as text, but check, because the behaviour depends on how the source file was built.
  5. Links and forms. If your PDF has clickable links or fillable fields, click a few. Interactive features are the part most likely to be affected by any optimisation step.
  6. Page count. It should match the original exactly.

Other ways to shrink a PDF before compressing

Compression is not the only lever, and sometimes it is not the best one.

What compression cannot do

A few limitations are worth saying plainly. Compression is lossy for images, so you cannot get the lost detail back later; always keep the original. A PDF that is already efficiently built may not shrink at all, in which case the tool returns your original file. Heavily protected or damaged PDFs may fail to process; for damaged files, try Repair PDF first. And the tool needs to download its engine on first use, so it will not run fully offline.

If you need to compress, then merge, order matters a little: merging first and compressing once is usually simpler than compressing every piece separately. See our guide on merging without losing order.

Frequently asked questions

Why did my file barely get smaller?

It probably contains mostly text and vector graphics, which are already compact, or it was already compressed by whatever program created it. In that case there is little to remove.

Does compression remove the text layer from my document?

The Ghostscript presets used by PDFLeo are designed to reduce image data and normally keep text as text. Results vary by file, so always test whether you can still select and search text in the output.

Is it safe to compress a confidential document?

The processing happens in your browser rather than on a PDFLeo server. Even so, follow your organisation's rules for sensitive material, and keep the original.

Can I compress the same file again to make it smaller?

You can, but each round of image compression adds more loss and the gains drop quickly. It is better to go back to the original and pick a different level once.

Open Compress PDF More articles

This article is general educational guidance, not legal or professional advice. Tool behaviour can change, so always check the downloaded result.