PDF Compressor

PDF Compressor

Re-save a PDF with object streams.

Runs entirely in your browser

True content-stream compression of a PDF is not possible from the browser. This tool re-saves the file with metadata removed — results vary by file.
Choose a PDF

File: —

Note: True content-stream compression is not possible in a browser.

How to use this tool

  1. Fill in the inputs.
  2. Read the result.
  3. Copy or download as needed.

About the PDF Compressor

The PDF Compressor re-saves a PDF file using more efficient internal object storage and strips out metadata like title, author, and subject fields, which can sometimes produce a smaller file size. Upload a PDF, click the button, and compare the original and resulting file sizes before downloading.

It is important to set realistic expectations: genuine, deep compression of a PDF's embedded images and content streams is not something that can be done reliably from within a web browser, so this tool focuses on the more modest, but still useful, optimizations that are achievable client-side.

The tool loads your PDF using the pdf-lib library and clears several metadata fields (title, author, subject, and keywords) that are often set by the software that originally created the document but serve no purpose for most readers. It then re-saves the file using object streams, a PDF feature that can store certain internal objects more compactly than the traditional format.

Because the actual images and text content inside the PDF are left untouched, the size reduction achieved by this method is typically modest and highly dependent on the specific structure of the original file — some PDFs (particularly those with a lot of removable metadata or many small internal objects) will shrink noticeably, while others (particularly those where the file size is dominated by large embedded images) will see little to no change.

Common use cases

  • Removing unnecessary metadata (title, author, subject) from a PDF before sharing it externally.
  • Attempting a modest file size reduction for a document dominated by many small internal objects rather than large images.
  • Cleaning up a PDF's internal structure as a light optimization step before archiving.
  • Checking whether a re-save with object streams meaningfully reduces a specific file's size before trying other compression methods.
  • Stripping identifying metadata from a document for privacy reasons before distribution.

Tips and best practices

  • For PDFs where file size is dominated by large, high-resolution embedded images, this tool will likely produce only a small reduction — reducing the source images' resolution or quality before creating the PDF is usually far more effective in that case.
  • Always compare the "before" and "after" file sizes shown by the tool before assuming compression was successful, since the outcome varies significantly by file.
  • This process also removes identifying metadata like author and title, which can be a helpful side benefit for privacy even when the file size change is small.
  • If you need significant, reliable file size reduction for an image-heavy PDF, consider re-creating the PDF from lower-resolution or more compressed source images instead.

Frequently asked questions

Why doesn't this tool always reduce file size significantly?
True PDF compression that meaningfully shrinks embedded images and content requires more sophisticated processing than a web browser can reliably perform; this tool focuses on metadata removal and more efficient internal object storage, which produces only a modest reduction for most files.
What metadata does this tool remove?
It clears the title, author, subject, and keyword fields, replacing the producer and creator fields with the plugin's own name, which can be a useful privacy step even independent of any file size change.
Is it possible for the resulting file to be the same size or larger?
Yes, depending on the original file's internal structure, re-saving with object streams and removed metadata can occasionally result in a size that is very close to, or in rare cases slightly larger than, the original.
What is the best way to compress a PDF that is mostly large images?
For image-heavy PDFs, reducing the resolution or JPEG quality of the source images before assembling the PDF (for example, using the Image Compressor tool first) will generally produce a much greater size reduction than this metadata-focused re-save.
Is my data sent to a server?
No, the entire process happens locally in your browser using the pdf-lib library, and your PDF file is never uploaded anywhere.

← All tools

Ads Blocker Image Powered by Code Help Pro

Ads Blocker Detected!!!

We have detected that you are using extensions to block ads. Please support us by disabling these ads blocker.

Powered By
Best Wordpress Adblock Detecting Plugin | CHP Adblock