utills.
PDF Guides

How to Compress a PDF Without Losing Quality

Why PDFs get huge, what compression actually changes, and the best free ways to shrink a PDF on Mac, Windows, and online — without turning your text to mush.

Illustration for: How to Compress a PDF Without Losing Quality

A PDF that won’t attach to an email is one of those small, recurring annoyances. The fix is compression — but “compress” gets thrown around as if it’s one button that always works. It isn’t. Knowing what compression changes is the difference between a crisp 2 MB file and a blurry mess. I’ve squeezed thousands of PDFs down for email and uploads, and here’s how I do it without wrecking quality.

What “compressing a PDF” actually changes

The single most useful thing to understand: most of a PDF’s size is images, not text. Text and vector graphics are tiny. A scanned page or an embedded photo is huge. So PDF compression is really image compression — it downsamples pictures to a lower resolution and re-encodes them more efficiently.

That tells you two things:

  • A text-only PDF (an exported document, a report) is already small. Compressing it barely helps, and that’s fine.
  • An image-heavy PDF (a scan, a portfolio, a slide deck) is where compression pays off — sometimes shrinking the file by 80–90%.

Pick a target, not a percentage

The setting that matters is the image resolution. 150 DPI looks great on screens and is plenty for most reading. 300 DPI is print quality. Dropping a 600 DPI scan to 150 DPI for emailing is invisible on a monitor but cuts the size enormously.

Method 1: On a Mac (Preview, offline)

macOS can compress PDFs without any download:

  1. Open the PDF in Preview.
  2. Choose File → Export.
  3. In the Quartz Filter dropdown, pick Reduce File Size.
  4. Save.

The catch: Apple’s built-in “Reduce File Size” filter is aggressive and can make images too soft. If the result looks rough, the better move is a custom Quartz filter with a gentler resolution (around 150 DPI). You create one in the Mac’s ColorSync Utility, and it then appears in that same Export dropdown. It’s a five-minute, one-time setup that gives you reliable, offline compression for good.

Method 2: On any platform (Ghostscript, offline + scriptable)

If you want repeatable, offline compression with real control, Ghostscript is the tool the pros quietly use:

gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.5 \
   -dPDFSETTINGS=/ebook \
   -dNOPAUSE -dBATCH -dQUIET \
   -sOutputFile=compressed.pdf input.pdf

The key dial is -dPDFSETTINGS:

Setting Target Use for
/screen ~72 DPI Smallest; quick on-screen sharing
/ebook ~150 DPI The sweet spot for email
/printer ~300 DPI Keeps print quality
/prepress ~300 DPI+ Professional printing

/ebook is my default — it’s the best balance of size and clarity for anything that’ll be read on a screen.

Method 3: Online (fast, any device)

When I’m not at my own machine, a web compressor is the quickest route: open it, drop the PDF in, pick a compression level, download. It works the same on phones and Chromebooks. Online tools differ in how they handle your file, which is worth knowing before you pick one.

Where your file is processed

Online compressors differ in how they work: some send your file to a server, others run in the browser. The Utills compress tool processes files in your browser; how any data associated with the tool is handled is described in our privacy policy. With any online service, it’s also worth confirming it’s served over HTTPS.

When compression won’t help

  • The PDF is already mostly text — there’s almost nothing to compress.
  • The images are already low-resolution — squeezing them further just adds blur.
  • You need print quality — don’t drop below 300 DPI.

In those cases, if the file is still too big to email, don’t fight it: upload it to cloud storage and share a link instead. (That’s also the right answer for very large files in general — see our guide on reducing PDF size for email.)

My quick rule of thumb

For email attachments, try /ebook in Ghostscript or a 150 DPI custom filter in Preview. Both work offline. The reduction depends on the original PDF; inspect small text and images before sending the compressed copy.

Frequently asked questions

Does compressing a PDF reduce its quality?

It can, but it doesn't have to. Most of a PDF's size usually comes from embedded images, so compression works by downsampling and re-encoding those images. If you compress a text-only PDF there's little to gain and little to lose. For image-heavy PDFs, choosing a sensible target (around 150 DPI for screen reading) shrinks the file dramatically while still looking sharp on a monitor.

Why is my PDF so large in the first place?

Almost always because of images — especially scans and photos saved at full camera resolution. A single phone photo can be several megabytes, so a 10-page scanned document can easily hit 30–50 MB. Fonts, embedded thumbnails, and saved revision history add a little more.

What's a good target size for emailing a PDF?

Most email providers cap attachments around 20–25 MB, but smaller is friendlier. Aim for under 10 MB so it sends reliably and downloads quickly on the other end. If you can't get there, share a link from cloud storage instead.

Is it safe to compress a PDF online?

It depends on the tool. Offline methods (Preview's Quartz filter on Mac, or Ghostscript on any platform) keep the work on your own machine, while online tools vary in where they process files. With any online tool, check its privacy policy for how data associated with the tool is handled before uploading a confidential document.

Related guides

Find your next tool

37 tools

Compress image Shrink file size while keeping quality. Resize image Change width and height to any size. Crop image Trim images to the exact frame you want. Convert image Switch between JPG, PNG, WebP and more. Remove background Erase the background in one click. Image to PDF Combine images into one PDF document. Rotate & Flip Turn, straighten, and mirror photos. Image to text Pull editable text out of any image. HEIC to JPG Open iPhone HEIC photos as JPG. Watermark Stamp text or logos over your images. Collage Arrange multiple photos into a grid. Favicon Generator Build favicons in every required size. Color Picker Grab hex colors and build palettes. Blur & Pixelate Obscure faces, plates, and private bits. Enhance Auto-fix brightness, contrast, and color. Passport Photo Prepare photos for ID and passport applications. Signature Clean up and extract handwritten signatures. Photo Effects Apply filters and vintage looks. Social Image Size covers for common social platforms. Add text to image Caption images and make memes fast. GIF Maker Turn frames or clips into animated GIFs. Border & Frame Add clean borders and photo frames. Mockup Drop screenshots into device frames. SVG Converter Trace raster images into scalable SVG. EXIF Viewer Inspect camera and GPS metadata. Poster & Print Lay out posters and print-ready sheets. Document Scanner Deskew and clean photographed documents. Image to Base64 Encode images into a data-URI string. Placeholder Make dummy placeholder images on demand. Image generator Make gradients, patterns, and avatars. Compare Images See two images side by side with a slider. QR Code Create and download QR codes. Hide Text in Image Embed a secret message inside a picture. Length converter Meters, feet, inches, miles and more. Weight converter Switch between kilograms, pounds and more. Temperature converter Celsius, Fahrenheit, Kelvin and more. Data storage converter Bits, bytes, megabytes and gigabytes.
Tab to move · Enter to open · Esc to close