How to Compress a PDF Privately in Your Browser
A practical way to get a PDF under an email or upload limit without sending it to a stranger’s server, plus what each compression level actually does to your file.
The usual situation: a form wants a PDF under 5 MB, or Gmail refuses an attachment, and the file in question is a scanned lease, a bank statement, or a signed contract. The first few search results all want you to upload it. For a restaurant menu, fine. For a document with your signature and account numbers on it, it is worth thirty seconds to do it differently.
Our PDF Compress tool runs inside your browser tab. The file is read into memory on your own computer, processed there, and handed back as a download. Nothing is sent to our servers, which you can confirm yourself by opening your browser's developer tools, switching to the Network tab, and watching while you compress.
Why some PDFs are huge and others are not
Before touching any settings, it helps to know what is taking up the space. Text is cheap. A 40-page contract that was exported from Word is often under 500 KB, and there is not much left to squeeze out of it.
Images are expensive. A phone scan of ten pages can easily be 20 MB because each page is a full-resolution photo. Presentation exports with large background images, and PDFs that embed several full font files, are the other usual suspects. If your file is mostly scans or photos, you can expect big savings. If it is mostly text, you may only gain a little, and that is normal rather than a sign something went wrong.
What Light, Balanced and Strong actually do
The tool offers three levels, and they work differently, so it is worth picking on purpose.
- Light rewrites the file structure without touching image quality. It removes redundant objects and metadata and repacks what is left. Text stays selectable and searchable. Savings are usually modest.
- Balanced renders each page as an image at 120 DPI and saves it with medium JPEG quality. This is the setting that turns a 20 MB scan into something you can email.
- Strong does the same at 96 DPI with lower quality. Use it when you just need the file to fit and nobody will print it.
For Balanced and Strong, the tool also builds a Light version in the background and keeps whichever result is smallest, including your original if nothing beats it. The status line tells you which one you got.
One thing to be aware of: when the raster result wins, every page becomes a picture. The text will look the same, but you can no longer select it, search it, or have a screen reader read it. For a scan that was never searchable, you lose nothing. For a text-based contract, try Light first.
Step by step
- Open PDF Compress and drop your file onto the page.
- Start with Balanced unless the document is mostly text, in which case start with Light.
- Check the size in the result line. If it is still too big, try Strong.
- Download the file and open it. Zoom in on the smallest text and any signatures to make sure they are still legible.
When it is still too big
Compression is not the only lever, and it is often not the best one.
- Remove pages you do not need. Blank backs of scanned pages and cover sheets add weight for nothing. Use PDF Split to pull out just the pages that matter, then compress the smaller file.
- Compress the heavy part only. If three pages are photos and the rest is text, split them, compress the photo pages with Strong, compress the text pages with Light, and put them back together with PDF Merge.
- Rescan at a sensible resolution. If you control the scanner, 150 to 200 DPI in greyscale is plenty for most paperwork. Scanning at 600 DPI in colour and then compressing throws away most of what you captured.
Mistakes that cost quality
Do not compress the same file over and over. Each raster pass softens the image again, and a document that went through three rounds can become hard to read. Keep your original and always compress from it.
Also be careful with documents that have to stay searchable, such as files you are submitting to a system that extracts text, or anything that needs to meet accessibility requirements. For those, stick to Light or trim pages instead.
A note on privacy
Local processing protects the file during compression. It does not change what is inside the PDF. If the document contains information the recipient should not see, compressing it will not hide that. For removing content, see our guide on how to black out text in a PDF and check it is really gone.
Frequently asked questions
Is my PDF uploaded when I compress it?
No. The file is processed in your browser with JavaScript libraries that run on your device. You can confirm this by watching the Network tab in your browser developer tools while you compress.
Why did my PDF barely get smaller?
Text-based PDFs are already compact, so there is little to remove. Big savings come from scans and image-heavy files. Removing unneeded pages usually helps more than a stronger setting.
Why can I no longer select text after compressing?
Balanced and Strong can turn each page into an image when that produces the smallest file. Use Light if you need the text to stay selectable and searchable.
Can I compress a password-protected PDF?
You need to remove the password first, using a copy you are allowed to unlock. The PDF Unlock tool does this locally when you know the password.
Sources and further reading
- Gmail Help: attachment size limits - why 25 MB is the number most people are trying to get under
- pdf.js by Mozilla - the open-source PDF renderer used for the raster levels
- pdf-lib - the JavaScript library used to rebuild the file structure