中文 · English · Deutsch · Français

How to Compress PDF File Size: 5 Methods That Actually Work

Published: May 23, 2026 · By Deeper AI Tools Team

You've just finished a 45-page proposal. It looks perfect — clean formatting, sharp charts, professional typography. Then you check the file size: 32 MB. Too big for email (Gmail's limit is 25 MB), too big for most upload portals, and definitely too slow for anyone downloading on a mobile connection.

PDF compression is the answer, but not all compression methods are equal. Some shrink files by 15% and call it a day. Others cut 90% but turn your text into unreadable mush. Here are five methods that actually work, ranked from simplest to most aggressive.

Why Are PDFs So Large in the First Place?

Understanding what makes a PDF heavy helps you choose the right compression approach. Common PDF weight contributors:

  • High-resolution images: A single 300 DPI photo embedded in a PDF can be 4-10 MB on its own. Ten of those and you've got a monster file.
  • Uncompressed images: Some tools embed BMP or uncompressed TIFF images into PDFs, which are comically large.
  • Embedded fonts: Full font files (especially CJK fonts for Chinese/Japanese/Korean text) can add 5-20 MB per font family. Subset fonts only include the characters actually used.
  • Redundant data: PDFs created by scanning often contain duplicated metadata, unused objects, and incremental saves that bloat the file.
  • Layers and transparency: Complex vector layers, especially from design tools like Illustrator or InDesign, can add significant overhead.

Method 1: Browser-Based PDF Compression (Easiest, Most Private)

For most people, the best compression tool is the one you can use immediately — and that doesn't require uploading sensitive documents to a server. Browser-based PDF compression processes your file entirely on your device using JavaScript and WebAssembly.

Our PDF compressor works this way. Here's how to use it:

  1. Open the PDF compression tool
  2. Drag and drop your PDF onto the page
  3. Choose your compression level (low, medium, high, or extreme)
  4. Preview the expected file size reduction
  5. Download the compressed PDF

Expected reduction: 50-80% depending on the compression level and the PDF's content. Image-heavy PDFs compress more; text-heavy PDFs compress less.

Privacy: The entire process happens in your browser. No uploads, no servers, no third parties. This is crucial for contracts, legal documents, financial reports, and any sensitive material.

Best for: Quick, private compression of any PDF without installing software. Ideal for confidential documents and everyday use.

Pro tip: Start with medium compression and check the output quality. If it looks good, increase the compression level. It's always easier to compress more than to recover lost quality.

Method 2: "Print to PDF" or "Save as Optimized PDF" (Built-in, No Extra Tools)

Most modern operating systems and PDF readers include a "Print to PDF" function that creates a new, often smaller, PDF. This strips out metadata, flattens layers, and sometimes automatically recompresses images.

On macOS (Preview)

  1. Open the PDF in Preview
  2. Go to File → Export (NOT "Save")
  3. Click the "Quartz Filter" dropdown and select "Reduce File Size"
  4. Save the new file

On Windows (Microsoft Print to PDF)

  1. Open the PDF in any viewer
  2. Go to File → Print
  3. Select "Microsoft Print to PDF" as the printer
  4. Click Print and save the new PDF

Expected reduction: 20-50%, depending on the original PDF's complexity. This method is gentle — it won't aggressively degrade image quality or alter formatting.

Caveat: This method flattens forms, removes interactive elements, and may strip hyperlinks. It's not ideal for fillable PDFs or documents that need to remain interactive.

Best for: Quick, no-install compression on documents that don't contain forms or interactive elements.

Method 3: Online PDF Compression Services (Convenient but Server-Based)

Several popular services offer PDF compression with generous free tiers. The trade-off: your files go to their servers.

Service Free Limit Compression Quality File Deletion Policy
Smallpdf 2 tasks/day, files up to 5 GB Very good (Strong vs Basic mode) Deleted after 1 hour
iLovePDF 2 tasks/day, files up to 200 MB Good, three compression levels Deleted within 2 hours
Adobe Acrobat Online Unlimited free Excellent Deleted within 1 hour

Expected reduction: 40-80% with these services. They use sophisticated server-side optimization that can sometimes outperform browser-based tools.

Privacy concern: Your PDF is uploaded to their servers. While they delete files within 1-2 hours, the document exists on their infrastructure during that window. For sensitive documents, avoid server-based services.

Method 4: Optimize Source Images Before Creating the PDF

This is the most effective method — but it requires access to the original document files, not just the PDF. If you created the PDF from a Word document, PowerPoint presentation, or design file, you can control the output file size by optimizing the images before PDF creation.

