How to Compress a PDF Without Uploading It Anywhere
Most PDF compressors upload your file to a server. Here's how to reduce PDF size entirely in your browser — free, private, and with no file size limits.

If you've ever Googled "compress PDF online," you've seen the same tools appear: iLovePDF, Smallpdf, PDF Compressor Pro. They all work — but every one of them uploads your document to a remote server to process it.
For a PDF of your coffee shop menu, that's probably fine. For a contract, tax return, medical record, or anything covered by an NDA, it's worth pausing.
What actually happens when you "compress PDF online"
When you drag your file into an online compressor and click "Download," your file travels through this path:
- Your browser uploads the PDF to the service's server (usually AWS S3 or Google Cloud Storage)
- A server-side process (Ghostscript, MuPDF, or similar) runs the compression
- The compressed file is written back to cloud storage
- Your browser downloads the result
- The original is (usually) deleted after a period — often 1–24 hours, depending on the service's privacy policy
The temporary storage window is the exposure. Even well-intentioned services get breached, and the policies governing how long files sit in cloud storage vary widely.
Browser-based compression: how it works differently
Modern browsers can run the same compression algorithms locally using WebAssembly — a binary format that lets compiled C/C++ code (like PDF-lib and Ghostscript's core) run inside your browser tab at near-native speed.
When you use Stax PDF Compressor:
- You select your file — it loads into browser memory only
- PDF-lib restructures the PDF stream: removes unused objects, applies cross-reference stream compression, strips redundant metadata
- The compressed file is written back to a Blob in your browser's memory
- You download it directly — it was never sent anywhere
Open your browser's DevTools → Network tab while compressing. You'll see zero outbound requests with your PDF data. That's verifiable privacy.
How much can you compress a PDF in-browser?
It depends on what's in the PDF:
- Text-heavy PDFs (contracts, reports): typically 10–35% reduction from structural compression alone
- PDFs with embedded images: the structural pass has modest effect on image bytes; compress the source images first with the Image Compressor, then convert to PDF
- Already-optimised PDFs (Adobe Acrobat, Chrome print-to-PDF): minimal reduction — these are already well-structured
Server-side tools like Ghostscript with aggressive settings can sometimes achieve higher compression ratios by resampling embedded images. If you need maximum size reduction and privacy isn't a concern, those tools are still appropriate. For everyday "I need to email this PDF" use cases, in-browser compression handles it.
Step-by-step: compress a PDF without uploading
- Open stax.tools/pdf-compressor in your browser
- Drag your PDF onto the drop zone, or click to select it
- Click Compress PDF
- Download the compressed file
No signup. No email. No upload. The process takes 2–10 seconds depending on file size and your device's CPU.
What about very large PDFs?
The practical limit for browser-based PDF processing is your device's available RAM. On a modern laptop with 8+ GB RAM, files up to 200–300 MB process without issues. For multi-gigabyte PDF archives, a local tool like Ghostscript (free, open-source, command-line) is more appropriate.
# Ghostscript one-liner for heavy compression
gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 \
-dPDFSETTINGS=/ebook -dNOPAUSE -dQUIET -dBATCH \
-sOutputFile=compressed.pdf input.pdf
/ebook targets 150 DPI images — good for screen reading. Use /printer for 300 DPI or /prepress for 300 DPI with colour preservation.
Quick comparison
| Tool | Upload required | Free tier limits | File size limit |
|---|---|---|---|
| Stax PDF Compressor | ❌ No | None | RAM only |
| iLovePDF | ✅ Yes | 200 MB, daily caps | 200 MB |
| Smallpdf | ✅ Yes | 2 tasks/day | 15 MB (free) |
| Adobe Acrobat Online | ✅ Yes | Requires sign-in | 100 MB |
| Ghostscript (local) | ❌ No | None | Unlimited |
The bottom line
For sensitive documents, browser-based compression is the correct choice — not because cloud tools are untrustworthy, but because eliminating the upload step eliminates the exposure entirely. For everyday files where privacy isn't a concern, any of the tools above work fine.
Try Stax PDF Compressor — it's free, runs in your browser, and works on any device without installation.