Free Compress Image to Target Size

Hit an exact file size — compress an image to 100 KB, 50 KB or any target you need.

Loading the tool…

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

  1. Drop your image onto the tool.
  2. Enter the target size in KB (for example 100).
  3. Press Compress — the tool searches for the best quality that fits.
  4. Download the result and check the final size shown.

Supported formats

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.

Need custom software?

BitsSolved builds SaaS products, web applications, mobile apps and business automation.

Talk to BitsSolved