N
NJHTools

Compress PDF

Compress PDF files free in your browser: shrink embedded images while keeping text selectable, or flatten pages for the smallest file. Nothing is uploaded, and you see the exact size saved.

Your PDF never leaves your device. It is processed locally in your browser, not uploaded to any server.

How to verify: open DevTools → Network, then use the tool. No request carries your file.

Drag PDF files here, or click to choose

Processed on your device. Your files are never uploaded.

How to compress a PDF

  1. Drop one or more PDFs onto the page, or click to choose them.
  2. Pick a level. Balanced suits most scanned or photo-heavy files.
  3. Click Compress and compare the original and new size for each file.
  4. Download the smaller file. If compression didn't help, you can keep the original.

What each level actually does

  • Lossless rewrites the file with pdf-lib: unused objects from earlier edits are dropped, uncompressed streams are Flate-compressed and objects are packed into compressed object streams. Nothing visible changes.
  • Light, Balanced and Strong do the same, then re-encode large embedded images (JPEG and 8-bit RGB or grayscale images) as JPEG, scaled down to the stated pixel size. An image is only replaced if the new version is at least 10% smaller. Text, fonts and vector drawings are not touched.
  • Maximum renders every page with PDF.js at 110 DPI and builds a new PDF from those JPEGs. It shrinks almost anything, but text becomes part of the image.

Some files can't get much smaller: text-only PDFs are usually compact already, and CMYK, JPEG 2000, 1-bit and inline images are left unchanged. Fonts are not subset or removed.

Private by design

Compression runs entirely in your browser, using pdf-lib and Mozilla's PDF.js. Your PDFs are never uploaded or stored; open DevTools → Network while compressing and you'll see no request carrying a file. Password-protected PDFs must be unlocked first. Need the text out of a PDF instead? Try PDF to Text, or browse all PDF tools.

Frequently Asked Questions

How do I reduce the size of a PDF?↓

Add the PDF, choose the Balanced level and click Compress. The tool re-encodes large images inside the PDF as smaller JPEGs and repacks the file, then shows the new size. Most of a PDF's size usually comes from scanned pages and photos, so those files shrink the most.

Will compressing make my text blurry or unsearchable?↓

Not with the Lossless, Light, Balanced or Strong levels. They leave text, fonts and vector graphics untouched and only re-encode embedded images, so text stays sharp, selectable and searchable. Only the Maximum level turns pages into images, and the page warns you before you use it.

Why did my PDF barely get smaller?↓

Text-only PDFs are already compact, and images that are already small JPEGs leave little to gain. CMYK, JPEG 2000 and 1-bit images are also left as they are. If the result isn't smaller than the original, the tool tells you and offers the original instead.

Can I compress several PDFs at once?↓

Yes. Drop several files together. They are compressed one after another with the same level, each with its own size comparison, and Download all saves every result.

Is my PDF uploaded to a server?↓

No. Compression runs in your browser with pdf-lib and PDF.js, and the file never leaves your device. You can confirm this in DevTools: the Network tab shows no request carrying your PDF.

Related Tools

All PDF Tools →

Last updated: