Read & compress

Compress PDF

Compress PDF – Reduce File Size Without Uploading

Make a PDF smaller in your browser: pick a quality level or an exact target size.

About this tool

About Compress PDF

Compress PDF makes a PDF smaller without sending it anywhere: the file is processed in this browser tab, rewritten by the open-source pdf-lib library with compact object streams, while JPEG photos are re-encoded by your browser's own image encoder. Choose Best quality (rewrites the file structure more compactly and leaves images alone), Balanced (re-encodes JPEG photos at high quality, full resolution), Smaller (photos at medium quality and about 150 dpi), or type a Target size such as 200 KB and it steps photo quality and resolution down, to about 96 dpi at most, until the file fits. Text and vector graphics are not re-encoded, so they stay sharp. If your PDF is mostly text, already optimised, or a scan stored in a format other than JPEG, it may not shrink, and in that case you get your original back, never a bigger file. You see the size before and after, and you can drop several PDFs at once to compress them with the same setting and download a ZIP. PDFs can be up to 40 MB each. There is no account, no watermark and no daily limit.

  • Four modes: Best quality, Balanced, Smaller and Target size (in KB)
  • Re-encodes JPEG photos; text and vector graphics are not re-encoded
  • Returns your original file if compression wouldn't make it smaller
  • Several PDFs at once, downloaded as a ZIP
  • PDFs up to 40 MB each, processed in your browser

Built and maintained by Abhi JainUpdated

Measured, not claimed

Compress PDF, tested

Tested on by running this tool's own code on public sample files in Chromium 151.0.7922.34 on a laptop (Apple M5, 10 cores, 16 GB). A phone will be slower. Times are the median of repeated runs.

Compress PDF on six sample files
Sample fileOriginalBest qualityBalancedSmallerTarget size (a quarter of the original)
Text report43 KBUnder 0.1% smaller (2 ms)Under 0.1% smaller (2 ms)Under 0.1% smaller (2 ms)Under 0.1% smaller, target not reached (2 ms)
Image-heavy brochure4.6 MBUnder 0.1% smaller (4 ms)1.8% smaller, 4.6 MB (103 ms)23.8% smaller, 3.5 MB (111 ms)31.8% smaller, 3.2 MB, target not reached (365 ms)
Scanned-style image PDF1.4 MBUnder 0.1% smaller (2 ms)Under 0.1% smaller (68 ms)66.6% smaller, 481 KB (49 ms)83.7% smaller, 236 KB, target met (119 ms)
Slide deck1019 KBUnder 0.1% smaller (2 ms)Under 0.1% smaller (46 ms)55.7% smaller, 452 KB (40 ms)77.1% smaller, 233 KB, target met (114 ms)
Fillable form27 KB0.1% smaller, 27 KB (21 ms)0.1% smaller, 27 KB (21 ms)0.1% smaller, 27 KB (21 ms)0.1% smaller, 27 KB, target not reached (21 ms)
Long book839 KBUnder 0.1% smaller (202 ms)Under 0.1% smaller (209 ms)Under 0.1% smaller (205 ms)Under 0.1% smaller, target not reached (203 ms)
  • Only photos can be made smaller here: the text-only samples (report, form, book) barely change in any mode, and Balanced re-encodes a photo only when that actually saves space.
  • Every result was reopened with pdf.js after the run: each one had the same number of pages as its original.
How this was measured and the sample files
  • Each tool's own code (the same modules the tool page loads) was run in one headless Chromium tab on this machine; nothing was uploaded anywhere.
  • Times are wall-clock milliseconds from performance.now(), the median of 3 runs (1 run for the long book and for the brochure in PDF to JPG), after one untimed warm-up that loads the libraries.
  • Sizes are bytes of the files produced. Compress never returns a bigger file: when compression does not help, the original is kept and the result shows 0%.
  • Target size asks for a quarter of the original size (minimum 20 KB).
  • PDF to Word is measured by opening the .docx and counting what is in word/document.xml (heading styles, tables, images) and how many of the PDF's words (from pdf.js) are in it.
  • PDF to JPG renders up to the first 20 pages at quality 'high', as the tool does.
  • Protect PDF uses AES-256 with an open password, including the tool's own verification pass (it re-opens the file with qpdf), then checks independently that qpdf refuses the file without the password.
  • Results depend on the device and browser: a phone will be slower. Repeated full runs on the same laptop differed by up to about 2× in time (other programs were running), never in sizes.

