You have a 22 MB PDF. Email says 10 MB max. You Google "pdf compressor", click the first result, drag your file in. Twelve seconds later you have a 4 MB PDF and a small voice in the back of your head: did I just upload my client's contract to a random server in another country?
That voice is right to be nervous. This guide explains what compression actually does to a PDF, how to choose a compression level without nuking quality, and how to do all of it without uploading sensitive files.
What Actually Gets Smaller in a PDF
PDFs are containers. They wrap a mix of text, vector graphics, raster images, fonts, metadata, and sometimes form fields or attachments. When you "compress" a PDF, only some of those parts actually shrink:
- Text: Already very small — usually stored as glyph references against an embedded font. Real-world PDFs rarely save more than 1–2% on text.
- Vector graphics (charts, line art, logos): Already compressed by the PDF's stream encoding. Marginal savings.
- Embedded fonts: Big wins if the original PDF embedded an unused font subset incorrectly. Real-world tools often do font subsetting — keep only the glyphs actually used.
- Raster images (photographs, scanned pages, screenshots): Where the savings live. A 300 DPI scan can usually be downsampled to 150 DPI and re-encoded as JPEG at quality 75 without humans noticing. This single transformation can shrink a scan-heavy PDF by 70–90%.
- Metadata, thumbnails, attachments: Small in absolute size, easy to strip.
The reason most compressors quote "up to 90% reduction" is that scan-heavy PDFs (the kind people most need to compress) are pathologically image-heavy. A born-digital PDF — exported from LaTeX or a slide tool — has almost no compressible bulk and will only shrink 5–15%.
This is the single most useful intuition for picking a compressor: if your PDF is mostly scanned pages, almost any tool will dramatically shrink it. If your PDF is mostly text/vector, no tool will help much.
Compression Levels Explained
Most tools expose three levels: low, medium, high.
- Low (also called "high quality"): Image DPI capped around 200–300, JPEG quality 85+. Files shrink modestly (often 30–50%). Suitable for print, archival, and any PDF where image fidelity matters.
- Medium: DPI around 150, JPEG quality 75. The default for most online tools. Files shrink 50–75%. Suitable for email, web reading.
- High (also called "low quality" or "aggressive"): DPI 96–100, JPEG quality 60. Files shrink 70–90%. Suitable when "is this file under 5 MB" matters more than fidelity. Don't use for documents that will be printed or contain fine type.
Some tools also offer a "lossless" mode that only strips metadata, recompresses streams with better codecs, and subsets fonts — no image downsampling. Real savings are 5–25%, but the PDF is byte-for-byte equivalent for reading purposes. Always try lossless first if your file is going to be archived or signed.
Online vs Desktop
The 2026 landscape:
Online (free): ilovepdf, smallpdf, pdf2go, sejda, adobe.com's online tool. All upload your file. Most claim deletion after a few hours. Speed depends on server load.
Online (free, client-side): orangebot.ai/tools/pdf-compressor. Uses pdf-lib and browser-image-compression in the browser; nothing is uploaded. Limited by browser memory (200–300 MB practical limit).
Desktop: Adobe Acrobat (paid, best-in-class, server-grade optimization built in). On macOS, Preview has a built-in "Reduce File Size" Quartz filter — try it before reaching for anything else, it's free and instant. On Linux, gs (Ghostscript) is the canonical:
gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/ebook \
-dNOPAUSE -dQUIET -dBATCH -sOutputFile=out.pdf in.pdf
/screen (96 DPI), /ebook (150 DPI), /printer (300 DPI), /prepress (300 DPI, color preserved). /ebook is the right default.
CLI: pdftk for assembly, gs for compression, qpdf for stream rewriting. Combine for production pipelines.
The decision is usually about file sensitivity and frequency: one-off public PDF → online is fine; sensitive contract → client-side browser tool or desktop; you-do-this-every-week → CLI script.
Why Uploading Sensitive PDFs Is a Security Incident
This is the part most "best PDF compressor 2026" articles skip.
When you drag a contract, a medical form, or a financial statement onto a free online compressor, you are:
- Sending the full plaintext file to a third party.
- Trusting their TLS implementation.
- Trusting their server is not compromised.
- Trusting they actually delete the file (most legally cannot prove they do).
- Trusting they don't sell access to "anonymized" file content.
- Trusting their employees not to peek.
For a meme PDF, none of this matters. For a signed NDA, a tax return, or a board deck, every single bullet is a potential exposure. Some compliance regimes (HIPAA, anything FERPA-adjacent, most enterprise security policies) explicitly forbid uploading regulated documents to third-party processors without a BAA — and free online tools do not offer BAAs.
The simplest workflow that respects this:
- Public PDFs (your published whitepaper, a blog attachment): online tool is fine. Pick one and move on.
- Internal but non-regulated PDFs (a deck for a meeting, an org chart): macOS Preview "Reduce File Size",
gs, or a client-side browser tool. - Regulated or sensitive PDFs (anything with PII, financial data, or contractual content): desktop only. Don't even open the browser tool. Don't trust "client-side" claims unless you can verify the network calls.
The 30-second verification, same as we recommend in AI tools for developers:
- Open the tool's page in a browser.
- Open Network panel in DevTools.
- Turn off your Wi-Fi.
- Try a small test file.
- If it works → genuinely client-side. If it errors → uploads happen.
We did this check for orangebot.ai/tools/pdf-compressor — it works offline, which is the whole point of building it client-side.
A Practical Decision Tree
- Is the PDF mostly text? → Try lossless first. Don't expect more than ~15%.
- Is the PDF scan-heavy and the file is public? → Any tool, medium quality. Done.
- Is the PDF sensitive (PII, regulated, contractual)? → Desktop or client-side browser tool only. Verify with the offline test.
- Are you doing this every week for the same input format? → Script it.
gs+ cron, or a Make task. Stop manually compressing. - Is the file > 100 MB? → Browser tools will OOM. Use desktop.
- Are you targeting a specific size cap (email 10 MB, government portal 5 MB)? → Start at medium, check the size, step up only if needed. Don't default to "high" — it's almost always over-compression.
TL;DR
- For most casual jobs: macOS Preview, orangebot.ai/tools/pdf-compressor, or
gs -dPDFSETTINGS=/ebook. - For sensitive files: never upload. Desktop or verified-client-side only.
- For batch / recurring work: script it with
gsorqpdf. - For "I just need this under 10 MB right now": medium compression usually does it. Avoid high unless you've checked the output for legibility.
The most important number to remember: scan-heavy PDFs compress dramatically; text-heavy PDFs barely compress at all. Set expectations from your input, not from a tool's marketing claim.
For the wider category of privacy-first browser utilities — image, video, audio, code, PDF — see AI tools for developers in 2026 or jump to orangebot.ai/tools.