🇬🇧EN

Compress PDF

Shrink a PDF's file size, right in your browser.

✨ What do you want to try next?

You've finished this tool — here are a few you might find useful.

Explore 100+ free toolsPDF, Image, Text, Convert, Calculate and more — all free.View all tools →

About the Compress PDF tool

This tool shrinks a PDF's file size using one of three approaches: a light, lossless-ish structural optimization that keeps text selectable, a strong compression that re-renders each page as a compressed image (the same technique most free image-heavy PDF compressors use), or a target-size mode that automatically searches for the quality level that gets you closest to an exact file size you set.

How it works

Upload a PDF and pick a mode. Light re-saves the PDF's internal structure more efficiently — safe, keeps all text and quality, but savings are modest and depend on the file. Strong renders every page to an image at your chosen quality level and rebuilds the PDF from those images. Target size lets you type an exact size (e.g. 500 KB or 2 MB) — the tool automatically tries different quality and resolution combinations and picks the closest result under or near that size. The tool shows the original size, new size, and percentage saved before downloading.

Assumptions and behaviour

  • Light mode re-serializes the PDF with optimized object streams. It won't recompress embedded images or fonts, so savings vary and can sometimes be minimal.
  • Strong mode rasterizes every page to a JPEG at the chosen quality/resolution preset, then rebuilds the PDF from those images page-by-page at the original page size.
  • Target size mode binary-searches JPEG quality (and steps down resolution if needed) until the output is at or near your requested size — it can't always hit the exact number, especially for very small targets, but gets as close as possible.
  • Strong and target-size modes are most effective on scanned documents or image-heavy PDFs — they can make a text-heavy, vector-based PDF larger in some cases, since rasterizing text is often less efficient than the original vector text.
  • Strong and target-size modes remove selectable text and interactive elements (links, form fields, bookmarks) — the output is image pages only.

Limitations

  • No OCR — text in a strong-mode output is not selectable or searchable, even if the source PDF's text was.
  • Very large PDFs (many pages, high resolution) can take a while to process since everything runs on your device.
  • Encrypted or password-protected PDFs can't be processed.

Privacy

The PDF is compressed entirely in your browser using pdf.js and pdf-lib. Nothing is uploaded or stored.

Frequently asked questions

Is this Compress PDF tool free?

Yes — free, no sign-up, no limits, runs in your browser.

Which mode should I use?

Use Light if your PDF is mostly text and you want to keep it selectable and searchable. Use Strong if you want the biggest general size reduction. Use Target size if you need the file under a specific limit, like an email attachment size or a form's upload cap.

Will Strong mode always make the file smaller?

For scanned or image-heavy PDFs, usually yes and often dramatically. For text-heavy PDFs with few images, rasterizing can sometimes increase file size — try Light mode first for those.

Can I compress a PDF to an exact file size?

Use Target size mode — enter the size you need (in KB or MB) and the tool searches for the closest quality/resolution combination automatically. It gets as close as possible but can't guarantee an exact byte count.

Can I still select or search text after Strong compression?

No. Strong mode converts every page into an image, so text is no longer selectable or searchable. Use Light mode if that matters to you.

Is my PDF uploaded anywhere?

No. Everything runs locally in your browser; nothing is sent or stored.

Lakshay Kumar

Written by Lakshay Kumar(TechLakshay)

A QA Automation Engineer by trade, Lakshay's real passion is untangling complex problems into simple, working solutions — which is exactly why FreeMyTask exists. On Instagram, he channels that same instinct into helping 26,000+ content creators with SEO education, motivation, and hands-on query solving.

Last updated: August 22, 2026
🎁