tools.studio

Compress PDF

Shrink a PDF. A lossless re-save keeps text and vectors, or flatten pages to JPEG at a quality you pick.

Drop a PDF here

Everything happens on your device — your files are never uploaded.

What this does

Compress PDF reduces a PDF's file size in one of two ways. The default rasterize method renders every page to a JPEG at the quality you pick, then rebuilds a fresh PDF that embeds those images at the original page dimensions. This is lossy: text, links, and vectors become flat pixels, and each page is painted onto a white background, so transparency is dropped. It gives the biggest size win on scans and image-heavy files.

"Keep text (lossless)" instead re-saves the same document using object streams, leaving all text, fonts, and vector graphics intact and only squeezing structural overhead. Either way the tool compares the result against the original and keeps whichever is smaller, so you never end up with a larger file.

How it works

  1. 1 Drop a PDF or pick one.
  2. 2 Choose a quality, or switch to "Keep text (lossless)" to keep your text selectable.
  3. 3 Click Compress PDF and download the smaller file.

Built with open source

  • pdf-lib — Creates and modifies PDF documents. · MIT
  • pdf.js — Mozilla's PDF engine. It renders and reads PDF pages right in the browser. · Apache-2.0

Frequently asked

How does it shrink the file? +

The default method re-renders each page as a compressed JPEG and rebuilds the PDF at the same page size. That is the biggest win for scans and image-heavy files. "Keep text (lossless)" re-saves the structure with object streams instead, so your text stays selectable and only the overhead gets trimmed.

Will the text still be selectable? +

Only with the "Keep text (lossless)" method. The default rasterize method turns each page into an image, so text and links become part of the picture. You can no longer select or search them.

What does the Quality setting change? +

It only affects the rasterize method. Low, Medium, and High set the render scale and JPEG quality, so higher quality keeps pages sharper but produces a larger file. The setting is ignored when you choose Keep text (lossless).

What happens to transparency and metadata? +

Rasterized pages are drawn onto a solid white background, so transparent areas become white and the page is flattened to a single image. The lossless re-save keeps the document structure intact. Neither method preserves a guaranteed copy of document metadata, so treat the output as a fresh file.

What if it can't get smaller? +

Some PDFs are already optimized. If the compressed version would come out larger, the tool keeps your original bytes and tells you so. This is common with PDFs that are mostly text or already use efficient image compression.

Is there a file-size or page limit? +

There's no fixed limit. Both methods load the whole PDF into memory and the rasterize path renders every page on a canvas, so very large or high-page-count files are bounded only by your device's available memory.

Can I compress several PDFs at once? +

The tool works on one PDF at a time. Compress and download one file, click Start over, and load the next.

Does my file get uploaded? +

No. Everything runs in your browser using your CPU, with no sign-up and no watermark. The PDF never leaves your device, and the output downloads straight to it.

Related tools

All Edit PDF →