Compress an Image to a Target File Size
Hit an exact upload limit instead of guessing at a quality slider.
Drop a file here
or click to choose a file
Runs on your device Your file is processed by your own browser and is never uploaded to a server.
Short answer
An image can be compressed to a specific file size in a web browser by re-encoding it repeatedly and narrowing in on the highest quality that still fits the limit. Quality is lowered first, and resolution only afterwards if quality alone cannot reach the target, because a slightly softer full-size photo is more useful than a sharp thumbnail. The search runs locally, so no version of the file is uploaded during it.
At a glance
| Accepts | JPG, PNG, WebP, GIF, BMP |
|---|---|
| Produces | JPEG or WebP, under the size you chose |
| Processing | In your browser |
| Price | Free, no limits |
| Account | Not required |
Most compression tools give you a quality slider and leave you to guess. That is the wrong shape for the actual problem, which is almost always a hard limit set by someone else: a job application that will not take a photo over 200 KB, a forum avatar capped at 100 KB, a government form that rejects anything above 500 KB.
This works backwards from the limit instead. The image is encoded, measured, and encoded again at a different quality, converging on the best result that still fits. If it still will not fit at the lowest quality worth using, the resolution comes down in steps until it does.
How to use it
- 1
Add the image
Drop in a JPG, PNG, WebP or other common image file.
- 2
Choose the limit you have to meet
Pick the size cap, and JPEG or WebP for the output.
- 3
Download the result
The finished size is shown next to the download button, so you can check it before you use it.
Frequently asked questions
Will the result always be under the limit?
Almost always. If even the lowest useful quality at the smallest resolution still overshoots — which takes an unusual image, such as dense noise or a very wide panorama — the closest result is returned rather than an error, and the actual size is shown so you can see the gap.
Why is there no PNG option?
A PNG is lossless, so its size follows from the picture itself rather than from a setting. There is no dial to turn towards a target, which is why only the lossy formats are offered here.
Does it change the dimensions?
Only if it has to. Quality is reduced first, and the pixel size is left alone unless the target cannot be met any other way — at which point the width and height come down in steps of about 25%.
Is 200 KB the same as 200,000 bytes?
No. KB here means 1024 bytes, the same unit your operating system uses when it reports a file size, so the number matches what you will see in the file manager.