OnsitePDF
Sign in

Compress a PDF online, free

Shrink file size while keeping quality sharp.

Files stay on your device

Drop your PDF here, or click to choose

Files are processed on your device — nothing is uploaded.

Choose file

Need to compress a PDF so it is easier to email or upload? Drop your file in, click one button and see how much smaller it gets. The tool rewrites the file's internal structure more efficiently, without touching the quality of your text, images or layout. There is nothing to install and no account to create. Compression runs in your browser, so a private document never has to be sent to a server just to be made smaller. The tool is free and adds no watermark, and it shows you the size before and after.

How to compress a PDF

  1. Drop the PDF onto the page, or click to choose it from your device.
  2. Click Process. The tool rewrites the PDF's structure to make the file smaller.
  3. Download the result. The page shows you the original size, the new size and how much was saved.

Your original file is never modified, and if the result is no smaller than what you started with, you simply get the original back unchanged.

What gets smaller, and what doesn't

This tool has no settings to choose. It does one thing: lossless restructuring. A PDF is a collection of objects such as pages, fonts, images and instructions, and many files store them wastefully. The compressor packs those objects together, recompresses the parts that can be compressed again and discards objects that nothing in the document refers to any more. Nothing visible is changed, so there is no loss of quality, no blurred images and no altered fonts.

The size of the saving depends entirely on how the file was made. Documents exported by some software, or edited and saved many times, often carry leftover data and can shrink noticeably. Files that were already tightly packed will barely change. A scan or a photo-heavy brochure is mostly made of image data that is already compressed, and because this tool does not reduce image resolution or re-encode pictures, it cannot make them much smaller. No ratio is promised: the only guarantee is that you never get a larger file back.

If you need a dramatic reduction for an image-heavy document, you would have to accept some loss of image quality, which is a different kind of compression from this one. Lossless is the right choice when the document must look exactly as it did and you just want to shed unnecessary weight.

When you'd use this

Compress PDF vs. Acrobat, Preview and online converters

Adobe Acrobat has a Reduce File Size command and a more thorough optimizer, but they need a paid Acrobat plan. macOS Preview can export with a Reduce File Size filter, though it recompresses images aggressively and often leaves the document noticeably blurrier. Many online compressors can shrink files dramatically, but they upload your document to their servers, and some achieve it by lowering image quality without making that obvious.

This tool takes the cautious route: the output is a visually identical document, never a degraded one, and your file is never uploaded. The trade-off is that savings are modest and unpredictable, and image-heavy scans may not shrink at all. If you need aggressive shrinking and can accept softer images, a lossy compressor is the better fit.

Why your file stays on your device

Compression is performed by qpdf-wasm, a WebAssembly build of the qpdf library, running inside a background worker in your own browser. The WebAssembly engine downloads from this site the first time you compress a file, so that first run needs a connection. Your PDF is read into memory on your device, restructured there and handed straight back as a download. Nothing is uploaded, and no request carries your file data. The file bytes never leave the device. You can confirm this yourself: see how to verify for steps to watch your browser's network panel while a file is processed.

Frequently asked questions

Do I have to upload my PDF to compress it?
No. Compression runs entirely in your browser — nothing is uploaded, and no request carries your file data.
Will compressing reduce the quality?
No. This is lossless, structural compression — it rewrites the PDF more efficiently without touching image quality. If a file can't be made smaller, you get the original back unchanged.
How do I reduce the size of a PDF file?
Drop your PDF onto the page and click Process. The tool restructures the file and shows the size before and after. How much it saves depends on the file — already-compact PDFs and image-heavy scans may shrink very little, and no particular reduction is promised.
Why didn't my PDF get much smaller?
Lossless compression only removes wasted structure, not image detail. A scan or photo-heavy file is mostly image data that is already compressed, so there is little left to remove. If the result isn't smaller, you get your original file back.
Is compressing PDFs free?
Yes. It's completely free, with no account, no sign-up, and no watermarks.
Can I compress a PDF offline?
Only in a page that is already open. Once the compression engine has downloaded from this site on first use, an open page keeps working if your connection drops: compressing runs on your device and your file is never sent anywhere. Opening or reloading the page needs a connection, because the site does not install itself for offline use.