Compress an image to an exact size
Your file is processed in this browser tab. It is not sent to our servers.
How it works
Most image compressors give you a quality slider and leave you guessing which value lands under the size you need. This tool works the other way round: you name the size (say “under 100 KB”) and it searches for the highest quality that still fits.
When you pick a photo, it is decoded in your browser and re-encoded with the HTML Canvas at different quality levels. A binary search hones in on the largest output that stays under your budget; if quality alone cannot get there, it reduces the dimensions too. Nothing is uploaded: the work happens on your own device.
Re-encoding also drops the photo’s embedded metadata (such as GPS location), so a compressed copy is a little more private as well as smaller.
How to use it
- 1 Choose your image, JPEG, PNG, WebP or an iPhone HEIC photo.
- 2 Pick a target size, for example “Under 100 KB”.
- 3 Press Compress and wait a moment while it finds the best quality that fits.
- 4 Download the compressed image.
Good to know
- Inputs: JPEG, PNG, WebP and iPhone HEIC. The output is a JPEG.
- Compression strips the photo’s metadata (like GPS), a small privacy bonus.
- If a target is too small for the image, dimensions are reduced as well as quality.
- Nothing is uploaded: the whole process runs in your browser.
Frequently asked questions
How do I compress an image to under 100 KB?
Choose the “Under 100 KB” target, pick your image, and press Compress. The tool finds the best-looking version that fits and gives you a download.
Will compressing reduce the quality?
Only as much as needed to reach your target. If the target is generous for the image, the quality stays high; tighter targets trade off more detail.
Which image formats can I compress?
JPEG, PNG and WebP, plus iPhone HEIC/HEIF photos. The output is a JPEG.
Are my images uploaded to a server?
No. The image is decoded and compressed inside your browser tab and is never sent to us.
Why is a very small image not getting smaller?
Tiny images are already efficient, so re-encoding cannot shrink them further. You may see roughly the same size.
Related tools
Your files are processed on your device and are not uploaded. You can verify this in your browser’s developer tools under the Network tab.