The approach:

  1. Identify the heaviest images: Check which images in your source document are the largest.
  2. Compress those images: Use an image compressor to reduce the file size of each image. Target 150-300 DPI for print documents, 72-150 DPI for on-screen viewing.
  3. Resize to actual display size: If an image appears as 4 inches wide in your document at 300 DPI, it only needs to be 1200 pixels wide. Don't embed a 4000-pixel photo.
  4. Choose the right format: Use JPEG (quality 80-85) for photos, PNG for graphics with transparency, and WebP where supported.
  5. Replace the images in your source document with the optimized versions.
  6. Export/save as PDF with appropriate settings.

Expected reduction: 60-90% for image-heavy documents. This is far more effective than post-hoc PDF compression because you're removing the bloat at the source.

Best for: Documents you're creating from scratch, where you control the source files. This is the gold standard of PDF size reduction.

Method 5: Ghostscript Command-Line Compression (Maximum Control)

For technical users who want pixel-level control, Ghostscript is the most powerful free tool for PDF compression. It's available on all major platforms and can be scripted for batch processing.

The basic compression workflow:

  1. Install Ghostscript on your system
  2. Choose your compression preset (screen, ebook, printer, prepress)
  3. Run the compression command

Ghostscript supports multiple compression presets that control the resolution at which images are resampled:

  • /screen (72 DPI): Aggressive — very small files, suitable for quick sharing
  • /ebook (150 DPI): Moderate — good balance for on-screen reading
  • /printer (300 DPI): Light — preserves quality for printing
  • /prepress (300 DPI, color preserved): Lightest — maintains highest quality

Expected reduction: 50-95% with /screen, 30-60% with /ebook, 10-30% with /printer.

Best for: Developers, system administrators, and power users who need scriptable, batch-able PDF compression with maximum control.

Comparing the 5 Methods

Method Compression Range Ease of Use Privacy Quality Control
1. Browser-based (local) 50–80% ⭐⭐⭐⭐⭐ Excellent (no upload) Good (adjustable levels)
2. Print to PDF 20–50% ⭐⭐⭐⭐⭐ Excellent (built-in) Limited (flattened)
3. Online service 40–80% ⭐⭐⭐⭐ Poor (server upload) Good
4. Optimize source images 60–90% ⭐⭐⭐ Excellent Excellent (full control)
5. Ghostscript CLI 10–95% ⭐⭐ Excellent Excellent (full control)

How to Check if Your PDF Is Small Enough

What's "small enough" depends entirely on your goal:

  • Email attachment: Under 20 MB (Gmail allows 25 MB, but leave margin for other platforms)
  • Website download: Under 5 MB for user-friendly downloads, under 2 MB for embedded PDFs
  • Upload portal: Check the specific limit (commonly 10 MB, 25 MB, or 50 MB)
  • Mobile sharing: Under 10 MB — many messaging apps have limits

If you've compressed and you're still over your target, try combining methods. For example: use Method 4 (optimize source images) before creating the PDF, then run it through Method 1 (browser-based compression) for final tweaking.

Common Mistakes When Compressing PDFs

  • Over-compressing: Compressing a 30 MB PDF of scanned text at maximum settings can make the text unreadable. Always check the output before deleting the original.
  • Expecting text-heavy PDFs to compress dramatically: Text compresses very little because it's already efficiently encoded. A 500-page novel might be 2 MB and compress to 1.8 MB — don't expect miracles.
  • Uploading confidential documents to online services: Yes, they delete files. No, you shouldn't send them your tax returns or legal contracts. Use a browser-based tool instead.
  • Compressing already-compressed PDFs: If a PDF has already been optimized, further compression usually yields diminishing returns and can degrade quality without much size reduction.

Remember: Always keep a copy of the original uncompressed PDF. Compression is destructive in most cases — you can't un-compress a file to restore lost quality.

The Bottom Line

For most people in 2026, the best PDF compression workflow is simple: use a browser-based compressor for quick, private compression at adjustable quality levels. If you're creating the PDF from scratch, optimize the source images first — that's where 90% of the bloat comes from. And if something's still too large, layer on the Print to PDF method as a final cleanup step.

The right tool can turn a 32 MB PDF into a 3 MB file that looks identical. You just have to know which lever to pull.

Compress PDF Files Instantly — No Uploads

Reduce PDF size by up to 80% with adjustable compression levels. 100% browser-based and private.

Compress PDF Now