Most PDF compressors ask you to pick "low / medium / high" and hope. Here's a client-side approach that starts at the highest quality and steps down only until the file fits — and your document never leaves your device.
The problem with "pick a quality level"
Every upload portal phrases its limit as a number, not a vibe: "PDF, maximum 2 MB." An email bounces at 5 MB. A government form insists on 200 KB. Yet most free PDF compressors make you guess a quality preset — Low, Medium, High — and then tell you afterwards whether the result happened to fit. If it didn't, you compress again, a little blinder each time.
The better question is the one the portal actually asks: how small does this file need to be? Answer that number, and the tool should do the guessing for you.
Target-size compression, step by step
The approach is simple, and it is exactly what ToolRush's free Compress PDF tool does in the browser:
- Pick your target size — 200 KB, 500 KB, 1 MB, 2 MB (the default), or 5 MB.
- Drop in your PDF. The tool shows its name, size, and page count.
- It tries the highest quality first — Print quality at 300 dpi — and checks whether the result fits your target. If it does, it stops there. If not, it steps down: 150 dpi, then 120, 96, and 72 dpi, finishing with a 72 dpi grayscale pass.
- You get the highest quality that still fits, with a result panel showing the original size, the compressed size, the percentage saved, and which setting was used.
The key detail: most of a PDF's weight is not its text. It's the photos and scans embedded in it, often stored at far higher resolution than any screen or office printer can use. Compression re-encodes those images at a sensible resolution while the text and line art stay in their original vector form — perfectly sharp at every setting. So stepping down image resolution is a controlled trade, not a blur-everything gamble.
A real example
Take a three-page scanned document — three full-page colour images at 300 dpi — weighing 6.8 MB, headed for a portal that accepts at most 2 MB. With the 2 MB target selected, the tool first tries Print quality (300 dpi): the file barely changes, because the images are already stored efficiently at that resolution. It steps down to Balanced (150 dpi). That fits: the compressed PDF is 362 KB — a 94.8% reduction, comfortably under the limit — and the tool stops there instead of degrading the file further, because Balanced is the highest quality that fits. Page count and text are unchanged; only the embedded images are now stored at 150 dpi instead of 300, still clear for reading on screen.
Why it runs in your browser (and why that matters)
This is the part that makes the tool interesting from a technical angle. The compression engine is Ghostscript — the open-source engine professional PDF tools are built on — compiled to WebAssembly so it runs inside the browser. The first time you compress, your browser downloads the engine (about 16 MB, served from toolrush.org itself, no third-party server involved). After that it's cached, and repeat compressions start quickly.
Your document itself never travels over the internet. That's not a marketing line; it's an architectural fact — there is no server endpoint receiving your file, because the work happens on your own device. For scanned contracts, ID documents, and certificates, that distinction is the whole point: the files people most need to shrink are exactly the ones they least want to upload to a stranger's server.
A few honest limits, straight from the tool's own FAQ:
- A very small target isn't always reachable. A long document of dense, detailed scans has a hard floor — the tool says so plainly and offers the smallest result it achieved, instead of pretending it hit the target.
- Some PDFs are already well optimized. Files exported by Microsoft Office or a modern scanner app often have little left to squeeze. The tool tells you the file was already well optimized and offers your original back, rather than handing you a larger file dressed up as a success.
- Password-protected PDFs are detected and reported, not silently failed.
- There's no built-in file-size limit — the practical limit is your device's memory. Files of a few dozen megabytes usually compress fine on a laptop or a recent phone.
When to reach for it
- Application and government portals with strict upload caps (200 KB to 2 MB are typical).
- Email attachments that bounce against 5 MB or 10 MB mailbox limits.
- Scanned contracts, ID documents, and certificates that come off a scanner at 10 MB or more.
- Reports and ebooks that need to open quickly on phones and slow connections.
If the target you need is a number, start from the number. Try it free, no sign-up, nothing uploaded: https://toolrush.org/tools/compress-pdf
Top comments (0)