Skip to content
Jellykit

Compress PDF

Make a PDF smaller by re-encoding oversized photos and tidying its structure, with the size before and after measured.

  • Runs on your device
  • Works in the background
  • Loads an engine on first use
Loading tool

About Compress PDF

Most oversized PDFs carry photos stored with far more pixels than the page shows. This tool finds each photo, works out the size it is printed at, and re-encodes it as a JPEG at the resolution you choose. It also drops data nothing uses and packs the rest into compressed object streams. Text, fonts and vector drawings are never re-encoded, so they stay sharp.

The result is checked before you download it: it must reopen with the same number of pages, and it must be smaller. If it is not, you keep your original and are told why. Everything runs in your browser; the file is never uploaded.

How it works

  1. The PDF is opened by pdf-lib in a background worker. Objects that nothing refers to are dropped, and everything else is written back in compressed object streams.
  2. Each image the pages draw is measured from the page content: an image printed 4 inches wide needs 600 pixels across at 150 DPI, however many it was stored with.
  3. Plain RGB and gray photos, stored as JPEG or Flate, are decoded by the browser, reduced by area averaging when they hold more detail than needed, and re-encoded as JPEG. CMYK, line art, masks and other kinds are left exactly as they are.
  4. An image is replaced only when its new version is smaller. The whole file is then reopened and its pages counted, and it is offered only if it is smaller than the original.

Questions

Will text stay sharp?

Yes. Text, fonts and vector drawings are never re-encoded; only photos are. The one exception is Flatten pages, a last resort you choose yourself, which turns every page into a picture and says so plainly.

Why did my PDF hardly shrink, or not at all?

It was probably already compact: mostly text, or photos already stored near the resolution they are printed at. Scans stored as JBIG2, fax or JPEG 2000 images, and CMYK print images, are left untouched. The report lists every image that was left alone, and why.

Which compression level should I choose?

Balanced (150 DPI) suits most documents, on screen and printed at the office. Light (200 DPI) is for print where photos matter. Strong (100 DPI) is for email and screen reading. Lossless changes no pixels and saves the least.

Does it work on password-protected or signed PDFs?

An encrypted PDF is refused: remove its password or restrictions first. A digitally signed PDF can be compressed, but any rewrite invalidates its signature, and the report warns you when a file declares one.

How large a PDF can it handle?

Files up to 250 MB. Large files take a while and need memory, as everything happens on your device. Images with more pixels than 4096 × 4096 (about 16.8 million) are left as they are, because iPhones cannot decode anything larger in a browser.

Everything you enter here is processed in this browser tab. Nothing is uploaded, logged or shared. How privacy works here.