Rebuild a PDF's structure to reduce size, with honest reporting.
or drag and drop a PDF here
🔒 Everything happens in your browser with pdf-lib: the PDF is re-saved with object streams and nothing is uploaded or stored. Honest expectations: most everyday PDFs shrink, but there is no guarantee — already optimized files barely change and scanned files with images can even grow. Images are never recompressed.
The PDF is parsed and written back with object streams, packing its internal tables compactly and dropping structural redundancy. Most everyday PDFs shrink; already-optimized ones barely move.
You always see before and after in bytes plus the percentage. Scanned PDFs dominated by images can even grow, because their content streams are already as tight as they get.
Nothing is rasterized and no image is re-compressed: page content is copied verbatim into the new structure. The packaging changes, the pages do not.
Re-saving an encrypted PDF requires its key, so protected files are reported with a clear error. Remove the protection first, then compress here.
More tools you might find useful
Combine multiple PDFs into one file, in the order you choose.
Extract page ranges from a PDF or save every page separately.
Calculate monthly payments, total interest, and full cost of any loan.
See how your savings grow with the power of compound interest.