Compress PDF

This page is a basic version. The full version with more options is on dagotools.com, our main site for this tool.

Make a PDF smaller in your browser. Choose a lossless clean-up that keeps text selectable, or a stronger mode that turns each page into a JPEG image. Your file never leaves your device.

Drop a PDF here or click to select

How Compress PDF works

There are two modes. Lossless clean-up copies every page into a fresh document with pdf-lib (MIT) and saves it with object streams. That drops unused objects and packs the structure tighter, without touching text or images, so savings are usually modest (often 0–20%).

Strong mode renders each page with PDF.js (Apache-2.0) at the resolution you pick, saves it as a JPEG and builds a new PDF from those images. Scanned documents and image-heavy files often shrink a lot; text-only files can get bigger. Both libraries are served from this site.

Limits

Check it yourself

Open the Network tab of your browser's developer tools (F12) while you use the tool: no request carries your file. The page's Content-Security-Policy only allows our anonymous error counter (what it receives). Step-by-step: how to check that a tool doesn't upload your file.

Use it from code

There is no PDF compression endpoint in the API yet. Compression runs only in this page, on your device. Other PDF jobs (merge, split, rotate, watermark, metadata, extract) are available as REST endpoints and through the MCP server; see the developer guide.

OpenAPI spec · MCP setup

Related tools

Image to PDF · Delete PDF Pages · Reorder PDF Pages · PDF Sign · PDF to Image · All tools