How-To

How to Compress a PDF to an Exact File Size on Mac

February 25, 2026

← All posts

You need to email a PDF but it’s 25 MB and the limit is 10. You open Preview, hit “Reduce File Size,” and the images turn into blurry mush. Sound familiar?

The problem with most PDF compressors is they make you guess. “Medium quality” or “150 DPI” means nothing when you just need the file under 10 MB for an email attachment.

The Target Size Approach

Instead of guessing with quality sliders, the smarter approach is to specify the result you want:

“Make this PDF under 5 MB.”

PDF Compressor has a feature called Target Size that does exactly this. You enter the file size you want, and the app works backward to find the best compression settings that hit your target while keeping quality as high as possible.

This eliminates the compress-check-recompress cycle most people go through.

How Target Size Compression Works

Traditional compression asks: “What quality level do you want?” and gives you an unpredictable file size.

Target Size flips this: “What file size do you want?” and automatically adjusts quality to match.

Under the hood, the app:

  1. Analyzes your PDF - counts pages, images, resolution, color depth
  2. Calculates a quality budget - how much compression each image can take while hitting the target
  3. Applies intelligent compression - high-detail images get gentler treatment, background graphics get more aggressive compression
  4. Verifies the result - checks the output matches your target (within a small margin)

The result: you get the smallest quality loss possible for your target size.

When You Need This

Why Preview’s “Reduce File Size” Fails

Apple Preview has a built-in PDF compression option under File > Export > Quartz Filter > Reduce File Size. Here’s why it’s inadequate:

It works in a pinch for text-only PDFs, but anything with images is going to look bad.

Alternative Approaches

Quartz Filters (Advanced)

You can create custom Quartz filters in ColorSync Utility to get more control than Preview’s default:

  1. Open ColorSync Utility (in /Applications/Utilities/)
  2. Go to Filters tab
  3. Duplicate “Reduce File Size”
  4. Adjust image quality and resolution settings

This gives more control but still doesn’t let you target a specific file size. You’re still guessing, just with finer dials.

Online Tools

Services like iLovePDF and Smallpdf offer free compression with some control over quality. The trade-offs:

Fine for non-sensitive documents. Not ideal for anything confidential.

Command-Line (Ghostscript)

If you’re technical, Ghostscript can compress PDFs:

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

The presets (/screen, /ebook, /printer, /prepress) give you quality tiers, but again, no target size control. You’d need to write a script that binary-searches through quality settings to hit a specific size.

Batch Compression

If you regularly compress multiple PDFs (invoices, reports, client deliverables), look for batch processing support. Drag a folder of PDFs, set the target size once, and let the tool process everything.

Most online tools don’t support true batch processing. Desktop apps like PDF Compressor handle folders natively.

Quick Reference: Common Size Targets

Use Case Target Size Notes
Email attachment 5-10 MB Most providers accept up to 25 MB, but 5-10 is safer for recipients
Government forms 2-5 MB Check the specific form’s requirements
Job applications 5 MB Conservative - works everywhere
Slack/Teams sharing 10-50 MB Higher limits, but smaller = faster loading
Web download 1-5 MB Smaller = faster page loads

The key insight: think about what the PDF needs to be, not what quality settings to use. Target Size lets you think in terms of the end result.

Frequently Asked Questions

Can I compress a PDF to exactly 5 MB on Mac?

Yes. PDF Compressor's Target Size feature lets you specify the exact file size you want (like 5 MB) and automatically calculates the optimal compression settings. It adjusts image quality, resolution, and compression algorithms to hit your target while preserving maximum quality.

Why does Apple Preview's PDF compression ruin image quality?

Preview's 'Reduce File Size' filter uses a single aggressive compression preset with no adjustable settings. It applies heavy JPEG compression and resolution downsampling to every image regardless of content. There's no way to control the balance between file size and quality. For documents with photos or graphics, this often makes images unusable.

How small can you compress a PDF file?

It depends on content. Image-heavy PDFs (scans, photos) can often be compressed 50-90%. Text-heavy PDFs with few images may only shrink 10-30% since text is already compact. A 50 MB presentation with photos might compress to 5 MB. A 2 MB text document might only reach 1.5 MB.

Is it safe to compress PDFs with sensitive information using an online tool?

Online PDF compressors upload your files to remote servers for processing. For contracts, financial records, medical files, or any confidential document, use a desktop app that processes locally. Desktop apps like PDF Compressor never upload your files anywhere.

Try PDF Compressor Free

Compress PDFs to any target size. Set the file size you need, not abstract quality levels. macOS 13 or later.

Learn More →