Compress PDF Online to Reduce File Size

Shrink scanned PDFs to a target size.

After compression, text becomes an image and can no longer be selected or searched. Keep your original file.

This tool lets you compress pdf files in your browser to a target size you choose. It is designed for scanned documents and photo-based PDFs, which are often several megabytes even though an upload form allows only a few hundred kilobytes. Each page is re-encoded as an optimised image and rebuilt into a new, smaller PDF on your device. Your document is never uploaded.

How to reduce PDF size

  1. Choose your PDF. The PDF engine loads only after you pick a file, so the page stays light.
  2. Type the target size in KB. Choose greyscale if colour is not needed, which saves a lot of space.
  3. Press Compress PDF and watch the progress, for example "Page 3 of 10".
  4. Download the smaller file. If it is password protected, enter the password when asked.

How this PDF compressor works

The tool uses pdf.js, Mozilla's open-source PDF renderer, to draw each page on a canvas at a chosen resolution. The canvas is saved as a JPEG at a chosen quality, and the pages are assembled into a new PDF with pdf-lib. It works through a ladder of settings, from high resolution and quality down to lower ones, and stops at the first setting where the whole file fits your target. Pages are processed one at a time and each canvas is released immediately, so the tool does not run out of memory on phones.

Important: text becomes an image

After compression, every page is a picture. You can still read it, but you can no longer select, copy or search the text. For scanned documents this changes nothing because they were images already. For PDFs created from Word or similar apps, compression can actually make the file bigger. When that happens the tool tells you and keeps your original file.

Worked example

A six-page scanned application is 7.8 MB, and the portal limit is 1 MB. With a target of 1000 KB, the tool starts at a setting suited to about 166 KB per page. The first pass gives around 1.3 MB, so it moves one step lower; the second pass produces about 880 KB. The compressed PDF is 89% smaller and every page remains readable. Choosing greyscale would bring it down further.

Tips to reduce PDF size further

  • Delete blank pages and duplicate pages before compressing.
  • Scan at 150 DPI instead of 300 DPI for on-screen use.
  • Use greyscale for text documents without colour stamps.
  • Split very long PDFs into parts if the portal accepts several files.

Documents with more than 50 pages show a warning because they can take a while on a phone, and you can cancel at any time. For the common 200 KB limit, use Compress PDF to 200KB. To build a PDF from photos first, use Image to PDF.

Last updated:

Compress PDF FAQ

How do I compress PDF files here?

Choose the PDF, set a target size in KB and press Compress. Each page is rendered, re-encoded as JPEG and rebuilt into a new PDF.

Will the text stay selectable?

No. Pages become images, so text cannot be selected or searched. Keep the original if you need selectable text.

Why did the tool keep my original file?

Text-based PDFs are often already small. If the compressed result is bigger, the tool tells you and keeps the original.

Can I compress a password-protected PDF?

Enter the password when asked. The new PDF is saved without the password, so protect it again if needed.

Is there a page limit?

You can compress any number of pages, but files over 50 pages show a warning because they can be slow on phones.