How the three compression modes differ

This page rewrites a PDF in one of three ways. Lossless cleanup keeps the document as it is and only changes how the file is stored; the two image modes rebuild every page as a JPEG. The mode decides how much smaller the file can get and what survives the trip.

Everything runs in the tab: the file is read with the PDF library the page loads and is never uploaded. The first image-mode run also loads the PDF renderer, so it starts a moment later than a lossless run.

  1. Drop a PDF into the input panel. One file per run, up to 250 MB.
  2. Choose Lossless cleanup to keep text, links and form fields, or an image mode to re-encode every page as a picture of that page.
  3. Press Compress PDF. The output panel reports the input size, the result size and the percentage change.
  4. The result is saved as `<name>-compressed.pdf`. If the size went up, the status line says so, and lossless cleanup is the better choice.

Measured results, limits and what changes in the file

Lossless cleanup keeps the document intact

The file is loaded and written again with object streams, which pack the same objects into a smaller structure. Measured on test files: a three-page text PDF went from 6.1 KB to 3.4 KB (44% smaller), a 2.8 KB form PDF to 1.8 KB with its text field still present, and a link annotation survived the rewrite with its URI intact.

How much comes off depends on the source, not on the tool. The same three-page document saved by another program without object streams shrank 44%; written with object streams it changed by 0.0%, and a 2.0 MB scan lost 0.0% as well, because its pages are already a JPEG.

Image modes trade the document for a picture of it

Balanced renders each page at 1.65× and stores it as a JPEG at quality 0.78; Smallest uses 1.15× and 0.56. Both place the image back at the original page dimensions. A three-page scan of 2.0 MB fell to 1.4 MB in Balanced mode, 31% smaller.

Searchable text, link annotations and form fields are not carried over, the document properties (Title, Author, Subject, Keywords) are dropped, and a rotated page returns unrotated at the rotated size. Text-only PDFs usually grow: a 6.1 KB text PDF became 518.7 KB in Balanced mode, and the status line reports it whenever the result is larger than the original.

Limits

One file per run, up to 250 MB. Image modes stop at 80 pages per run and say so in the status line; lossless cleanup has no page limit. Encrypted or password-protected PDFs are not supported by any mode.

Compression runs in the browser, so speed depends on the device and the page count. The image modes load a PDF renderer of about 3 MB on their first run in a tab; later runs reuse it.

Recent tools: