Guides › PDF documents
How to compress a PDF in the browser
Last updated 10 October 2026 · Written by Souren Das
Compress PDF rewrites the document in this tab and tells you the size before and after. It is a light structural rewrite, not a server that downsamples every image to a promised percentage. That difference matters, so this guide explains what the rewrite can and cannot shrink, and what to do when the number barely moves. FileTools Kit does not receive the file.
What the rewrite actually does
The tool loads the PDF with pdf-lib, copies every page into a fresh document, and saves it with object streams, which pack the file's internal bookkeeping more tightly. Leftover objects that the old file carried but no page uses are dropped along the way. It does not re-encode images, lower their resolution, remove fonts, or convert colour to greyscale. That is why the result is honest but modest.
When it helps, and when it will not
Files that often shrink: PDFs edited and re-saved many times, PDFs exported by older office or scanner apps, and files that were built by appending changes, where old versions of objects are still inside. These can carry a lot of dead weight, and a clean rewrite removes it.
Files that usually do not shrink: a phone scan where every page is already a JPEG, a PDF a modern tool already optimised, and anything whose size is mostly photos. A 4 MB scan is 4 MB of pictures, and a structural rewrite leaves pictures alone. Sometimes the result is slightly larger than the original. Running it a second time will not change that.
Steps
- Open Compress PDF.
- Press Choose a PDF to compress and pick the file. Keep the original where it is.
- The rewrite starts at once. compressed.pdf downloads and the page shows a line such as report.pdf: 812 KB -> 604 KB. Light rewrite only.
- Compare the two numbers. Keep the new file only if it is smaller.
- Open compressed.pdf and check the first page, a page with a photo or a signature, and the last page.
- Rename it before you send it, for example rent-agreement-2026.pdf.
If the number barely moves
For a scanned document that must go under a portal cap, the reliable route is to shrink the images, not the PDF wrapper:
- If you have the original photos or scans, open them in Image Optimizer. If you only have the PDF, turn its pages into images with PDF to JPG at Standard or Screen resolution first.
- Set Output Format to JPEG, lower Dimensions Scaling until a page is around 1200 to 1600 pixels on its long side, and bring Visual Quality to about 60 to 70.
- Build the PDF again with JPG to PDF and check the size.
The trade-off is that pages built from images have no selectable text. For a scan that never had any, nothing is lost. The full walkthrough, with targets for 1 MB and 200 KB caps, is in how to get a PDF under 1 MB or 200 KB.
Reading the result line
The line after a run shows the original and new sizes, for example 2410 KB -> 1650 KB. That is a real saving of about a third, typical for a file that was edited and re-saved many times. A line like 3980 KB -> 3950 KB means the file is mostly images, and you need the image route above. A line where the second number is bigger means the original was already compact; keep it. The tool does not decide for you, which is deliberate: you can see the numbers and choose.
Common mistakes and fixes
- Sending the larger file. The download happens even when the result is bigger. Read the KB line and delete compressed.pdf if it lost.
- Overwriting the original. Save compressed.pdf under a new name until you have checked it.
- "Could not compress that file." Encrypted PDFs often fail. Save an unlocked copy in your reader first.
- A form stopped being fillable. Form fields may not survive the page copy. Fill the form first, or send the original.
- Expecting a percentage. There is no target slider here, because the tool does not touch image quality. Any site that promises 80% on every file is resampling images, which you can do yourself with the image route above while seeing the result.
What the rewrite can lose
Bookmarks in the reader's side panel are not carried over. A digital signature will not stay valid after the rewrite. Fillable fields may be lost. Page content, text, and images are copied as they are. This is also not redaction: hidden or covered text stays in the file.
Privacy
The PDF is read and rewritten in this tab's memory. There is no upload step, so this is a reasonable tool for documents you would rather not hand to an online compressor, such as payslips or ID scans. The page itself loads from Vercel and shows ads, which see a page visit, not your file. See what stays in the tab.
FAQ
Why did my PDF get bigger?
The original was already compact, and the rewrite added a little structure. Keep the original.
Does it reduce image quality?
No. Images are copied untouched. That is also why scans rarely shrink.
Can I compress several PDFs at once?
No, one file per run.
Is text still searchable afterwards?
Yes. Text stays text.
Related guides: get a PDF under 1 MB or 200 KB, compress images in the browser, put JPG and PNG scans into one PDF, when browser PDF tools fail.
Written by Souren Das, FileTools Kit, Bengaluru. Last updated 10 October 2026. Spotted a mistake or a step that does not match the tool? Email support@filetoolskit.com and I will fix it. See how tools and guides are tested.