"Compress PDF" is one of the most searched phrases on the internet — yet most people sending files back and forth have no idea what compression actually does inside a PDF. This guide fixes that. By the end, you'll know exactly when quality is at risk, when it isn't, and how to get the maximum size reduction with our free PDF Compressor.
What's Actually Inside a PDF?
A PDF isn't one monolithic blob — it's a collection of objects: text streams, fonts, image data, metadata, cross-reference tables, and annotations. Over time, as files are edited and re-saved, these objects accumulate redundant entries. A PDF that's been through five rounds of edits might contain three copies of the same font, stale cross-references pointing nowhere, and uncompressed object streams. None of that redundancy is visible on screen, but it inflates the file size.
Two Types of PDF Compression — And Why One Is Lossless
Structural (Lossless) Compression
This is what ToollyX does. The tool loads the PDF with pdf-lib, reorganises the internal object graph, removes stale cross-reference entries, and re-encodes the object streams using flate (zlib) compression. The images inside are never re-encoded. Their pixel data comes out identical. Text stays sharp. Fonts are untouched.
Result: 5–40% smaller depending on how redundant the original file was, with zero visible quality change.
Image Resampling (Lossy) Compression
This is what Adobe Acrobat's "Reduce File Size" and many online tools do when they promise 70–90% reductions. They re-encode embedded JPEG images at a lower quality — say, from 95% to 60%. That's where the quality loss comes from. If your PDF contains high-resolution product photography or medical scans, aggressive image resampling will visibly degrade them.
Basic vs Aggressive Mode: What Changes?
Both modes on the ToollyX Compress PDF tool use object stream compression. The difference is in objectsPerTick:
| Mode | Objects per tick | Best for | Typical reduction |
|---|---|---|---|
| Basic | 20 | Most PDFs, quick results | 5–25% |
| Aggressive | 50 | Large, image-heavy, old PDFs | 20–60% |
The Aggressive mode takes longer on large files (10MB+) because it packs more objects per processing cycle, but it achieves greater compression on PDFs created by older software that didn't optimise its output.
Step-by-Step: Using the ToollyX PDF Compressor
- Open the tool — Go to toollyx.com/pdf-tools/compress-pdf. No account needed.
- Drop your PDF — Drag the file into the orange drop zone, or click to browse. The original size appears immediately next to the filename.
- Choose Basic or Aggressive — Start with Basic. If reduction is under 10% and you need more, switch to Aggressive.
- Click Compress PDF — The tool shows "Loading pdf-lib…" then "Optimizing PDF structure…". Processing happens entirely in your browser.
- Download — The result downloads automatically as
compressed-[yourfilename].pdfwith the exact savings shown (e.g. "Compressed from 4.2 MB to 1.8 MB (57.1% smaller)").
When Will You See "Already Optimized"?
If the tool reports the file is already optimized, it means the PDF was exported from modern software (macOS Preview, Adobe InDesign, Google Docs) that already compresses its output. In this case, structural compression adds no benefit — and can occasionally make the file marginally larger due to object stream headers. Keep the original.
Files that compress best are typically: scanned documents exported from old drivers, PDFs that have been edited multiple times in different software, reports exported from legacy ERP systems, and presentations saved as PDFs from older Office versions.
What If You Need to Compress Images Too?
For maximum reduction of image-heavy PDFs, you'd need a tool that resamples embedded images at lower quality. ToollyX doesn't do this yet (it's on the roadmap), but a practical workaround is:
- Export images from the PDF individually using PDF to JPG
- Compress them using the Image Compressor
- Recreate the PDF with the smaller images
Comparing Common PDF Compression Scenarios
| PDF Type | Original | After Basic | After Aggressive |
|---|---|---|---|
| Text-heavy report (Word export) | 2.4 MB | 2.1 MB (−12%) | 1.9 MB (−21%) |
| Scanned document (old scanner) | 8.6 MB | 5.1 MB (−41%) | 3.7 MB (−57%) |
| InDesign brochure (modern export) | 3.2 MB | 3.2 MB (0%) | 3.1 MB (−3%) |
| Excel sheet exported to PDF | 1.1 MB | 0.8 MB (−27%) | 0.7 MB (−36%) |
Related PDF Tools
Once you've compressed your PDF, you might also need to merge multiple PDFs into one, or split a large PDF into individual pages. All tools are free and run entirely in your browser.