PDF basicsPublished 5 min read

How to compress a PDF without losing quality

What actually makes a PDF large, which compression settings are safe, and why some files barely shrink no matter what you do.

"Compress PDF" buttons promise smaller files, but they do very different things depending on what is inside the file. Knowing what makes a PDF large tells you how much it can shrink and whether the result will still look right. This guide covers the mechanics, the settings that are safe, and the cases where compression will disappoint you.

What takes up space in a PDF

A PDF is a container. Four kinds of content dominate its size:

  1. Images. Scans, photos, and screenshots. A single full-page scan at 300 DPI in color can be 2–6 MB before compression. In almost every oversized PDF, images are the reason.
  2. Embedded fonts. Each font a document uses is usually embedded so it displays identically everywhere. A font can be 50 KB to several hundred KB, and files assembled from many sources (for example merged reports) often contain multiple copies of the same font.
  3. Page content streams. The drawing instructions for text and vector graphics. These are normally small, except for complex vector artwork like maps or CAD drawings.
  4. Leftovers. Deleted objects that were never removed, uncompressed object tables, thumbnails, attached files, and metadata. These are pure waste and can be dropped without any visible change.

Text-only documents exported from Word or Google Docs are already small (a 20-page report is often under 500 KB) and will not shrink much. Scanned documents and photo-heavy brochures can shrink dramatically.

Lossless versus lossy compression

Lossless steps change nothing you can see: removing duplicate fonts and unused objects, compressing object streams, and re-encoding image data with a better lossless codec. A compressor should always do these.

Lossy steps change the images themselves: lowering their resolution (downsampling) and re-encoding them as JPEG at a lower quality. This is where most of the savings come from on scanned or photo-heavy files, and also where quality can be lost. The trick is to pick values that are below what the reader will notice.

For documents that will be read on screen, images above 150 DPI add size without adding visible detail, because screens display roughly 100–200 pixels per inch. For documents that will be printed, 200–300 DPI is the safe range. Text that was scanned as an image is the most sensitive case: once downsampled too far, letter edges become fuzzy and small print becomes hard to read.

Compressing on webutilitypro.com

  1. Open Compress PDF and upload your file.
  2. Choose a compression level. The default balances size and quality and is right for most documents that will be viewed on screen or printed on an office printer. The strongest level is for files that only need to be legible, such as receipts or internal drafts.
  3. Click Compress and compare the before and after sizes shown with the result.
  4. Download the file. Originals and results are deleted from our server after 60 minutes.

If the file barely changed in size, it is probably text-only or already compressed, and no setting will help much. If the result looks worse than you want, go back and choose a lighter level; the original is unchanged on your computer.

What compression does not do

  • It does not remove pages. For that use Organize PDF or Split PDF.
  • It does not shrink vector graphics significantly. A complex map stays complex.
  • It cannot compress an image twice for free. A scan that is already a 50-quality JPEG will not get much smaller without visible degradation.
  • It does not touch text, so searchable text stays searchable and copy-and-paste keeps working.
  • It should not change the page size, fonts or layout. If a tool does that, it is converting, not compressing.

Practical targets

Most email services cap attachments at 20–25 MB, and many online forms stop at 5 or 10 MB. Before you compress, decide what the file has to fit under and whether it must remain print quality.

Situation Reasonable target Notes
Scanned contract, 30 pages 2–5 MB 200 DPI grayscale is usually enough for legal readability
Photo brochure for email under 10 MB 150 DPI, medium JPEG quality
Thesis with charts little change expected mostly text and vectors
Receipt or ID scan for a form under 1 MB one page, 150 DPI is plenty

Alternatives when compression is not enough

If the file is still too large, change what is in it rather than squeezing harder:

  • Split it into logical parts and send them separately, using Split PDF.
  • Rescan in grayscale instead of color, or at 200 DPI instead of 600. Rescanning at the right settings beats any compressor.
  • Export smarter from the source application. In Word, Google Docs and most design tools you can choose a "smaller size" or "web" PDF preset that downsamples images while exporting.
  • Share a link instead of an attachment when the document lives in cloud storage.

Compressing offline

For confidential documents, or when you have hundreds of files, use software on your own machine. On macOS, Preview's "Reduce File Size" Quartz filter is aggressive and can make text scans ugly; a custom filter with 150 DPI and medium JPEG quality is a better starting point. On Windows and Linux, Ghostscript handles this well:

gs -sDEVICE=pdfwrite -dPDFSETTINGS=/ebook -dNOPAUSE -dBATCH -sOutputFile=out.pdf in.pdf

The /ebook preset targets 150 DPI; /printer targets 300 DPI; /screen is 72 DPI and is only acceptable for rough previews.

A note on "quality"

Quality is about what the reader needs. A 40 MB scan of a lease and a 3 MB version are equally valid as legal documents if the text is legible in both. Choose the smallest file that still serves its purpose, keep the original if you might need print quality later, and always open the compressed file once before sending it.

Tools used in this guide

See all guides