Shrink to Fit
Compress images & PDFs to hit an exact file-size limit — entirely in your browser.
- Files never leave your device
- No analytics, no cookies
- EXIF & GPS metadata stripped
- Open source
Drop images or PDFs here
or click to choose files — nothing starts until you press Shrink
How it works & limitations
- Images are re-encoded as JPEG. A binary search over quality levels (20–95) finds the highest quality that fits your target; if that's not enough, dimensions are scaled down too. Transparency is flattened to white, and metadata (EXIF, GPS location) is stripped.
- PDFs are compressed with Ghostscript (compiled to WebAssembly, running locally): images inside the PDF are downsampled step by step while text and vector content stay intact. Only if even the lowest settings can't reach your target are pages re-rendered as compressed images (via Mozilla's pdf.js) — effective for stubborn scans, but text stops being selectable, and the result card tells you when that happened. Password-protected PDFs aren't supported.
- Privacy: compression runs in your browser. The only network traffic is loading this page's own files — your images and PDFs are never uploaded anywhere. Once everything has loaded (the PDF engines load on first use), it even works offline.