Compress PDF

Rewrites the PDF with object streams and shows the size before and after on this page.

Use this tool

Drop a file here, or use the picker. The file type is checked from its contents.

Result

The result appears in this panel after you run the tool.

About this tool

pdf-lib edits the page structure. Encrypted files are refused unless you are on the unlock page. Standard fonts are used when the tool draws text.

Scanned images are not resampled, so a scan may not get smaller.

How to use it

  1. Open this page and provide the input it asks for.
  2. Set the options that are visible, then use Compress.
  3. Read the result in the panel. Copy it or download it when a file is offered. The input stays in this browser.

Limitations

Object streams and an honest size comparison

What the rewrite actually does

The file is loaded and saved again with object streams enabled. That is a structural rewrite of the PDF objects, the kind of packing that can shrink a file whose objects were stored in a looser way. There is no quality control on this page, no target kilobyte field, and no pass that recompresses photographs. Embedded images keep the samples they already have. A scan that is already a compressed image inside the page will usually stay about the same size, and the status line says so when the new file is not smaller. The message in that case is that the rewrite did not shrink the file and that scanned images were not resampled.

Reading the before and after

Success always reports the original byte length, then the new byte length. When the second number is lower, the note calls it smaller after a structural rewrite. When it is equal or higher, believe that result. Object streams are not a promise. A file that was already packed tightly, or one whose weight is almost all image data, can come out the same size or a little larger because the save builds a new file. Use the two figures to decide whether the download is worth keeping. The source you picked is unchanged on disk until you replace it yourself.

What this page leaves alone

Text stays text. Vectors stay vectors. The page tree is not rotated, cropped, or reordered here. A password-protected file fails at load, so unlock it first if you are allowed to. This is the wrong tool for a smaller JPEG of page one. Rendering a page to JPEG is a picture of that page, with its own quality setting, and it is a different download. If you need a lighter scan, export or recompress the images somewhere that resamples pixels, then build a new PDF. Running this rewrite twice on a file that did not shrink the first time will not invent a resample that the first pass skipped.

Privacy

Your input is processed in your browser and is not uploaded to UtilChain. File names, text, and results are not sent to analytics.