Skip to content
Jellykit

Compress PDF to a Target Size

Shrink a PDF until it fits under a size you choose by re-encoding its images in steps, and see plainly whether the target was met.

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

About Compress PDF to a Target Size

Upload forms, email systems and application portals often refuse a PDF over a set size. Enter that size and this tool works toward it: a lossless clean-up first, then the embedded images re-encoded at gentle to harsh settings, keeping the gentlest one that fits. Text, fonts and vector drawings are never re-encoded.

The result says plainly whether the target was met, with the size before and after down to the byte. When the target is out of reach, you see how close it came and what is holding it up, and you can still take the smallest file, marked as over the target. A table shows which pages carry the image data. The file never leaves your browser.

How it works

  1. The PDF is opened once in a background worker. A lossless clean-up drops objects nothing uses, stores identical copies once and packs the rest into compressed object streams. If that is enough, no pixel is changed.
  2. Otherwise embedded photos are re-encoded as JPEG along seven settings, from 200 DPI at 85% quality down to 50 DPI at 30%. Each try halves the range left, so at most three are tried, and the gentlest that fits is kept.
  3. Only plain RGB and gray images stored as JPEG or Flate are touched, and an image is replaced only when its new version is smaller. CMYK, JBIG2 and JPEG 2000 images, and images with stencil or colour-key masks, are left exactly as they are.
  4. Every file is reopened and its pages counted before it is offered, and none is ever larger than your original. Only if you allow it are pages redrawn as pictures, as a last resort, with what that costs stated beside the switch and the result.

Questions

What happens if my PDF cannot get under the size?

You are told so in words, with the smallest size reached and how far over it is. The result also says what is holding it up: text and fonts that image work cannot shrink, image kinds this tool leaves alone, or images still large at the harshest setting. The smallest file is still offered, labelled as over the target.

Is 1 MB here 1,000 KB or 1,024 KB?

The target counts kilobytes of 1,024 bytes, so 1024 KB is 1 MB, or 1,048,576 bytes. If a form means a million bytes, enter 976 KB to be safe. The result shows every size to the byte.

Why does a PDF that is mostly text hardly shrink?

Re-encoding images is where nearly all of the saving comes from. A PDF of text, fonts and drawings gives it nothing to work on, so only the lossless clean-up applies, and the result says so rather than pretending otherwise.

What does turning pages into pictures do?

It redraws every page as one JPEG image. That can reach very small sizes, but text can no longer be selected, searched or copied, links and form fields are lost, and screen readers get nothing. It stays off unless you turn it on, and is used only when nothing gentler fits.

Does it work on signed or password-protected PDFs?

An encrypted PDF is refused: remove its password first. A signed PDF can be compressed, but any rewrite invalidates the signature, and the result warns you when the file declares one. Files up to 200 MB and 2,000 pages are taken.

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