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
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:
- Open the PDF in Preview.
- Choose File > Export.
- In the Quartz Filter menu, choose Reduce File Size.
- 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 need | Use |
|---|---|
| A smaller file, no upload, no exact limit | Preview |
| Under a specific size such as 200 KB | Browser tool with a target |
| Many files, scripts, or precise settings offline | Ghostscript |
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
How to Compress Image Size in iPhone
Four ways to shrink an iPhone JPEG, PNG, or HEIC without an app: camera settings, Mail Drop, Files convert, or a browser tool.
How to Compress a PDF Without Losing Quality
Which parts of a PDF actually lose quality when you compress it, the image resolution that still looks the same on screen, and what our tests showed.
How to Compress a PDF Without Breaking a Digital Signature
Why compressing a digitally signed PDF breaks the signature, how to tell which kind of signature you have, and the safe way to get a small signed file.