OnlineTextLab
Esc

PDF Compressor

Shrinks scans by a lot.

Drop your PDF here

Or paste it with Ctrl V

or drop it here

Works best on scans and PDFs full of photos

Runs on your device. Your files and text are not uploaded.

About PDF Compressor

How much a PDF can shrink depends on what is inside it, and most advice skips this. A scan or a photo album is made of big images, so storing them at lower resolution brings huge savings. A report exported from Word is mostly text, already compact, and has little fat to trim. Turn that report into pictures and it can grow many times over.

So this tool looks at your file first. It reads the text on the first three pages, and if it finds a lot, it selects Lossless. If it finds little, it treats the file as a scan and selects Balanced. You can overrule it. If the result is not smaller, you get a plain message and no download, so a larger file is never presented as a success.

How it works

Lossless changes nothing you can see. It removes objects nothing refers to, such as leftovers from earlier edits, deflates any stream stored uncompressed, and packs the rest into object streams. Text, links, bookmarks and forms all stay. It does not touch images or fonts, which is why the saving on a tidy file is often nil.

The three image modes work completely differently. Each page is drawn by pdf.js and stored as one JPEG on a page of the same size: High quality at 200 DPI and JPEG quality 82, Balanced at 144 DPI and quality 68, Smallest file at 96 DPI and quality 50. This replaces whatever images a page held with one smaller one, which is what shrinks scans, and it has a real cost. Each page becomes a picture, so text cannot be selected, searched or read aloud by a screen reader, and links and form fields stop working. Title, author and subject are kept. A warning says all this before you run it, and a side-by-side of page 1 appears with the result, so you can judge the quality.

How to use PDF Compressor

  1. Press Select PDF file and choose the file that is too large, or drop it here.
  2. Read the advice under How should it be compressed? and keep the suggested mode or choose another. In image modes, you can tick Convert pages to grayscale.
  3. Press Compress PDF. A progress bar and a Cancel button appear for image modes.
  4. Check the before and after sizes and the page comparison, then download. If nothing was gained, try another mode or keep your original.

Real runs on test files we built

Input
Scan-like PDF: 2 pages, one noisy 1240 by 1754 pixel image each, 3.82 MB
Text PDF: 3 pages, saved tightly, 2.2 KB
Text PDF: 6 pages, saved without object streams, 6.6 KB
Output
Scan-like PDF
  High quality: 1.22 MB (68% smaller)
  Balanced: 275.0 KB (93% smaller)
  Smallest file: 67.0 KB (98% smaller)

Tight text PDF
  Lossless: no saving, no download offered
  High quality: would be 290.4 KB, no download offered

Older text PDF
  Lossless: 3.6 KB (45% smaller)

The middle result is the important one: image mode would have made a 2.2 KB document more than 100 times larger. Treat the scan figures as an illustration, because the test image is synthetic. Real scans vary with their resolution and how much grain they hold.

When it helps

  • Getting a scanned contract under an email attachment limit
  • Shrinking a photo-heavy report or brochure for a web download
  • Tidying a PDF that has been edited many times and carries leftovers

Tips for a better result

  • Start at Balanced, and look at the comparison. If small print still reads well, try Smallest file. If it blurs, go up to High quality.
  • Convert pages to grayscale saves more on colour scans of black and white pages, such as forms.
  • If a text report really is too large, export it again from the original program with a lower image setting.
  • Keep your original. Image modes cannot be undone: the text layer does not come back.

Good to know

  • Text-only PDFs barely shrink. Fonts cannot be subset here, and individual images cannot be recompressed while keeping the text.
  • Image modes remove selectable text, search, links, bookmarks, forms and screen reader access. Do not use them on documents that must stay accessible or fillable.
  • You cannot aim for a target size such as 2 MB.
  • On low-memory devices each page canvas is capped at a smaller pixel budget, so the real resolution can be lower than the setting says, particularly for oversized pages.
  • A protected PDF has to be unlocked before it can be compressed. Files can be up to 100 MB, and large ones can run slowly on a phone.

Questions people ask

Why did my PDF not get smaller?

It is probably text with few images, and already well packed. There is nothing lossless left to remove, and turning text into pictures usually makes it larger. The tool then shows no download. Exporting from the source program with lower image quality is the better route.

Will my text still be selectable?

With Lossless, yes. With High quality, Balanced or Smallest file, no, because every page becomes a picture. If you need both a small file and live text, use software that can recompress individual images, such as Adobe Acrobat.

Does compressing remove bookmarks and forms?

Lossless keeps them, which we checked on a test file with a form and bookmarks. The image modes do not, since the new file contains only pictures of pages.

What to use next

Learn more

Last reviewed . Read our editorial policy.