Sample files (download them and try the same test):

  • Text report (43 KB, 11 pages). 7 articles as headings, 21 section headings, one ruled table (12 rows), one vector bar chart, embedded Source Serif 4 (OFL), 9 bookmarks. Source: The Constitution of the United States of America (1787). Public domain (US government work, 1787). Text transcribed by Project Gutenberg (eBook #5); Project Gutenberg header, footer and trademark removed.
  • Image-heavy brochure (4.6 MB, 4 pages). 4 Letter pages, 6 embedded JPEG photographs (3 at original camera resolution, up to 4579 px), captions in embedded Noto Sans (OFL). Source: NASA image as17-148-22727: View of the Earth seen by the Apollo 17 crew traveling toward the moon; NASA image iss040e081008: Earth Observation; NASA image as08-14-2383: Apollo 8 Mission image, Earth over the horizon of the moon; NASA image as11-40-5903: Astronaut Edwin Aldrin walks on lunar surface near leg of Lunar Module; NASA image PIA12348: Great Observatories Unique Views of the Milky Way; NASA image GSFC_20171208_Archive_e000056: A Lot of Galaxies Need Guarding in this NASA Hubble View. Public domain: NASA imagery is not subject to copyright in the United States (NASA Media Usage Guidelines).
  • Scanned-style image PDF (1.4 MB, 3 pages). 3 A4 pages, each a single 200 dpi greyscale JPEG (q75) of typeset text with paper tint, noise and skew added by ImageMagick. No text layer, like an unprocessed scan. Source: The Constitution of the United States of America (1787). Public domain (US government work, 1787). Text transcribed by Project Gutenberg (eBook #5); Project Gutenberg header, footer and trademark removed.
  • Slide deck (1019 KB, 10 pages). 10 slides at 960 × 540 pt (16:9), embedded Noto Sans (OFL), vector shapes, 3 photographs at 1920 px, one bookmark per slide. Source: NASA image as11-40-5903: Astronaut Edwin Aldrin walks on lunar surface near leg of Lunar Module; NASA image iss040e081008: Earth Observation; NASA image PIA12348: Great Observatories Unique Views of the Milky Way. Public domain: NASA imagery is not subject to copyright in the United States (NASA Media Usage Guidelines).
  • Fillable form (27 KB, 2 pages). 2 A4 pages, 19 AcroForm fields (text, multiline text, radio group, checkboxes, dropdown), embedded Noto Sans (OFL). Content written for this corpus.
  • Long book (839 KB, 341 pages). 341 A5 pages, 61 chapters each with a bookmark, embedded EB Garamond (OFL). Text only. Source: Jane Austen, Pride and Prejudice (1813). Public domain (published 1813). Text transcribed by Project Gutenberg (eBook #1342); Project Gutenberg header, footer, preface and illustration captions removed.
Compress PDF – Reduce File Size Without Uploading: the 4.6 MB sample brochure compressed with the Smaller setting, showing the size saved (desktop screenshot, 2026-12-04)
The 4.6 MB sample brochure compressed with the Smaller setting, showing the size saved. Screenshot of Compress PDF, 4 December 2026.
Compress PDF – Reduce File Size Without Uploading: the tool before a file is opened (desktop screenshot)
The tool before a file is opened.

How to Compress a PDF

  1. 1

    Open your PDF

    Drop a PDF on the page or click to choose one (or several). It is read in your browser, not uploaded.

  2. 2

    Choose a mode

    Pick Best quality, Balanced, Smaller or Target size. For Target size, type the size you need in KB, such as 200.

  3. 3

    Compress and download

    Click Compress PDF, check the before and after size, then download the smaller file.

Compress PDF: questions and answers

Why is my PDF so big?

Almost always because of pictures. A phone photo or a page scanned at 300 dpi can weigh more than a hundred pages of text, and many PDFs store photos at a much higher resolution than a screen or printer needs. Embedded fonts, duplicated images and unused leftover objects add a little more. Text itself is tiny, which is why Compress PDF works on the photos and the file structure and leaves text alone.

How do I compress a scanned PDF?

It depends on how the scanner saved the pages. Phone-scanner apps usually store each page as a JPEG, which Balanced, Smaller and Target size can shrink a lot. Office scanners often use black-and-white formats such as CCITT or JBIG2 that are already compact and that this tool doesn't re-encode, so the file may barely change. Then remove pages you don't need with Delete PDF Pages or split the file with Split PDF.

How much smaller will my PDF get?

It depends on what is inside. PDFs made of photos or JPEG scans usually shrink the most; text-only PDFs may barely change, because text is already compact. The tool shows the size before and after, and if the result isn't smaller you get your original file back.

Will compressing blur my PDF?

Text and vector graphics are not re-encoded, so they stay as sharp as before. Photos are: Balanced keeps their full resolution at high JPEG quality, Smaller lowers them to about 150 dpi, and Target size can go down to about 96 dpi at lower quality, which can make photos and photographed text look soft. Best quality never touches images.

Why didn't my PDF get smaller?

The tool rewrites the file structure and re-encodes JPEG photos. A PDF that is mostly text or vector drawings, one that was already optimised, or a scan saved with other image encodings (such as CCITT, JBIG2 or Flate) has little it can shrink. Try Smaller or Target size if it has photos; for a scan, splitting it with Split PDF also helps meet a limit.

How do I get a PDF under 100 KB or 200 KB for a portal?

Choose Target size and type the limit, or open a ready preset: compress PDF to 100 KB or compress PDF to 200 KB. If a scan can't reach the limit without becoming unreadable, the tool says so; then remove pages you don't need or split the file.

Is there a file size limit?

Each PDF can be up to 40 MB, so your browser doesn't run out of memory. There is no limit on how many files you compress, and you can add several at once.

Can I compress a password-protected PDF?

Not while it's locked. Remove the password first with Remove PDF Password (you need the password), then compress the unlocked copy.

Does it work on a phone?

Yes. It runs in Chrome, Safari, Firefox and Edge on phones, tablets and computers. Large files take longer on a phone because the work happens on your device.

Is my PDF uploaded?

No. Compression happens in your browser tab. You can check: open your browser's developer tools, watch the Network tab while you compress, and you'll see no request carrying your file.