inyourbrowser.com

Compress PDF

PDF compressor is a browser-based tool that reduces PDF file size. It offers a lossless mode that strips structural overhead, a re-render mode that rasterises pages at controllable quality, and a side-by-side size comparison before download. The tool runs in your browser.

Drop a PDF here or click to browse

Dedicated pages

Direct links for specific compression tasks.

How to compress a PDF

  1. Drop your PDF onto the upload area or click to browse.
  2. Choose a compression level. Lossless for maximum quality, or Medium or Low for smaller files.
  3. Click "Compress PDF" and wait while your browser processes the file.
  4. Download the compressed PDF and check the before and after size comparison.

Common uses

Technical specification

Frequently asked questions

Is my PDF uploaded to a server?
No. Compression happens entirely in your browser using pdf-lib.
What does Lossless mode do?
Lossless mode removes structural overhead and optimises the PDF's internal object streams, it never degrades image quality or removes content.
Why is the compressed file sometimes the same size?
If the PDF is already well-optimised, lossless compression may produce little or no reduction. Try a lower quality mode for scanned-image PDFs.
Will compression make text unselectable?
Only image re-rendering modes (Medium and Low) affect text, as pages are converted to JPEG images. Lossless mode preserves all text as fully selectable.

Reviewed and tested May 25, 2026.