How to Compress a PDF: A Complete Guide to Reducing PDF File Size

Published August 20, 2026 · 12 min read · Updated August 28, 2026

Large PDF files are a daily headache — whether you're emailing a contract, uploading homework, or submitting a print-ready document. A single high-resolution PDF can balloon to 50, 100, or even 200 megabytes, making it impossible to email or causing upload forms to time out. This guide explains exactly how to compress PDFs effectively, covering the two main techniques, when to use each, and why the right approach depends on what's inside your file.

Why PDF Files Get So Large

A PDF is a container format. It packages together text, fonts, vector graphics, and raster images. Most of the time, the images are the culprit. Here's why:

About 80% of PDF file size comes from raster images. That means effective image compression is the primary lever for shrinking PDFs.

Lossy vs. Lossless Compression: What's the Difference?

There are two families of PDF compression. Understanding them matters because choosing the wrong one either wastes space or ruins quality.

Lossless Compression

Lossless methods shrink the file without losing any data. The PDF looks and prints identically to the original. Techniques include:

Lossless is the right default for documents that will be edited, printed professionally, or archived. You'll typically see 5–20% reduction here — smaller gains than lossy, but zero risk.

Lossy Compression

Lossy compression discards information that the human eye is unlikely to notice. This is where the big savings happen — often 50–90% reduction:

Lossy is right for viewing on screen — web, email, mobile. It is not appropriate for legal documents, academic papers with fine detail, or anything you'll print professionally.

Step-by-Step: How to Compress Your PDF

Here's a practical workflow. You can follow these steps using any tool (we built smartpdfconv to automate all of this in your browser):

1. Identify what's in your PDF

Ask: Is this mostly text, mostly images, or a mix? A text-heavy document (reports, essays) benefits less from compression than an image-heavy one (photos, scanned pages, design mockups). Quick check: if the file is over 5 MB, images are almost certainly the cause.

2. Decide on the target

Define what "good enough" means:

Use caseMax sizeCompression approach
Email attachment10 MBLossy, 150 DPI, JPEG 80% quality
Web upload5 MBLossy, 150 DPI, JPEG 70% quality
Professional print50 MBLossless or lossy at high quality (90%+)
Archive / legalNo limitLossless only

3. Run the compression

For a browser-based, private experience (no uploads), use our Compress PDF tool. It uses WebAssembly (pdf-lib) to process your file entirely in-browser. For more control, here's what happens under the hood:

  1. Downsample images. Rescale any image above your target DPI down to that DPI.
  2. Re-encode at lower quality. Convert JPEG images to a quality factor of 70–80%, or convert PNGs to JPEG where the image has continuous tones.
  3. Strip metadata. Remove EXIF, XMP, embedded thumbnails, and unused color profiles.
  4. Clean the structure. Remove duplicate objects, optimize the xref table, and re-save.

4. Verify the result

Open the compressed PDF and scroll through every page. Check especially for text that's hard to read or images that look pixelated. If quality is insufficient, re-run with a higher quality setting.

Common Tools and How They Compare

ToolPrivacyMax reductionNotes
smartpdfconv (browser)100% private, no uploadup to 90%Web-based, WebAssembly, free
Adobe Acrobat Pro DCDesktop appup to 80%Paid subscription, most control
Preview (macOS)Local onlyup to 30%Quartz filter, basic
Ghostscript CLILocal onlyup to 90%Powerful but command-line
SmallPDF (online)Uploads to serverup to 70%Convenient but not private

Best Practices and Pitfalls

✅ Do downsample for screen-only use. If nobody will print the PDF, 150 DPI images are plenty sharp. You can re-run our compress tool to downsample in one click.
❌ Don't use lossy compression for legal or print documents. Contracts, court filings, and anything that needs to reproduce identically should use lossless compression only.
⚠️ Watch out for OCR layers. If your PDF has a hidden OCR text layer under a scanned image, aggressive image compression can make the OCR invisible to search. Keep OCR layers at higher quality.

Quick Reference: Compression Settings

SettingLightRecommendedExtreme
Image downsampling target200 DPI150 DPI110 DPI
JPEG quality factor85%70%50%
Expected reduction20–35%50–80%80–90%

Conclusion

The best way to compress a PDF depends on three things: what's inside the file, who will use it, and whether privacy matters. For most people emailing documents, recommended lossy compression at 150 DPI with 70% JPEG quality hits the sweet spot — a 70–90% size reduction that's still perfectly readable. For anything that must reproduce exactly, stick with lossless.

Ready to compress your PDF?

Compress PDF Now (Free, Private)

Related Guides