OnsitePDF
Sign in

How to compress a PDF to reduce file size

Shrink a PDF for email or upload — entirely in your browser, with nothing sent to a server. A practical guide to compressing PDFs privately.

The fastest way to reduce a PDF's file size is to run it through a compressor that rewrites its internal structure more efficiently, then compare the before and after sizes. With Compress PDF that takes one drop and one click, it happens in your browser, and the document never leaves your device. This guide explains what the tool does, what to expect and what to try when a file will not shrink.

Large PDFs are awkward to email, slow to push through upload portals and heavy to store. Many online compressors solve this by uploading your file to a server, which is a poor trade when the document is a contract, a medical report or a scan of an ID. OnsitePDF compresses in the browser instead: nothing is uploaded, and no request carries your file data.

Step by step

  1. Open the Compress PDF tool.
  2. Drop in the PDF you want to shrink. The tool takes one file at a time.
  3. Click Process. The tool rewrites the file's structure and shows the new size next to the original.
  4. Download the smaller PDF.

The first time you use it, your browser downloads the compression engine from this site, so that run can take a moment longer. Later runs reuse it. The engine runs on your device; the About page explains how you can watch the Network tab to confirm that your file is never sent.

What actually gets smaller

This is lossless, structural compression. It tidies the way the PDF is written: it packs objects into compressed streams, applies compression to data that was stored raw, and drops redundant or unused objects. It does not re-encode or downsample images, which is why text stays sharp and photos are untouched. The savings depend on how inefficiently the file was produced, not on what it contains.

No particular reduction is promised. A report exported from a word processor may shrink by a good margin, while a stack of phone photos saved as a PDF will barely move, because the bulk of that file is image data that is already compressed.

Other ways to reduce PDF size

Adobe Acrobat. A paid Acrobat plan can reduce file size and offers fine control over how images are treated. That control is useful when you need a much smaller file and can accept some loss in image quality. It requires installing and paying for software.

macOS Preview. Preview offers a Reduce File Size filter when you export a PDF. It is convenient on a Mac, but it works by lowering image quality, and the results can look noticeably softer, so compare the output with the original on screen before sending it.

Re-exporting from the source. If you still have the Word document or slide deck, exporting again with a smaller-file or standard-quality option often beats any after-the-fact compressor, because the source knows which images really need to be large.

Online upload tools. They are easy to find, and some give strong results by shrinking images aggressively. The cost is that your file is sent to someone else's server, so keep them for documents that are not sensitive.

Common problems

The file barely changed. That usually means the PDF is mostly photographs or scans, which are already compressed. Structural compression cannot reduce them further. If you need a smaller file and can accept lower image quality, re-scan at a lower resolution or re-export from the original document with a lower image setting.

I got the same size back. When the rewritten version would not be smaller, the tool hands you the original unchanged. That is intentional: you never receive a larger file than you started with.

The tool says the file is protected. Encrypted PDFs must be decrypted before their structure can be rewritten. Use the original unprotected version, or remove the password first. If you later need to lock the result, Protect PDF adds a password afterwards.

The file is very large and the browser struggles. All processing uses your device's memory, so huge files can be slow or fail on a phone. Try a desktop browser, close other heavy tabs, or split the document into parts before compressing.

The email still bounces. Some mail systems limit attachments to a few megabytes, and a compressed file may still exceed that. Split the PDF into parts, or share a download link instead of an attachment.

Combining compression with other steps

Order matters if you do several things to one document. Merge first, then compress the combined file once, rather than compressing each piece separately. If the PDF also needs a password, compress before protecting it, because an encrypted file cannot be restructured. Each step runs locally, so you can chain them without any of the intermediate files leaving your device.

Frequently asked questions

Will compressing ruin the quality? No. This is lossless, structural compression: it rewrites the PDF more efficiently without touching image quality, so text stays sharp and images are untouched. If a file cannot be made smaller, you get the original back unchanged.

Is my file uploaded to compress it? No. All processing happens locally in your browser, and you can confirm in your browser's developer tools that no request carries your file.

Can I compress a password-protected PDF? Unlock it first, or use the original, then compress. Encrypted files must be decrypted before their structure can be rewritten.

Does it work offline? Only in a page that is already open. Once the compression engine has downloaded on first use, an open page keeps working if your connection drops, and compression runs on your device. Opening or reloading the page needs a connection.