LazyTools

🔒 Every tool runs in your browser — the files and values you enter are never uploaded to any server. How it works

🗜️ Compress PDF

Make a PDF smaller without losing quality — qpdf recompresses the file’s internal streams and consolidates objects, all in your browser.

Compression is lossless: qpdf recompresses the PDF’s internal data streams at maximum level and consolidates objects, so text stays selectable and images keep their exact quality — nothing is rasterized or downsampled. Savings are largest on PDFs exported without optimization; already-optimized files may shrink little. 🔒 Runs entirely in your browser via qpdf (WebAssembly) — your document is never uploaded.

Rate this tool:
Anonymous — no account, no identifier

How the compress pdf works

The tool runs qpdf (compiled to WebAssembly) on your PDF entirely inside the browser. It recompresses every internal data stream at zlib’s maximum level and consolidates the file’s objects into compressed object streams — a purely structural, lossless optimization. Text stays selectable, fonts and images are untouched (nothing is rasterized or downsampled), and if the result somehow isn’t smaller the tool keeps your original so you never end up with a larger file.

This is lossless compression, which is the honest kind: the biggest savings come from PDFs that were exported without optimization (many word-processor and design-tool exports leave streams uncompressed or objects un-consolidated), where reductions of 10–40% are common. A PDF that is mostly high-resolution photographic scans is dominated by image data that is already JPEG-compressed, so lossless optimization can only trim the structural overhead — don’t expect dramatic shrinkage there. Because qpdf runs on your device, confidential documents never leave your browser.

Frequently asked questions

Does compressing reduce the quality of my PDF?

No — this is lossless compression. It recompresses the PDF’s internal data streams and reorganizes objects, but text stays selectable and images keep their exact original quality. Nothing is rasterized or downsampled.

How much smaller will my PDF get?

It depends on the source. PDFs exported without optimization often shrink 10–40%; files that are already optimized, or that are mostly high-res photographic images, shrink much less because their image data is already compressed.

Why didn’t my file get much smaller?

Either it was already well-optimized, or most of its size is JPEG image data that lossless recompression can’t reduce. In that case the tool tells you and returns the original rather than a larger file. For image-heavy scans, reducing image resolution (a lossy step) would be needed — this tool deliberately doesn’t do that.

Can it compress a password-protected PDF?

Not directly — encrypted PDFs can’t be processed without the password. Remove the protection first (our Unlock PDF tool does this in-browser), then compress.

Is my PDF uploaded anywhere?

No — compression runs entirely in your browser using qpdf compiled to WebAssembly. The document never leaves your device and the tool works offline once loaded.

Related PDF tools

From the blog