Skip to content
CompressFilesSize
PDF optimizer

Compress a PDF in Your Browser

Drop a PDF and the browser rebuilds its object table with compressed object streams, removes document metadata and duplicate page thumbnails, then measures the real output. Text stays selectable by default. For image-heavy scans, switch to Flatten to images: pages are rendered as JPEGs and rebuilt, which can shrink a scan a lot but makes the text non-selectable. If neither mode beats the original, the original is kept with an explanation.

Formats

PDF

Max file

300 MB

Processing

On-device

Upload

None

PDF compressor
On-device

Settings

PDF mode

Optimizes the PDF object table and removes metadata. Text stays selectable; embedded scans are not recompressed.

Processed on your device — nothing is uploadedNo signupNo watermark

How it works

Three steps. Nothing uploaded.

The file is opened, re-encoded, and written back to your device without touching a server.

  1. 01

    Add the PDF

    Choose a PDF. It is parsed in the browser; no upload request is made.

  2. 02

    Optimize the structure

    Metadata, duplicate thumbnails and uncompressed object tables are removed, then the document is rebuilt with object streams.

  3. 03

    Download the result

    Compare the measured sizes and download. If the PDF is already at its floor, the original is kept rather than shipping a larger file.

What browser PDF optimization can and cannot do

A PDF is a container of objects: text streams, fonts, images, metadata and a cross-reference table. Many exporters leave duplicate metadata, unused thumbnails and uncompressed object tables. Rebuilding the container with object streams removes that overhead without touching the visible pages.

Recompressing the images is a different operation. It requires decoding each image, choosing a new quality, and replacing the object references. That can shrink scans dramatically but also destroys the original pixels, so it is not silently applied here.

A practical PDF workflow

If the PDF is mostly text, optimize the structure here and check the result. If it is a scan, run OCR first if you need searchable text, then export the pages as high-quality JPGs and rebuild a PDF with a lower image quality. For contracts and forms, keep the original and use the optimized copy only when an upload portal demands it.

FAQ

Questions, answered.

How much smaller will my PDF get?

It depends on how the PDF was produced. Files exported from office apps often carry metadata and inefficient object tables and can shrink by a few percent to tens of percent. A scanned PDF whose pages are already JPEGs may barely change.

Does it keep text selectable?

Yes. This optimizer rewrites the PDF structure; it does not rasterize pages. Text, links and selectable content stay intact.

Can it compress images inside the PDF?

Yes, with the Flatten to images mode. It renders each page to a JPEG at the quality you choose and rebuilds the PDF. The result can be much smaller for scans, but text stops being selectable. Keep text mode for contracts and forms.

Is the PDF uploaded?

No. pdf-lib runs in the browser and the result is assembled locally. Nothing is transmitted or stored.

On-device compression

Make it smaller. Keep it private.

Every compressor on this site runs inside your browser. No upload, no account, no watermark on the result.

Compress a fileNo upload. No signup.