How to Compress Multiple PDFs at Once — Batch Compression
Need to compress 10, 20, or 50 PDFs at once? The right approach depends on how many files you have, whether they're sensitive, and how much time you want to spend. This guide covers every practical option — from free browser tools to desktop apps to a command-line one-liner that handles hundreds of files in seconds.
Your Options for Batch PDF Compression
Method comparison at a glance
Browser tool (ShrinkPDF): One file at a time, no upload, completely private. Best for sensitive documents or when you have 5–10 files.
ILovePDF batch: Upload multiple files at once, server processes them together. Best for non-sensitive files when you have 10–50 files.
PDF24 desktop app: Free Windows/Mac app, processes locally. Good for regular batch needs without command line.
Ghostscript command line: Free, runs locally, handles hundreds of files in one command. Best for technical users or large batches.
Method 1: Browser Tool — One at a Time, No Upload
ShrinkPDF processes files locally in your browser with no upload — which means it cannot process multiple files simultaneously (each file uses browser memory while being processed). For batches of up to 10 sensitive files, the workflow is:
Click "Compress another file" to reset, then upload the next one
Repeat for each file
This takes about 30–60 seconds per file depending on size. For 10 files, total time is approximately 5–10 minutes. For larger batches, use one of the methods below.
When to use this method
Use ShrinkPDF one-at-a-time for sensitive documents: IC copies, payslips, medical records, bank statements, signed contracts. These should not be uploaded to third-party servers, even temporarily. For non-sensitive files like marketing materials, reports, or presentations, the batch methods below are faster.
Method 2: ILovePDF Batch (Upload Required)
ILovePDF supports batch compression on their free tier — you can upload multiple PDFs at once and download a ZIP file of the compressed results.
Go to ilovepdf.com/compress_pdf
Click "Select PDF files" and select multiple files at once (hold Ctrl/Cmd to select multiple)
Choose a compression level and click Compress PDFs
Download the ZIP file containing all compressed PDFs
Limitations: Free tier has daily task limits (the number is not clearly displayed). Files are uploaded to ILovePDF's servers and deleted after processing. Do not use for sensitive personal documents.
Method 3: PDF24 Desktop App (Free, Local Processing)
PDF24 offers a free desktop application for Windows and Mac that compresses PDFs locally — no upload required — and supports batch processing through its interface.
Download PDF24 Creator from pdf24.org/en/creator (free, no subscription)
Open the app and navigate to the Compress tool
Drag multiple PDF files onto the interface
Select a compression profile and click Compress All
Choose an output folder for the compressed files
PDF24 processes files locally using Ghostscript under the hood, which gives excellent compression ratios. The interface is functional but not polished. Good for Windows users who need regular batch compression without using the command line.
Method 4: Ghostscript Command Line (Most Powerful)
Ghostscript is a free, open-source PDF engine used by most server-side PDF tools (including ILovePDF). Running it locally gives you the same compression quality as cloud tools, with no upload, no limits, and the ability to process hundreds of files in seconds.
Install Ghostscript
Windows: Download from ghostscript.com → download → Windows installer (64-bit). Install and add to PATH.
Mac: Run brew install ghostscript (requires Homebrew)
Linux: Run sudo apt install ghostscript (Ubuntu/Debian) or sudo yum install ghostscript (RHEL/CentOS)
Replace /ebook with /screen for maximum compression or /printer for higher quality.
Compress all PDFs in a folder (Windows)
Windows batch script
for %f in (*.pdf) do gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/ebook -dNOPAUSE -dQUIET -dBATCH -sOutputFile="compressed_%f" "%f"
Compress all PDFs in a folder (Mac/Linux)
Shell script for Mac/Linux
for f in *.pdf; do gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/ebook -dNOPAUSE -dQUIET -dBATCH -sOutputFile="compressed_$f" "$f"; done
The PDFSETTINGS options:
/screen — 72 DPI, maximum compression, smallest file size
/ebook — 150 DPI, good quality, recommended for most uses
/prepress — 300 DPI+ with colour preservation, for professional printing
Tips for Managing Batch Compression
Keep originals separate: Always compress into a different folder, never overwrite originals. You may need the high-quality versions later.
Verify a sample before processing everything: Compress one or two files first and open them to confirm quality is acceptable. Then run the full batch.
Name output files clearly: Add a prefix like "compressed_" or a suffix like "_small" so you can tell compressed files from originals at a glance.
Check total output size: After batch compression, select all output files and check the total size — useful when preparing a submission with a combined size limit.
Don't compress already-compressed files: Re-compressing a file that was already optimised yields minimal benefit and can slightly degrade quality. If a file doesn't compress much, it was already optimised at the source.
✓ Try ShrinkPDF Free — No Login Required
No registration. No file size limit. Your file never leaves your browser.
Not simultaneously — ShrinkPDF processes one file at a time because compression runs locally in your browser and each file uses browser memory during processing. For sensitive files (payslips, IC copies, bank statements), process them one at a time in ShrinkPDF. For non-sensitive batches of 10+ files, ILovePDF's batch upload or PDF24's desktop app are faster alternatives.
What's the fastest way to compress 50 PDFs for free? ▼
For non-sensitive files, ILovePDF's batch compression is the fastest — upload all 50, click compress, download one ZIP. For sensitive files, Ghostscript command line is fastest (processes all files in seconds locally). PDF24's desktop app is a good middle ground — local processing with a GUI, no command line required.
Will all files in a batch get the same compression level? ▼
When using ILovePDF or Ghostscript, yes — you apply one compression setting to all files in the batch. When using ShrinkPDF one at a time, you can choose different levels for different files if needed.
Is there a limit to how many files I can batch compress for free? ▼
With Ghostscript and PDF24, there is no limit — both run locally on your hardware. With ILovePDF's free tier, there is a daily task limit that may restrict large batches. With ShrinkPDF, there is no limit but you process files one at a time.
Can I automate PDF compression on a schedule? ▼
Yes, using Ghostscript. Write a shell script (Mac/Linux) or batch file (Windows) using the commands in this guide, and schedule it using Task Scheduler (Windows) or cron (Mac/Linux). This is useful for automatically compressing newly received documents in a watched folder.