PDF Compressor

Shrinks a PDF's file size by recompressing its internal streams. Runs entirely in your browser — your PDF is never uploaded anywhere.

Lilu Baba's PDF Compressor decompresses and recompresses every internal stream with a tighter encoder, and strips metadata — all using a hand-written DEFLATE implementation running entirely in your browser.

Choose a file to get started.

How to use this tool

  1. Choose a PDF file.
  2. Click Compress PDF — every internal stream is recompressed and metadata is stripped.
  3. Download the smaller result.

Your PDF is parsed and rebuilt entirely on your device using hand-written JavaScript — nothing is uploaded to any server.

Original Size—
Result Size—

PDF Compressor — frequently asked questions

No — unlike some PDF compressors, this doesn't re-encode or downsample embedded images; it only recompresses the PDF's internal data streams and removes metadata.

No — compression happens entirely client-side in JavaScript.