OfflaneAI

Compress PDF —
smaller files, text stays sharp

Drop one or many PDFs, pick Recommended, Strong or Maximum, see the before/after size and download. Scanned documents and photo-heavy reports shrink 50–90%.

  • 📉 Typically −50…90% on scans
  • 🔤 Text stays selectable
  • 📦 Batch → ZIP
  • 🔒 Files never leave your device

Loading the tool… (JavaScript required)

How does it make the PDF smaller?

Most large PDFs are large because of photos and scans. “Recommended” and “Strong” find every image inside the file, downscale oversized ones and re-encode them as efficient JPEGs, leaving text, fonts, links and forms untouched. “Maximum” renders each page to a compact image — the smallest result, but text is no longer selectable.

Why did my file barely shrink?

PDFs that are mostly text or vector graphics are already small per page; there is little to compress without harming them. Try “Strong” or, if you only need it to be viewable, “Maximum”. Files exported from Word with a few images usually drop 20–40%.

Is it safe for confidential documents?

Yes — compression runs entirely in your browser with open-source libraries. Contracts, medical records and ID scans are never uploaded, logged or stored anywhere.

How to compress a PDF

  1. Add the files. Drop one PDF or a whole batch on the upload area.
  2. Pick a level. Four cards appear: Recommended, Strong, Maximum and Lossless. Recommended is preselected.
  3. Press “Compress”. Files are processed one after another. Cancel stops the batch.
  4. Read the result line. Each file shows its old size, new size and the saving in percent.
  5. Download. Save files one by one, or press Download all (ZIP) when two or more are ready. Each file keeps its name with -compressed added.

Choosing another level resets the list, so you can press Compress again and compare the sizes without adding the files a second time.

What takes up space in a PDF

A page of text costs a few kilobytes. Fonts add some tens or hundreds of kilobytes per document. Almost everything beyond that is pictures: scanned pages, photos, screenshots, slide backgrounds. A 40 MB report is usually 39 MB of images.

That is why this tool works on the images and leaves the text alone. It is also why a text-only PDF hardly shrinks, whatever tool you use.

The four levels

LevelImagesText, fonts, vector graphicsText selectable
RecommendedLong side limited to 1800 px, saved as JPEG at 78% qualityUntouchedYes
StrongLong side limited to 1300 px, JPEG at 62%UntouchedYes
MaximumEach whole page rendered at 110 DPI and saved as JPEG at 55%Become part of the page pictureNo
LosslessUntouchedUntouchedYes

Recommended

Every picture inside the file is examined. Pictures larger than 1800 px on the long side are scaled down to that size, and all of them are re-encoded as JPEG. For a full-page A4 scan, 1800 px is about 150 DPI: sharp on screen and fine for an office printer. Links, form fields, bookmarks and the text layer stay as they were.

Strong

The same method with a 1300 px limit and heavier JPEG compression. A full-page A4 scan ends up at about 110 DPI. Body text in scans stays readable; small print and fine photo detail get visibly softer when you zoom in.

Maximum

The page is no longer kept as text and images. Each page is drawn as one picture at 110 DPI and a new PDF is built from those pictures. The page size stays the same. Text can no longer be selected, searched or read by a screen reader, and links, form fields and bookmarks are gone. Use it only when the file just has to be looked at.

Lossless

Nothing is re-encoded. The file structure is written again in a more compact form. Expect a small gain, and often none on files that a modern program exported.

What changes and what stays

Part of the PDFRecommended and StrongMaximum
Text and fontsUnchangedTurned into pixels
Vector drawings, charts, logosUnchangedTurned into pixels
Photos and colour scansDownscaled and re-encodedPart of the page picture
Links, bookmarks, form fieldsKeptRemoved
Page count and page sizeKeptKept
Certificate-based digital signatureInvalidatedRemoved

A picture is replaced only when the new version is at least 8% smaller than the old one. Otherwise the original stays in the file, so pictures that were already compressed hard are not degraded for nothing.

Choosing a level by document type

