The lossless clean-up rewrites the file more compactly and keeps every word selectable. Strong compression turns each page into a JPG image, which makes scanned documents far smaller. You see each file before and after, with the percentage saved, and download them one by one or together in a ZIP. It helps when a job portal, a tax upload page or an email account rejects anything over a few megabytes. Your files never leave your device: everything happens in this browser tab.
How it works
Lossless clean-up opens the PDF with pdf-lib and writes it out again. On the way it packs the small objects that describe pages, fonts and links into compressed object streams, deletes objects that nothing in the document points to any more (leftovers from earlier edits and incremental saves), and compresses any stream the original program stored without compression. If you keep Remove metadata ticked, it also drops the XMP metadata packet, the document info (title, author and the program that made the file), embedded page thumbnails and the private editing data some design programs leave behind. Text, links, bookmarks and form fields stay exactly as they were. Strong compression draws every page with pdf.js at the resolution you choose: 72, 100, 150 (the default), 200 or 300 DPI, meaning that many pixels for each inch of paper. Each page picture is saved as a JPEG at the quality you set, from 20 to 90 (60 by default), and pdf-lib builds a new PDF from those pictures with the same page sizes as the original. This is what makes scans so much smaller, but be clear about the cost: the text becomes part of a picture. You can no longer select, search or copy it, and links, bookmarks and form fields are gone. Either way, if the new file is not smaller than the original, the tool keeps the original and says so, so you never download a "compressed" file that weighs more. A PDF that only restricts printing or editing opens without a password; one that needs a password to open asks for it, and the result has no password. Sizes use decimal units, where 1 MB is 1,000,000 bytes.
Worked example
Say you scanned a 12-page A4 lease for a rental application and the PDF weighs 18.6 MB, but the landlord's portal accepts 5 MB at most. The lossless clean-up will not help much here, because each scanned page is already one big compressed image. So you choose Strong compression at 150 DPI and quality 60. An A4 page is 595.28 by 841.89 points, and a point is 1/72 of an inch, so at 150 DPI every page becomes a JPEG of 1240 by 1754 pixels: plenty to read the small print. If the new file comes out at 2.4 MB, the list shows 18.6 MB → 2.4 MB and 87.1% smaller: 18,600,000 bytes minus 2,400,000 bytes is 16,200,000 bytes saved, and that divided by the original size is 0.871. The file is saved with "-compressed" added to its name and now fits the portal twice over. For a 3.2 MB report exported from Word, the lossless clean-up is the better choice. It might bring the file to 2.9 MB, which is 9.4% smaller, and every word stays searchable.