Compress images to an exact file size
Set a limit — 100 KB, 200 KB, whatever a form or marketplace demands — and this compressor works backward from it. Bulk upload, browser-side processing, nothing leaves your device.
Drop images to compress
or click to choose · batch supported
No files yet. Add images to see results here.
Everything runs in this browser tab. Your images are never uploaded to a server.
How to hit a specific file size
- Set the limit. Enter the number the upload form asks for.
- Pick a format. Keep the original if you are unsure; WebP when you want the smallest file that still looks clean.
- Add the files. Drop them on the zone, or press Ctrl+V to paste a screenshot.
- Download. Each row shows the size before and after, plus the final dimensions.
What “compression” actually changes here
Two levers reduce file size: encoder quality and pixel dimensions. Quality throws away detail the eye is less likely to notice. Dimensions throw away area. This tool uses quality first, because it preserves the layout of the image and keeps text sharper than an aggressive downscale would.
When a target is unreachable through quality alone, the compressor reduces the longest side by 15% and retries. The row label tells you the final dimensions so you are never guessing what happened.
Why browser-side compression is the safer default
Product photos, ID scans, client screenshots and medical documents all pass through image compressors. Uploading them to an unknown server means trusting that server's retention policy. Doing the work locally means the file never becomes a network request in the first place.
The trade-off is honest: a tab has less CPU than a server, so a hundred 20-megapixel files will take a while. On a laptop, a typical batch of twenty phone photos finishes in under a minute.
When compression is the wrong tool
If the requirement is a fixed pixel size rather than a fixed byte size, use the image resizer instead. If you need to convert formats without caring about size, the converter runs the same pipeline with quality held constant.
Frequently asked questions
Does this tool upload my images anywhere?
No. Every image is decoded and re-encoded inside your browser tab using the Canvas API. Nothing is sent over the network, and closing the tab removes everything.
How does the target file size work?
The compressor binary-searches the encoder quality until the output lands under your limit. If the image still does not fit at the lowest sensible quality, it reduces the pixel dimensions in 85% steps and tries again.
Why is my PNG still large after compression?
PNG is lossless, so quality settings do nothing for it. To hit a target size the tool has to reduce the dimensions. If you need much smaller files, choose WebP or JPEG output — for photos they are typically 3–10× smaller at the same visual quality.
Can I compress many images at once?
Yes. Drop as many files as you like, or paste screenshots. Two files are processed at a time to keep the page responsive. When they finish you can download each file separately or grab everything as a single zip.
What is the maximum file size?
50 MB per file, and images above 40 megapixels are rejected. Both limits protect phones from running out of memory during decoding. For a larger scan, open it once at a smaller size in the editor first.