How to Compress a PDF
Shrinking a PDF's file size is about knowing what's inside the file and what can be reduced. Here's a practical look at how compression works.
Why PDFs get large
A PDF file can grow large for several reasons, and understanding the cause helps you pick the right approach:
- Embedded images: High-resolution photos and scans are the most common culprit. A single scanned page at 300 dpi can be 2–5 MB.
- Embedded fonts: PDFs that include full font files (common with documents using non-standard typefaces) carry extra weight.
- Redundant data: Repeated objects, unused elements, and accumulated edits from multiple saves can bloat a file.
- Uncompressed content: Some PDF generators don’t apply compression to images and streams in the first place.
What compression actually does
PDF compression typically works in two ways:
- Structural optimization: Removing redundant objects, compressing internal streams, and enabling object streams. This reduces file size without changing how the document looks.
- Image re-encoding: Reducing the resolution or quality of embedded images. This is where most size reduction comes from, but it’s also where quality loss can occur.
Text-based PDFs (reports, letters, contracts created digitally) compress well through structural optimization alone. Image-heavy PDFs (scanned documents, brochures with photos) require image re-encoding for significant size reduction.
When compression works well — and when it doesn’t
Good candidates for compression
- Scanned documents saved at high resolution
- PDFs with lots of embedded photos
- Files that have been edited and saved multiple times
- Documents created by tools that don’t optimize output
Limited results
- PDFs that are already compressed (some size reduction is still possible, but less dramatic)
- Very small files (a 200 KB PDF won’t shrink much further)
- Documents where every pixel of image quality matters
How to compress a PDF
- Add your PDF to the compression tool and note the starting file size.
- Choose a compression level. Lighter settings preserve more image quality; stronger settings trade some sharpness for smaller size. Text stays readable at every level.
- Download and compare. Check the result at normal zoom — if images look acceptable, you’re done. If not, try a lighter setting.
Compression and quality: being realistic
There’s no free lunch with image-heavy PDFs. If a 30 MB scanned document needs to fit under 2 MB, some loss of image detail is unavoidable. The practical approach is to find the smallest setting that still produces an acceptable result for your purpose — a document that looks fine on screen doesn’t need the same quality as one intended for print.
For documents where quality is critical, structural optimization alone (without aggressive image re-encoding) is the safer choice. The size reduction will be modest, but the document remains visually identical.
How to use the PDF compressor
If your PDF is too large for an email or upload form, try theCompress PDF tool. Add one or more PDFs, wait for the local processing to finish, compare the before-and-after sizes, and download the compressed copy.
What the current compressor does — and does not do
This browser tool rebuilds a PDF with its internal structure and object streams optimized. It does not re-encode the embedded images and does not provide a lossy image-quality setting. That means it can remove redundant structure without deliberately making photos blurrier, but it may make a photo-heavy or already-optimized file only a little smaller. A smaller result is not guaranteed for every PDF.
Supported inputs and practical limits
The compressor accepts PDF files up to 50 MB each. There is no page-count cap in the current implementation, but the file and its decompressed working data must fit in your browser’s available memory. A document can therefore pass the input check and still fail if the device is low on memory or the PDF is unusually complex.
Privacy and troubleshooting
PDF processing happens locally in your browser with pdf-lib; files are not sent to a server. If compression fails, check that the file is a valid, readable PDF and try again in a current browser tab. If the output is larger than the original, that file may already be efficiently compressed. For a different workflow, convert it to imagesonly when you intentionally need image-based output.
Need to shrink a PDF?
Compress PDFs in your browser with adjustable levels. See the before/after size before you download.
Compress a PDF