Tutorials

How to Compress a PDF on Mac

Three ways to compress a PDF on a Mac: Preview's built-in filter, a browser tool when you need an exact size, and Ghostscript in Terminal for full control.

By Ahtisham ul haq Khan

Founder, PDF Compress

Updated 2 min read
How to Compress a PDF on Mac
On this page

A Mac can compress a PDF without any extra software, using Preview. Preview cannot aim for a specific size, though, so when a form says "under 200 KB" a browser tool is quicker. For full control and no uploads, Ghostscript runs in Terminal. Here is each method and when to use it.

1. Preview (built in, offline)

Apple documents these steps in its Preview user guide:

  1. Open the PDF in Preview.
  2. Choose File > Export.
  3. In the Quartz Filter menu, choose Reduce File Size.
  4. Click Save. Give the copy a new name if you want to keep the original.

Apple notes that the compressed PDF may be lower quality than the original and that results vary. With scanned documents, zoom in on the smallest print before you send the file. Preview gives you no size target, so if the result is still too big, or too blurry, use one of the methods below.

2. A browser tool, for an exact size

When a form sets a limit, open the matching preset page in Safari or Chrome, for example compress PDF to 100 KB or compress PDF to 1 MB. The tool keeps the sharpest version that fits under the limit. In our tests a one-page 300 DPI scan of 1.48 MB came out at 97 KB for a 100 KB limit, still clearly readable.

3. Ghostscript in Terminal (offline, full control)

Ghostscript is the free, open-source engine our compressor is built on. With Homebrew installed:

brew install ghostscript

Then compress a file:

gs -sDEVICE=pdfwrite -dPDFSETTINGS=/ebook -dNOPAUSE -dBATCH -sOutputFile=small.pdf input.pdf

The preset decides the image resolution: /screen is 72 DPI, /ebook 150 DPI, /printer and /prepress 300 DPI. With our settings, the 7.4 MB five-page test scan came out at 943 KB at 150 DPI and 299 KB at 72 DPI. Nothing leaves your Mac.

Which method to use

You needUse
A smaller file, no upload, no exact limitPreview
Under a specific size such as 200 KBBrowser tool with a target
Many files, scripts, or precise settings offlineGhostscript

Common questions

Will the text stay selectable?

With the browser tool and Ghostscript, yes: typed text stays text. A scan without OCR has no text layer to begin with, before or after compression.

Can I compress a password-protected PDF?

Remove the password first by opening the file and saving an unprotected copy, then compress that copy.

Related articles