How to Compress a PDF File — Reduce Size Free Without Uploading
— Written by Brendan G., Founder & Developer
A 50 MB PDF is too large for email, slow to load on mobile, and impossible to attach to most web forms. This guide covers five methods to reduce PDF file size — from a browser-based tool that never uploads your file to command-line options for batch compression — along with the trade-offs between quality and compression ratio.
Jump to method:
Why PDFs Get Too Large
PDF size is determined mainly by:
- Images: A PDF with full-resolution 300dpi images (TIFF, PNG, JPEG) is the most common cause of large files. Each image can be 2–20 MB embedded.
- Embedded fonts: PDFs can embed full font files rather than subsetted versions. A PDF that embeds 10 fonts fully instead of subsetting the characters actually used can be 5–15 MB larger than necessary.
- Uncompressed streams: Scanned documents converted to PDF without OCR or CCITT/JBIG2 compression are often enormous.
- Embedded videos or attachments: PDFs with embedded media are inherently large; removing these is the most effective size reduction.
PDF compression works by downsampling images, subsetting fonts, removing unused objects, and applying lossless stream compression. The methods below each implement some combination of these.
Method 1: Browser-Based Compressor — Local, No Upload
FileShot's File Compressor handles PDFs (and other file types) entirely in your browser. The file never leaves your device.
- Open fileshot.io/tools/compressor.
- Click Choose File or drag your PDF onto the drop zone.
- Select a compression level:
- Light — removes metadata and optimizes streams; minimal quality impact. Best for already-optimized PDFs; achieves 10–30% reduction.
- Medium — downsamples images to 150dpi. Good balance for screen-only documents; typically achieves 40–70% reduction.
- Heavy — maximum compression; images downsampled to 72dpi. For PDFs that will only be viewed at 100% on screen; achieves 60–90% reduction.
- Click Compress. The file is compressed locally and downloads to your device.
Method 2: macOS Preview (Built-In Quartz Filter)
Every Mac includes a PDF compression filter in Preview via the Quartz graphics layer. No third-party software required.
- Open your PDF in Preview (double-click or right-click > Open With > Preview).
- Choose File > Export as PDF.
- In the save dialog, click the Quartz Filter dropdown and select Reduce File Size.
- Name the output file and click Save.
-dPDFSETTINGS=/ebook instead, which targets 150dpi and is less destructive.
Creating a custom less-destructive filter: macOS allows creating custom Quartz filters with ColorSync Utility. In ColorSync Utility, go to Filters > Add Filter, set the Image Effects to compress images at 150dpi rather than 72dpi. This gives you more control than the default "Reduce File Size" preset.
Method 3: Ghostscript — All Platforms, Maximum Control
Ghostscript is free, open-source, runs locally, and is the most precise PDF compression tool available without a commercial license. It's a command-line tool.
Install Ghostscript:
- Windows: Download from
ghostscript.com— choose the AGPL 64-bit installer. Free. - macOS:
brew install ghostscript - Linux:
sudo apt install ghostscript
Compression commands by use case:
For email attachments (targets ~150dpi, good quality/size balance):
gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -dPDFSETTINGS=/ebook -sOutputFile=output.pdf input.pdf
For web viewing (targets ~72dpi, maximum compression):
gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -dPDFSETTINGS=/screen -sOutputFile=output.pdf input.pdf
For printing (targets 300dpi, minimal compression, highest quality):
gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -dPDFSETTINGS=/prepress -sOutputFile=output.pdf input.pdf
PDFSETTINGs presets explained:
| Setting | Image Resolution | Quality | Compression | Best For |
|---|---|---|---|---|
| /screen | 72 dpi | Low | Maximum | Web viewing, email quick share |
| /ebook | 150 dpi | Good | High | Email attachments (recommended) |
| /printer | 300 dpi | High | Moderate | Desktop printing |
| /prepress | 300 dpi+ | Maximum | Minimal | Professional printing / archival |
Method 4: Cloud Tools — Smallpdf, ilovepdf
For users who don't need local processing, Smallpdf and ilovepdf are widely used free browser-based compression tools. Both achieve good compression for typical image-heavy PDFs.
- Smallpdf free tier: No account required; 2 tasks per hour. Uploads to Smallpdf servers; files held temporarily. No watermark on compressed output.
- ilovepdf free tier: No account required; 200 MB limit per file. Uploads to ilovepdf servers. No watermark.
- Adobe Acrobat online (free): Requires Adobe account; 100 MB file limit; holds files on Adobe servers.
Method 5: Microsoft Word or LibreOffice Writer
If you have access to the original source document (Word, DOCX, etc.), re-exporting to PDF with appropriate settings is often more effective than post-processing the PDF. Both Microsoft Word and LibreOffice provide image quality controls when exporting to PDF.
In Microsoft Word: File > Save as > PDF. Under Options, check "Minimum size (publishing online)" instead of "Standard" to reduce embedded image resolution substantially.
In LibreOffice: File > Export as PDF. Under the Images tab, reduce the Image Resolution to 150dpi and check "Lossless compression" or choose "JPEG compression" at 75–85% quality.
This method only works when you have the original editable source — it re-renders the PDF from source instead of post-processing an existing PDF, so results can be cleaner.
Method Comparison
| Method | Uploads File? | Watermark? | Account Needed? | Size Limit | Platforms |
|---|---|---|---|---|---|
| FileShot Compressor | No (local) | No | No | None | All browsers |
| macOS Preview | No | No | No | None | macOS only |
| Ghostscript | No | No | No | None | Win/Mac/Linux |
| Smallpdf (free) | Yes (server) | No | No | 2 tasks/hr | Browser |
| ilovepdf (free) | Yes (server) | No | No | 200 MB | Browser |
| Adobe Acrobat online | Yes (Adobe servers) | No | Yes | 100 MB | Browser |
After Compressing: Sharing the Smaller PDF
Once you've compressed the PDF, the most secure way to share it is via FileShot's file sharing tool. Your PDF is encrypted in the browser using AES-256-GCM before upload — the server never sees the file contents. Set a link expiry (1 hour to 30 days), and the document is inaccessible after that window.
For contracts, legal documents, or medical records, this is meaningfully different from attaching to Gmail or uploading to Dropbox — where the provider can access, scan, or produce the file under legal compulsion.
Compress PDF locally. Then share it without the server seeing the contents.
AES-256-GCM encryption in your browser. Set link expiry. Share the URL. Delete the upload on your schedule.
Frequently Asked Questions
How do I reduce a PDF file size for free?
Use fileshot.io/tools/compressor — compresses locally in your browser, no upload required. Or use Ghostscript (free, command-line): gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -dPDFSETTINGS=/ebook -sOutputFile=output.pdf input.pdf. On Mac, Preview's "Reduce File Size" Quartz filter works without installing anything.
How do I compress a PDF on Mac without a third-party app?
Open PDF in Preview > File > Export as PDF > Quartz Filter: Reduce File Size > Save. This uses Apple's built-in filter. Note it's aggressive (72dpi) — for better quality control, use Ghostscript with -dPDFSETTINGS=/ebook which targets 150dpi.
How do I compress a PDF on Windows 10 or 11?
Windows has no built-in PDF compressor. Use: (1) fileshot.io/tools/compressor in Chrome or Edge — no install needed; or (2) Download and install Ghostscript (free, open-source) and run the /ebook preset command.
Can I compress a PDF without losing quality?
For on-screen documents: use Ghostscript /ebook preset (150dpi). At normal zoom levels (67%–125%), 150dpi is visually indistinguishable from 300dpi. If the PDF contains no images (text only), Ghostscript's /printer or /prepress will achieve smaller sizes without any quality loss since fonts subset and stream compression is lossless.
What is a good PDF file size for email?
Target under 10 MB for broad compatibility with email servers. Ghostscript -dPDFSETTINGS=/ebook typically achieves this for most multi-page image-heavy PDFs. If the compressed PDF is still over email attachment limits, use FileShot to generate an encrypted share link — no size restrictions, no email attachment constraints, zero-knowledge encryption for sensitive documents.