Compress PDF

Popular

Shrink PDF file size while keeping quality. Free online PDF compressor.

or drop PDF here

Runs in your browser when possible; falls back to secure server processing.

Shrink a PDF so it fits under an upload limit, an email cap, or a slower connection — without uploading it to anyone. Compress PDF works in two passes: it repacks the file losslessly, removing duplicate objects, orphaned data and the metadata packet, then downsamples and re-encodes the images, which is where nearly all of a normal PDF's weight sits. Text, fonts and vector lines are never touched, so they stay sharp. Three levels set how hard the image pass pushes: Light keeps images close to their original detail, Recommended is the default balance, and Strong goes for the smallest file. If nothing can safely be saved, the original bytes come back unchanged rather than a worse file.

How to use Compress PDF

  1. Click "Select PDF file" and choose the PDF to shrink.
  2. Pick a compression level. Recommended is the default because it usually cuts a scanned document the most without visible damage; choose Light for image-heavy brochures or Strong when the file must get under a hard limit.
  3. Click "Compress PDF". A text-only PDF compresses structurally; a scan is re-encoded, so it takes longer.
  4. Download the smaller file and check the pages you care about — a high-contrast scan holds up better than a photograph of a page.

Who it is for

Compress PDF is for the moment a document will not go where it needs to: an application portal that rejects anything over 5 MB, an inbox with a 25 MB ceiling, a printing service that charges by upload size, or a product manual that has to load quickly on a phone. The usual case is a scanned document, because a scan is mostly photographs and photographs are most of the bytes. The other case is a PDF exported from design software that carries far more image data than the page actually uses. Both respond to the same treatment here. If you are sending a contract, a medical letter or anything confidential, the compression happens on your own machine, which is the reason people look past the big sites for this job.

How it works

  • The tool builds two candidate files and keeps whichever is smaller. The first is a lossless structural re-save: pdf-lib repacks the document into object streams, which is the same packing a well-made PDF uses, and drops orphaned objects. That costs nothing in quality and is all some files need.
  • The second candidate also downsamples and re-encodes the images. Every image above 3 KB is decoded, scaled so its longest side fits the level's ceiling, and written back as JPEG at the level's quality. This is where the real savings sit, because images are nearly all of a normal PDF's weight.
  • The original file is always in the running as a third candidate, so the output can never be larger than what you put in. If neither pass beats the original, you get the original bytes back with a message saying so, rather than a "compressed" file that is worse.
  • A re-encode is only kept if it saves at least five percent. A small image that would lose detail for a handful of bytes is left alone, which is why the loss is concentrated in the images that were actually heavy.
  • Text, fonts and vector lines are never touched by either pass. They stay as instructions rather than becoming pixels, so they remain sharp at every zoom level and at print size, and the text stays selectable and searchable.

What it cannot do

  • A text-only PDF barely shrinks. Once the structural waste is gone, the remaining bytes are the fonts and the page instructions, and discarding those would mean changing the page. Expect little movement on a letter typed in Word; the gains are in scans and image-heavy documents.
  • Compression is lossy above Light. Recommended and Strong re-encode images at lower quality, and on a photograph of a page that shows as softness in fine print. Always open the result and look at a dense page before sending it on.
  • An encrypted PDF is opened but not usefully compressed. The image pass cannot re-encode what it cannot decode, so you get the lossless pass only and usually a file identical in size. Remove the password first and compress that copy.
  • Files over 100 MB are skipped with a message rather than attempted, because a large scan decoded in a browser tab will exhaust memory. Splitting the document and compressing the parts is the way to handle one that big.
  • There is no "target file size" mode. You choose a level and see what it gives; getting under a specific number can take two attempts at different levels.

Frequently asked questions

Why did my file barely get smaller?

Because most PDFs are already close to their floor. A document that is mostly text has little structural waste to remove once duplicate objects are gone, and the visible bytes are the fonts and the page instructions, which cannot be discarded without changing the page. The big wins come from scanned files, where most of the size is page images. If a text PDF must shrink further, flatten it to images — you lose selectable text, but the size falls sharply.

What does each level actually change?

All three do the same lossless structural pass — duplicate and unused objects removed, metadata tidied — and then re-encode images at a different ceiling. Light caps an image's longest side at 2200 pixels and writes JPEG at quality 0.82, Recommended caps at 1600 pixels, and Strong caps at 1200 pixels and drops quality to 0.58 for the smallest file. Text and vector lines are never rasterised, so they stay sharp at every level; only images change.

Will compression make the text blurry?

No. Text stays as text because the page content is rewritten, not photographed. Only images and scans lose detail, and only as much as the level you chose allows. If you see blurry text after compressing, the PDF was already a scan — there was no text to begin with.

Is my document uploaded to a server?

No. The file is opened, rewritten and saved inside your browser tab, so a confidential document never leaves your device.

Can I compress a password-protected PDF?

Usually not usefully. The tool opens an encrypted file, but it cannot re-encode the images inside it, so the only thing left is the lossless structural pass — and on an already-packed file that saves nothing. You will see "File is already as small as it can get" rather than a smaller document. Remove the password from a file you own with Unlock PDF, then compress the unlocked copy and the image pass can run.

Is there a file size limit?

The practical limit is your device's memory rather than a number we impose. Scans of a few hundred pages are fine on a desktop; a phone will struggle sooner because the page images are decoded in memory one at a time.

Which level should I try first?

Recommended, and then look at the result. If a page of small print has gone soft, go back to Light; if the file is still over the limit, step to Strong. Because the original is always kept as a candidate, trying a level costs you one run and no quality — a worse result is simply not chosen.

Can I compress several PDFs at once?

One PDF per run. Each file gets its own level and its own result, which is deliberate: the right level for a photographed document is not the right level for a typed report, and batching would force the same choice on both.