DocumentStart withWhat to expect
Colour or greyscale scanRecommendedLarge saving; scans and photo-heavy reports shrink 50–90%
Presentation exported with photosRecommendedLarge saving, slides look the same on screen
Phone photos combined into a PDFRecommended, then StrongLarge saving
Word or Docs export with a few picturesRecommendedUsually 20–40%
Text-only contract, invoice, e-bookLosslessLittle or nothing
Black-and-white fax-style scanLosslessLittle; see the skipped images below
File that only has to be viewed onceMaximumSmallest file, text not selectable
Document for professional printingLossless onlyPrint needs the original resolution

Reading the result line

After compression each file shows, for example, 12.40 MB → 2.10 MB · −83% · 14 images re-encoded. The image count tells you how many pictures were actually replaced.

If the new file is not at least 2% smaller, you see Already well compressed — try “Strong” or “Maximum” and no download is offered for that file: your original is already the better version. Under the list, a total line adds up the batch.

Getting under a size limit

Upload forms often ask for 2, 5 or 10 MB, and e-mail providers cap attachments; Gmail’s limit is 25 MB. Work down this list and stop as soon as the file fits:

  1. Compress with Recommended.
  2. Switch to Strong and compress again.
  3. Remove pages the recipient does not need with the PDF splitter, then compress the shorter file.
  4. Use Maximum if selectable text is not required.
  5. Split the document into two parts and send them separately.

If you are still editing the document in Word or a slide program, it is better to shrink the pictures before export. The image compressor does that in bulk.

Images the tool leaves untouched

Some pictures are skipped on purpose, because re-encoding them in a browser could shift colours or make them larger:

  • Pictures smaller than 64 × 64 px, such as icons and bullets.
  • CMYK images, typical of print-ready files.
  • JPEG 2000 images.
  • Pure black-and-white scans stored in fax-style formats (CCITT, JBIG2). These are already very small per page.
  • Images with a colour palette and 16-bit images.

A file made only of such images gains little from Recommended or Strong. Maximum still works on it, because it redraws the whole page, but for black-and-white fax-style scans the result can be larger than the original.

Check these before you send the file

Small print

Zoom to 100% on a page with footnotes or stamps. If it is too soft, go back from Strong to Recommended.

Screenshots and diagrams

Pictures that were stored without loss are converted to JPEG. Sharp edges can get a faint halo, more so on Strong.

Transparent pictures

A cut-out logo or a picture with a soft shadow that is larger than the level’s pixel limit loses its transparency when it is scaled down, and a solid box can appear behind it. If you see that, use Lossless for this file.

Signatures

A certificate-based digital signature stops validating after any re-save, including Lossless. Compress first, then have the document signed. A signature image added with the PDF signing tool is an ordinary picture and can be compressed like any other.

Searchable text after Maximum

If you later need the wording, the image to text tool can read it back from the page pictures.

How it runs in your browser

The work is done by pdf-lib (MIT licence), which opens the PDF structure, finds the image objects and writes the new file. The pictures themselves are scaled and re-encoded by your browser’s built-in JPEG encoder. For Maximum, PDF.js (Apache 2.0) renders the pages. There is no model to download and no upload step: a medical report or a bank statement is rewritten inside the browser tab.

The whole file is held in memory while it is processed. There is no page or size cap, but a phone may run out of memory on PDFs of several hundred megabytes; a computer handles them.

Troubleshooting

The file did not get smaller

It is mostly text, or its images are of a skipped type. Try Strong. If the text does not need to stay selectable, try Maximum.

The compressed file is blank or will not open

The original has printing or editing restrictions and is encrypted inside, even though it opens without a password. Print it to PDF from your reader and compress the printed copy, or use Maximum, which reads such files.

The scan is hard to read after Strong

The source was already low in resolution. Use Recommended, or rescan at 300 DPI in greyscale and compress that.

A logo has a black or white box behind it

The logo had a transparent background and was scaled down. Compress this file with Lossless, or replace the logo in the source document with a smaller version and export again.

“Download all (ZIP)” does not appear or misses a file

The button shows up when at least two files were made smaller. Files marked as already well compressed are not put in the ZIP, because your originals are the smaller versions.

The page stops responding on a huge file

The device ran out of memory. Split the PDF into parts first, compress each part and merge them again.