PDF Compressor
Shrink a PDF by re-encoding its pages as JPEG images at a quality and resolution you choose — entirely in your browser. Read the warning first: this method has a real cost, and we won't hide it.
50 = smaller, softer · 70 = balanced · 85 = sharper, larger. Presets are just points on this slider.
About this PDF compressor
Email limits, upload caps and messaging apps all reject big PDFs, and the files that blow those limits are almost always scans: every page a full-resolution photograph. This compressor attacks exactly that case by re-drawing each page at a sensible resolution and storing it as a JPEG, rebuilding the PDF from those images with pdf-lib, in your browser.
What makes this page different is the honesty, because image-based compression has a genuine downside that marketing pages omit: the output's pages are pictures. Text can no longer be selected, searched or copied, fine detail softens, and a PDF that was mostly text to begin with may come out barely smaller — occasionally larger. You choose quality (a slider: 50 for small and soft, 70 balanced, 85 sharper) and resolution (72–200 DPI), and the tool reports the true before and after sizes, including when the answer is “your original was better”.
How it works
Your browser renders each page of the PDF with pdf.js onto a canvas at the resolution you picked, encodes that canvas as a JPEG at your quality setting, and places the image on a same-sized page in a new PDF built with pdf-lib. A 20 MB phone scan at 110 DPI and quality 70 typically lands well under 1 MB, because the original was storing far more pixels than anyone will ever view. Nothing is uploaded at any point — the rendering happens on your device.
If your goal is a smaller file that keeps selectable text, image recompression is the wrong tool and no honest in-browser compressor can do that job well: preserving the text layer while shrinking means re-optimising the PDF's internal streams and fonts, which pdf-lib alone barely achieves (in testing it saved under 2 KB on an 18 MB scan). For text documents, the better fix is usually to regenerate the PDF from its source, or split it with PDF Split and send the part that matters.
Worked example
A landlord needs to email a signed 14-page tenancy agreement she scanned on a phone printer app: 18.2 MB, rejected by the letting agent's inbox. At 110 DPI and quality 70 the compressor returns 890 KB that looks identical on screen and prints fine — the agent receives it, and since a signed scan never had selectable text anyway, nothing real was lost. The same settings on her accountant's text-based PDF report, by contrast, save only 6% and cost the text layer — the tool says so, and she keeps the original.
Limitations
- The compressed PDF's pages are images: no selectable, searchable or copyable text, and screen readers can no longer read it. Do not compress documents you need to keep accessible or machine-readable — contracts you may need to search, statements, anything for records.
- Compression is lossy and one-way. Small text and fine lines soften as quality and DPI drop; always keep your original file.
- Text-heavy, already-optimised PDFs may not shrink at all, and can grow. The tool reports the real sizes rather than claiming a percentage.
- Rendering happens page by page on your device; very long documents on older phones can take a while and use significant memory.
Frequently asked questions
Why did my PDF get bigger?
If the original was mostly text and small images, it was already stored efficiently. Re-encoding every page as a JPEG image can cost more bytes than the text it replaces. The tool shows you the honest result and your original remains the better file.
Will people be able to copy text from the compressed PDF?
No. Pages become images, so text selection, search and copy stop working. Only compress documents where that does not matter — typically scans, which had no text layer to begin with.
Which settings should I choose?
For emailing scans: 110 DPI, quality 70 is the sweet spot. For anything that will be printed, use 150–200 DPI and quality 85. For pure on-screen viewing where size matters most, 72 DPI and quality 50.
Is my PDF uploaded for compression?
No — the whole process runs in your browser with pdf.js and pdf-lib. Check your browser's Network tab while it works: no file leaves your device.