What Is the PDF Compressor?
The PDF Compressor reduces your PDF file size directly in your browser. Upload any PDF, choose a compression quality preset, and download a smaller version. The tool re-encodes embedded images at lower quality and strips unnecessary metadata and unused internal objects. No server upload, no signup, completely private.
How to Compress a PDF
- Upload a PDF by clicking the upload area or dragging and dropping.
- Choose a quality preset: Low for maximum compression, Medium for balanced results, or High to preserve the most quality.
- Wait for the compression to finish — progress is shown in real time.
- Review the before and after file sizes and the compression ratio.
- Download your compressed PDF.
Tips for Best Results
- Image-heavy PDFs (scanned documents, photo reports) benefit the most from compression.
- The Medium preset is a great starting point — it offers a strong balance between quality and file size.
- If the compressed file is barely smaller, the PDF likely has little image content and is already optimized.
- Try different presets to find the right quality-to-size ratio for your needs.
- Large PDFs may take a few seconds to process — the tool shows progress while working.
How the Compression Works
The tool uses pdf-lib to parse the PDF structure, then iterates through every page to find embedded raster images. Each image is decoded, drawn onto an HTML5 Canvas, and re-encoded as a JPEG at the chosen quality level. The compressed image replaces the original only if it is smaller. Additionally, all pages are copied into a fresh PDF document, which automatically removes unused objects, orphaned data, and document metadata — reducing size even for text-only PDFs.