Compress an Image to a Target File Size
Under 200 KB, under 1 MB — whatever the form demands.
Every tool runs entirely in your browser. Your files are never uploaded to a server.
There is no formula from quality setting to file size — it depends on the image. Hitting a target means encoding repeatedly and measuring, keeping the highest quality that fits under the limit.
How to use Compress Image to a Size
- Add your image. Drag it in or click to browse.
- Pick the limit. Match whatever the form demands — 100 KB and 200 KB are the common ones.
- Download. The result is the best quality that fits, not an arbitrary setting.
About compressing an image to a target file size
Compressing to a specific file size is a different problem from compressing generally, and it is one that most tools sidestep by offering a quality slider and leaving you to guess. The reason they do is that no formula exists: the bytes an encoder produces depend on what is in the picture. Fine detail, noise and texture are expensive to store; flat colour and gradients are cheap. The same quality setting applied to a portrait and to a screenshot can differ by more than an order of magnitude, which is why "set quality to 60" is advice that works for one image and not the next. The only honest approach is to encode, measure, and adjust — a binary search over the quality range, keeping the best result that fits. Ten iterations resolve a hundred-point range to within one point, and because each iteration is a full encode, that bound is what stops a large photograph taking noticeably long. What matters more than the search is what you feed it. Dimensions dominate file size, so reaching a small target from a twelve-megapixel original by quality alone forces the encoder into territory where blocking artefacts become obvious. Capping the longest edge first — 1600 pixels is ample for a form that will display the image at a few hundred — reaches the same target at a quality that still looks clean. This is why the resize option defaults to on rather than off, and it is the single most useful thing to understand about hitting an upload limit.
Frequently asked questions
Why can other tools not just set the right quality?
Should I resize as well?
Why is WebP offered?
What if it cannot reach the target?
Why is PNG not an option?
Last updated