PDF Compressor: Shrink a PDF to a Target Size

Pick a target of 100 KB, 500 KB or 1 MB, or type your own value in KB. The compressor turns every page into a JPEG image and searches for the highest JPEG quality that keeps the whole file at or under that target.

Drop your PDF files here or click to select

Supports PDF files up to 50 MB each

Target File Size

Runs in your browser: your files and text are not uploaded. Free, no account needed.

Last updated: · Reviewed by the QuickTooly Team

How the compressor works

What Happens to Your PDF During Compression

Each page is rendered with PDF.js at twice its normal size, which is about 144 pixels per inch because a PDF point is 1/72 inch. The rendered page is saved as a JPEG and placed on a new page of the same dimensions with pdf-lib. The output is a new PDF made only of these page images.

What the compressed file loses

  • Selectable and searchable text. The text becomes part of the picture, so search, copy and screen readers find nothing.
  • Links, bookmarks, form fields and comments. None of them are copied into the new file.
  • Document properties. The original title, author and other info fields are not carried over.
  • Sharpness. JPEG is lossy. Small print and thin lines blur first at low quality.

How the Target Size Is Reached

The tool runs a binary search over JPEG quality between 0.05 and 0.95 for 8 rounds. Each round rebuilds the whole PDF and measures it. The highest-quality version that is at or under the target is kept.

If no round fits, the tool saves one more version at quality 0.05 and returns it, even though it is larger than the target. The file row shows the real output size and the percentage saved, so check it before you submit the file anywhere.

Choosing a sensible target

The default target is 100 KB. The size budget is shared by all pages: a 20-page PDF at 100 KB leaves about 5 KB per page, which is very little for a full-page image. For long documents, pick a larger target or split the file and compress the parts.

When to Use a Different Tool

  • Text-based PDFs. Files exported from Word or a browser are often small already. Turning their pages into images can make them bigger, and the tool does not compare the result with the original.
  • Files you still need to edit or fill in. Keep the original, because the output has no text or form fields.
  • Password-protected PDFs. PDF.js opens the file without a password, so a PDF that needs an open password fails with an error.
  • Very long documents. Files can be up to 50 MB, but every rendered page is kept in memory at once, so long PDFs can run out of memory in the browser, especially on phones.

Compression Problems and Edge Cases

Why is my compressed PDF still larger than the target?

The tool reached the lowest JPEG quality (0.05) and the file still did not fit. It returns that smallest attempt instead of failing. Use a larger target, or split the PDF and compress the parts separately.

Can I search or copy text after compressing?

No. Every page becomes a JPEG image, so the text layer is gone. Run the compressed file through PDF OCR if you need searchable text again.

Can I compress several PDFs at once?

Yes. Add several files and they are compressed one after another to the same target. Each file gets its own Download button, and Download All appears when more than one file is done.

Before or After Compressing

  • PDF Splitter: cut a long document into parts so each part can meet a per-file size limit.
  • PDF OCR: add searchable text back to a compressed, image-only PDF.
  • PDF Merger: combine files first if a portal wants one upload under a single size limit.