PDF

Compress a PDF in Your Browser, Lossless or With Images

Make a PDF smaller in your browser: lossless structure optimization by default, or also recompress images. It never returns a bigger file. No upload.

Runs locally in your browser

What it does

Compress PDF makes a PDF smaller in your browser with qpdf. The default, lossless setting rewrites the file's internal structure and leaves image quality unchanged; the second setting also recompresses images, with some quality loss. If the result is not smaller, you get an unchanged copy of the original, so the file never grows. The first time, the engine is downloaded from this site; your PDF is never uploaded.

How to use it

  1. Choose one or more PDF files; each one is processed as a separate job.
  2. Under "Compression", keep "Lossless (structure only, image quality unchanged)" or pick "Also recompress images (smaller, some quality loss)".
  3. Press "Compress PDF", then "Download" next to each result, or "Download all (ZIP)" when there are several.

Example

Input
report.pdf, with "Compression" set to "Lossless (structure only, image quality unchanged)"
Output
report-compressed.pdf in Results with its new size shown; if the file could not be made smaller, it is an unchanged copy of report.pdf

What happens to your file

  • Your file or text is processed by code running in this browser tab. It is not uploaded to any server.
  • The processing code is downloaded from this site with the page; nothing about your input is sent back.
  • The result is created on your device and saved only when you choose to download it.

Limits

  • "Also recompress images (smaller, some quality loss)" is lossy: re-encoded images can lose some quality.
  • Savings depend on the file; when the result is not smaller, the original is returned unchanged under the -compressed.pdf name.
  • Password-protected PDFs are refused until they are unlocked.

Questions

Does compressing reduce image quality?

Not with the default "Lossless (structure only, image quality unchanged)": it rewrites the PDF's structure (object streams, stream recompression and linearization) and leaves images as they are. "Also recompress images (smaller, some quality loss)" also lets qpdf re-encode images it can convert to JPEG, which can make them look slightly worse.

How much smaller will my file be?

It depends on the file. PDFs with redundant structure, uncompressed streams or large images shrink more; files that are already optimized may not shrink at all. In that case the result is an unchanged copy of the original, so you never get a bigger file.

Is the result downloaded automatically?

No. Results appear under Results with their size. Press "Download" next to one to save it, or "Download all (ZIP)" to save them together in results.zip.

Can I compress a password-protected PDF?

No. A password-protected file is refused with a message asking you to unlock it first. Use Unlock PDF, then compress the unlocked copy.

Is my PDF uploaded?

No. The qpdf engine is downloaded from this site the first time you use the tool and then runs in your browser; the PDF itself never leaves your device.

Next steps