What does the Compress Image to Target Size tool do?
Forms, portals and application sites often demand an image "under 100 KB" or "under 50 KB". This tool takes the guesswork out: give it the target and it finds the highest quality that fits.
It binary-searches the compression quality — and scales dimensions down if quality alone is not enough — until the file fits your target. All of it happens locally in your browser.
How to use the Compress Image to Target Size
- Drop your image onto the tool.
- Enter the target size in KB (for example 100).
- Press Compress — the tool searches for the best quality that fits.
- Download the result and check the final size shown.
Supported formats
- JPG / JPEG
- PNG (output as JPG)
- WebP
Frequently asked questions
How does the tool hit the exact size?
It repeatedly re-encodes the image, halving the quality range each round (binary search) until the output lands just under your target. If even the lowest quality is too big, it scales the image down and tries again.
Why did my PNG come back as a JPG?
PNG is lossless and cannot be forced to an arbitrary size. To hit a target reliably the tool re-encodes to JPG (or WebP), which can trade quality for size.
Will the result be exactly the target size?
It will be as close as possible while staying under the target — for example a 100 KB target typically produces a 90–99 KB file.
Is my photo uploaded?
No. The search runs entirely on your device.