LocalExcelTool
Get started

Compress PDF

Shrink scanned PDFs by re-encoding each page as a compressed image.

Runs in your browserNo account neededFree up to 30 MB

What is Compress PDF

Compress PDF redraws every page as an image and re-encodes it as JPEG to make the file smaller. Pick a resolution (72/150/300 dpi) and a quality level. It works on scanned or photo-based PDFs (measured: 3.31 MB → 1.62 MB). A text-only PDF is just a few dozen KB of drawing instructions, so rasterising it inflates the size — in that case the tool returns your original file untouched instead of a worse one. Nothing is uploaded (free: up to 30 MB · Pro: 50 MB / 200 pages).

File

No file chosen

… up to 30 MB

🔒 Everything runs in your browser. Nothing is uploaded.

What this tool actually does with your file

Where it runs
In your browser, on this page
Upload
None — the file never leaves your device
Size limit
30 MB free, 50 MB with Pro
Offline
Works with the network disconnected

What compression actually does

Most PDF weight is images. Compression re-encodes those images at a lower resolution and quality, and optionally downsamples them to a target DPI. Text stays vector and stays sharp — a compressed text PDF is often indistinguishable from the original at a fraction of the size.

Scanned documents compress dramatically because each page is one large photograph. Text-heavy PDFs generated from Word compress much less, because there is little image data to remove. A 5 MB text PDF that only drops to 4.5 MB is not a failure; there was nothing to throw away.

The trade-off is irreversible once saved. Always keep the original; compressing a compressed file repeatedly degrades images quickly and gains almost nothing after the first pass.

Choosing a level

Use the lightest setting that meets the upload limit. If a form accepts 10 MB and your file is 12 MB, aggressive compression is unnecessary — one step down will do, and the document stays readable when printed.

For documents that will be read on screen only, 150 DPI is normally enough. For anything that will be printed, stay at 300 DPI or accept visible softness.

Compression never removes pages, and it does not strip metadata by default. If metadata matters for privacy, remove it explicitly rather than assuming compression handled it.

How to use it

  1. 1.Choose a PDF
  2. 2.Pick resolution and quality
  3. 3.Download the compressed PDF

How Compress PDF works under the hood

A PDF is a graph of objects plus a cross-reference table that says where each object starts. Merging, splitting and reordering are structural edits to that graph — no page is re-rendered, which is why the output keeps its original quality.

  1. 1

    Load the document

    pdf-lib parses the object graph, following the xref table to every page, font and image stream. Encrypted files are rejected here.

  2. 2

    Copy page dictionaries

    Each selected page is copied into a new document, together with the resources it references (fonts, images, colour spaces).

  3. 3

    Rewrite the cross-reference

    Every object gets a new byte offset, so the xref table is rebuilt. A wrong offset is the classic cause of a 'damaged PDF' — this step is why the tool cannot simply concatenate files.

  4. 4

    Save and download

    The new document is serialised to bytes in memory and offered as a Blob download.

  5. Processing pipeline

Why signatures and forms break

A digital signature covers the exact bytes of the document. Any operation that rewrites the file — even adding a page number — changes those bytes and invalidates the signature. That is the signature doing its job, not a defect. AcroForm fields live in a separate object tree; operations that rebuild the page tree may drop their appearance streams, so test a form-heavy document before relying on the output.

Scanned PDFs have no text

Text extraction reads the text operators inside each page's content stream. A scan is a single image, so there are no text operators to read — the result is an empty or near-empty file. Recognising that text requires OCR, which this site does not provide. If a PDF's text can be selected in a viewer, extraction will work; if it cannot, no converter can invent it.

Compression is re-encoding, not magic

PDF compression re-packs streams with Flate and can downsample embedded images. A PDF that is already mostly JPEG will shrink only slightly; a PDF of scanned pages at 600 dpi can drop by 80%. Text stays sharp because text is not an image. The tool never silently deletes pages to hit a size target.

Verify it yourself

The original file is never sent anywhere. Confirm it in one run.

  1. 1.Open DevTools on this page and switch to the Network tab
  2. 2.Keep the filter on Fetch/XHR and run the tool
  3. 3.Confirm no request carries your file — you should see only page assets and fonts

Frequently asked questions

Why did nothing happen to my text PDF?

The original file is returned unchanged. A text PDF holds only drawing instructions, so rasterising it inflates the size (measured: 11.5 KB → 2.05 MB). Rather than hand you a worse file, the tool stops and says so.

Will the text get blurry?

150 dpi and above stay readable on screen. At 72 dpi small text starts to break up; use 300 dpi for anything you plan to print.

Can I still select text afterwards?

No. Pages become images, so text is no longer selectable or searchable. Keep the original file.

Is this tool free?

Yes — no sign-up and no card. The free tier handles 30 MB. Everything runs in your browser, so your file is never uploaded.

What happens if my file is over the limit?

You see a notice before any processing starts, and nothing is charged automatically. Pro raises the limit to 50 MB. If you'd rather stay free, compress or split the file first.

What this kind of conversion cannot keep

PDF pages are copied as page objects, not re-rendered as images. Text stays selectable, the file size stays close to the sum of the inputs, and nothing is flattened. The one thing that cannot survive is a digital signature: any change to the bytes invalidates it, which is the signature working as designed.

More in PDF