Compress PDF
Losslessly shrink a PDF's file size by stripping metadata and optimizing its internal structure — no image quality is changed.
How to Use This Tool
Upload your PDF file.
Upload your PDF file.
Click 'Compress PDF'
there are no quality or compression-level options to choose.
Pro Tip
If this tool reports little or no size reduction on your file, that's an accurate signal that your PDF's size is coming from its embedded images or actual content rather than from metadata or structural bloat — in that case, a lossless tool like this one has done everything it safely can, and further reduction would require actually re-encoding images at a quality cost, which is a fundamentally different (and lossy) operation.
About This Tool
When to Use
- Stripping unnecessary metadata (author, revision history, producer software tags) from a PDF before sharing it externally.
- Getting a small, genuinely lossless size reduction on a PDF with no risk of any visual quality change whatsoever.
- Cleaning up a PDF's internal structure after it's been edited and re-saved multiple times by different software.
How It Works
The tool reads your PDF, clears its metadata fields, and re-saves the document with PDF object streams enabled — a structural optimization that groups certain internal objects together more efficientl...
Key Details
Compress PDF performs a lossless size reduction by stripping a PDF's metadata (title, author, subject, keywords, producer, creator) and re-saving its internal structure using PDF object streams — a le...
How it works
The tool reads your PDF, clears its metadata fields, and re-saves the document with PDF object streams enabled — a structural optimization that groups certain internal objects together more efficiently, which is lossless and doesn't touch page content at all. It then compares the new file size to the original; if the re-saved version isn't actually smaller, it serves your original file unchanged rather than replacing it with a larger one.
Worked example
A PDF that was resaved multiple times by different editing tools has accumulated verbose metadata and inefficiently structured internal objects. Running it through this tool strips that metadata and reorganizes the internal structure, typically trimming a modest single-digit percentage off the file size — a real, safe reduction, though nowhere near the dramatic size cuts a photo-heavy PDF would need image recompression to achieve.
Interpreting your result
Don't expect this tool to meaningfully shrink an image-heavy or scanned PDF — since it never re-encodes images, files where images dominate the size will see little to no reduction, and the tool will simply serve your original file unchanged if reprocessing wouldn't help. It works best, relatively speaking, on PDFs carrying a lot of metadata or inefficient internal structure from repeated edits. If you need dramatic size reduction on a scanned or photo-heavy PDF specifically, you'll need a tool that recompresses embedded images at a quality tradeoff, which this one deliberately does not do.
Compress PDF FAQ
How much smaller can my PDF get, and does this tool re-encode images?
This tool does not re-encode or recompress images at all — its own code comment explicitly states it performs "lightweight client-side compression, not lossy image recompression." It only strips metadata (title, author, subject, keywords, producer, creator) and re-saves the file using PDF object streams, a lossless internal restructuring. Because of this, the reduction is typically modest: often just a few percent, occasionally more on files with unusually large embedded metadata, and closer to 0% on image-heavy scanned PDFs, since the images (which usually dominate file size) are left completely untouched.
Does this tool offer Low, Medium, or High compression levels?
No — there is a single button with no options. The tool always performs the same operation: strip metadata, then re-save with object streams enabled. If you're looking for a tool that trades image quality for a smaller file size, this isn't it; this tool is strictly lossless.
What if my PDF is already compressed or already lean?
If re-saving the file would actually make it larger (which can happen with already-optimized PDFs), the tool automatically falls back to serving your original, unmodified file and reports a 0% reduction rather than making the file worse.
Will compression affect text readability or image quality?
No — nothing about the actual page content changes. Text, vector graphics, and embedded images are all preserved exactly as they were in the source file; only metadata is removed and the internal file structure is reorganized.
Will this tool meaningfully shrink a scanned PDF?
Usually not by much. Scanned PDFs are essentially embedded images, and this tool doesn't re-encode images at all — so a scanned document's size is dominated by exactly the content this tool leaves untouched. If you need real compression on a scanned document's images, you'll need a different tool that specifically recompresses embedded images (at some quality tradeoff).
Master Your Entire Toolkit
Access 500+ specialized calculators and tools designed for precision. No sign-up required, 100% free.
Built and reviewed by the Toolzip Team · Based on pdf-lib documentation