PDF Compressor

Reduce PDF file size significantly while maintaining readability. Custom compression levels available.

How to use PDF Compressor

  1. 1

    Upload the large PDF file.

  2. 2

    Select a compression level (Extreme, Recommended, or Low Compression).

  3. 3

    Optionally enable "Grayscale" for maximum size reduction.

  4. 4

    Click "Compress PDF".

  5. 5

    Download your optimized, smaller PDF file.

Frequently Asked Questions

How does this compress PDFs?

It rasterizes PDF pages into optimized JPEG layers using the Canvas API — highly effective for scanned documents and image-heavy PDFs. Text-heavy PDFs compress less aggressively to preserve readability.

Will text remain selectable after compression?

For maximum in-browser compression, pages are converted to image layers. Text will not be selectable in the compressed output. For text-selectable compression, use a light compression level.

Is it safe for sensitive documents?

Yes — 100% of compression happens in your browser. Your financial, legal, or personal documents are never uploaded to any server.

How much can file size be reduced?

Typically 50–80% reduction for image-heavy PDFs and scanned documents. Text-only PDFs may reduce by 20–40% depending on embedded fonts and graphics.

What is the difference between compression levels?

Extreme compression maximises size reduction but may reduce image sharpness. Recommended balances size and quality. Low compression is best for documents that need to remain sharp for printing.

Can I compress a password-protected PDF?

No — password-protected PDFs cannot be read or processed until unlocked. Use the Remove PDF Password tool first, then compress.

Detailed Guide

When a PDF Is Just Too Big to Send

You've finished a report, a portfolio, or a scanned document — and the upload limit says 5MB. Your file is 22MB. Sound familiar?

Most PDFs are larger than they need to be. A scanned invoice shot at 600 DPI, a contract with a high-res company logo, a brochure designed for print — all carry far more visual data than a screen (or an email inbox) will ever display. Compressing removes that excess without visibly degrading what matters.

This tool does it entirely inside your browser. Your document never travels to any server — no upload, no storage, no exposure to third parties. Load your file, choose a compression level, and download a lighter version in seconds.


Before and After: What Compression Actually Does

Here's a realistic example from a scanned three-page contract:

VersionFile SizeText Legible?Image Quality
Original scan18.4 MB✅ YesHigh (600 DPI)
Extreme compression1.2 MB✅ YesReduced, screen-readable
Recommended3.1 MB✅ YesGood, suitable for email
Low compression7.8 MB✅ YesNear-original

For most sharing purposes — email, web upload, messaging apps — the Recommended setting delivers an ideal balance.


How the Compression Works (The Technical Part)

The tool processes your PDF through three stages:

  1. Render: Each page is drawn onto an HTML Canvas using PDF.js, at a resolution matched to your chosen quality level.
  2. Re-encode: The canvas is exported as a JPEG image (quality 0.3 for Extreme, 0.6 for Recommended, 0.85 for Low Compression).
  3. Rebuild: pdf-lib assembles a brand-new PDF embedding these JPEG frames — one per page — sized to the original page dimensions.

Grayscale mode adds an extra reduction step: before JPEG encoding, the image data is converted from three color channels (RGB) down to one. Documents that don't need color — contracts, academic submissions, internal reports — can see an additional 20–40% reduction on top.


Compression Levels Explained

Extreme — JPEG quality ~0.3. Maximum size reduction. Text remains legible, but fine images and diagrams show visible compression artifacts. Best for internal use, draft versions, or text-heavy scans.

Recommended — JPEG quality ~0.6. The sweet spot for most use cases. Significantly smaller, clearly readable, and realistic-looking for most document types.

Low Compression — JPEG quality ~0.85. Minimal visible ...

Looking for a more detailed deep-dive and advanced tips?

Read Full Article on our Blog