Compress PDF to Size

No upload · runs in your browser

Runs entirely in your browser, nothing is uploaded.

How it works

Compress a PDF to 100 KB, 200 KB or 500 KB

Shrinks a PDF until it fits 100 KB, 200 KB, 500 KB, 1 MB or a size you type, binary-searching JPEG quality across at most six passes.

What this does
  • Presets at 100 KB, 200 KB, 500 KB and 1 MB, or any custom target from 20 KB up
  • Binary-searches JPEG quality inside two render scales, six builds at most
  • Reports the size it actually reached and the quality it settled on
  • Says so when a target is out of reach, and offers the smallest version it managed
  • A file already under the target comes back untouched rather than re-encoded
  • Capped at 300 pages, so a very long document has to be split first
FAQ

Every page is rendered by pdf.js to a canvas, encoded as a JPEG and reassembled into a new PDF by pdf-lib, and each attempt is weighed in bytes, so the number you are shown is the size of the file you download. The quality setting is binary-searched: a high-quality build first, then a low one to prove the target is reachable at all, then midpoints until the bracket closes to 0.07. If even the lowest quality overshoots, the pages are re-rendered at 55% of the scale and the search runs again. Six builds is the ceiling.

Keep going