Compress PDF

Re-save a PDF with compact object streams to trim its size, and see the size before and after. Lossless, local, never uploaded.

Drag & drop your PDF here or click to browse

PDF

Processing Complete!

Your files are processed in this browser tab with pdf-lib and are not uploaded.

How to compress a PDF

  1. Add a PDF by clicking the dashed box or dragging the file onto it.
  2. Press Compress PDF. The file is re-saved in your browser, usually within seconds.
  3. Read the result line. It shows the original size, the new size and the change in percent. A minus sign means the file got smaller; a plus sign means the re-saved copy is larger.
  4. Download compressed.pdf if it is smaller. If not, keep your original and look at the alternatives further down.

What this compressor does – and what it does not

A PDF is a collection of numbered objects: page descriptions, fonts, images and many small dictionaries that tie them together, plus a cross-reference table that records where each object sits in the file. Since PDF version 1.5, small objects can be packed together into object streams and compressed as a group, and the cross-reference table itself can be stored compressed.

This tool loads your file with the open-source pdf-lib library and writes a fresh copy with object streams switched on. The rewrite also drops outdated versions of objects that pile up when a file is edited and saved incrementally many times, because only the latest version of each object is kept.

It does not resample or re-encode images, remove or subset fonts, or strip metadata and attachments. Everything that is drawn on the page stays byte-for-byte the same, so the result is lossless: pages look identical. The flip side is that savings depend entirely on how the file was made.

Kind of PDFWhat to expect hereBetter route if it is not enough
Text documents from older software, forms, files edited and re-saved many timesOften a useful reductionSplit off pages you do not need
Recent exports from office suitesLittle change, sometimes slightly largerRe-export with smaller images
Scanned documentsAlmost no change – nearly all bytes are image dataRescan or re-encode images at lower resolution
Photo-heavy brochures and slidesLittle changeRe-export with image downsampling

Tips for getting a smaller file

When it is worth a try

Limitations and alternatives

Frequently asked questions

Why is my compressed PDF the same size or bigger?

The file was probably already saved with compressed object streams, or most of its size is image data, which this tool does not re-encode. In that case keep the original and try the alternatives on this page.

Does compressing reduce the quality of my PDF?

No. The tool only repacks the file's internal structure. Text, fonts and images are left exactly as they were, so every page looks the same.

How much smaller will my file get?

It depends on how the PDF was produced. Files edited many times or made by older software can shrink noticeably, while modern exports and scans change very little. The result line shows the exact change in seconds.

Can I compress a scanned PDF here?

You can try, but expect little change because nearly all of a scan is image data. Rescanning at a lower resolution or re-encoding the images with a tool such as Ghostscript works much better.

Will compressing break a digital signature?

Yes. Any tool that rewrites a signed PDF invalidates the signature, so compress documents before they are signed.

Is my file uploaded to a server?

No. The file is read and re-saved by pdf-lib inside your browser, and the result is created on your device.

Related tools

Further reading: How to make a PDF small enough to email.