About Compactor
Compactor shrinks PDF files without sending them anywhere. It offers two ways to do that: a Precision mode that recompresses the photos inside a document while leaving the text as real, selectable text, and a Rasterize mode that flattens every page into a single recompressed image for maximum size reduction.
Features
- Runs fully on-device — the PDF never leaves your browser
- Precision mode keeps text sharp and selectable
- Rasterize mode for the smallest possible file size
- Adjustable photo quality and maximum photo dimensions
- Adjustable page resolution and quality for rasterized output
- Live before-and-after size comparison
- Works on multi-page documents of any length
- No account, no watermark, no file size gate
How to use it
- Drop a PDF onto the panel, or tap it to choose a file.
- Pick Precision if the document is mostly text with some photos, or Rasterize if you need the smallest file possible and don't need selectable text.
- Adjust the quality and size settings if the defaults don't fit your document.
- Tap "Compact it" and watch the gauge while each page is processed.
- Compare the before-and-after size, then download the compacted file.
Frequently asked questions
Which mode should I use?
Use Precision for reports, contracts, or anything with real paragraphs of text — it only touches the embedded photos, so headings, body copy, and search stay intact. Use Rasterize for scanned documents or when you need the absolute smallest file and don't care about selecting text.
Why didn't Precision mode shrink my file much?
Precision mode only recompresses photos stored as JPEG inside the PDF. A document that's mostly text, or one whose images are already heavily compressed, may see little change — Rasterize mode will still shrink it, at the cost of selectable text.
Will this ever make my file bigger or corrupt it?
Compactor only replaces an image if the recompressed version is actually smaller, and it rebuilds the file with a standard PDF library. If a page or image can't be safely processed, it's left untouched rather than risking damage to the file.
Does this upload my document anywhere?
No. The two code libraries that do the PDF processing are loaded once from a public code library, but your actual PDF file and its contents are never transmitted anywhere — everything happens locally in your browser.
Is there a page or file size limit?
There's no built-in cap, but very large or very long documents rely on your device's memory and processing power, so extremely large files may take a while or struggle on older devices.
