PDF Compressor
Reduce PDF file size for free, in your browser.
This tool runs entirely in your browser. Your files are never uploaded to a server.
Drop a PDF here or click to upload
What this tool does
Reloads a PDF with pdf-lib and re-saves it using object streams, a more compact way of storing the PDF's internal objects — this can shrink file size for documents with many objects, such as lots of pages, form fields, or fonts, but does not recompress or downsample embedded images.
How to use it
Upload a PDF. It's processed automatically; when done, you'll see the original and optimized file sizes and a download button for the result.
What this optimization actually does
useObjectStreams: true tells pdf-lib to group compressible PDF objects, like the cross-reference table and low-level object definitions, into compressed object streams instead of writing each one separately — a structural, lossless optimization defined in the PDF specification (ISO 32000), not an image or content change.
Why some PDFs shrink a lot and others barely change
A text-heavy PDF with many pages, fonts or form fields, previously saved without object streams, can shrink meaningfully. A PDF whose size is dominated by embedded photos or scans changes very little, because this tool doesn't touch image data — the images were likely already compressed (JPEG) by whatever created the PDF, and pdf-lib doesn't re-encode or downsample them.
Limitations
This does not recompress, downsample, or reduce the resolution of embedded images — the single largest lever for shrinking most real-world scanned or photo-heavy PDFs. It doesn't remove unused objects, flatten form fields, or strip metadata, and it requires the file to load successfully in pdf-lib; encrypted PDFs are opened with encryption ignored, which can produce unexpected results for password-protected files.
Scope, sources and privacy
Object streams are part of the PDF 1.5+ specification (ISO 32000), supported by virtually all modern PDF readers. Processing runs entirely in your browser using the pdf-lib library; your document is never uploaded to a server.
Frequently Asked Questions
- Is my PDF uploaded to a server?
- No — the PDF is loaded and re-saved locally using the pdf-lib library running in your browser; it's never uploaded anywhere.
- Why did my file barely get smaller?
- This optimization restructures the PDF's internal objects; it doesn't recompress or downsample embedded images. If your PDF is mostly scanned pages or photos, most of its size is already-compressed image data that this tool doesn't touch.
- Does it change the text, layout or image quality?
- No — this is a lossless structural optimization. Text, layout and image data are unchanged; only how the PDF's internal objects are stored on disk changes.
Related Tools
JPG to PDF
Convert JPG images to a PDF file for free.
Image Compressor
Compress JPG, PNG and WebP images without losing quality.
Word Counter
Count words, characters, sentences, paragraphs and reading time live.
PDF Metadata Viewer
View a PDF's page count, title, author and other document properties instantly.