AAllMyToolsa pocketful of little tools
KB

Compress image to size

ImagesNo. 16 / 84

Compress a JPEG or PNG to a target size in KB, entirely in your browser. Quality first, then dimensions.

for the form that only accepts files under 200 KB.

work surface

Math, not advice — results are indicative.Read the disclaimer.

most-used utilities

A 200 KB upload

Set 200 KB and let the tool find the quality and dimensions.

An email attachment

Try 500 KB; most inboxes are happier and the photo still looks fine.

A tiny profile photo

Set 50 KB and expect a smaller image; check the preview before using it.

pro tips

Give the largest target the form accepts. A 200 KB limit does not require a 50 KB file.

If the result looks soft, raise the target or crop the image first.

For logos and screenshots, PNG may stay sharper; this tool is for the size-limited cases where JPEG is acceptable.

what it does

Type the maximum file size you need in kilobytes and the page finds a JPEG quality that fits. If even the lowest useful quality is too big, it reduces the dimensions and tries again.

This is the specific problem behind a lot of blurry screenshots: the upload form says "under 200 KB" and the photo is 4 MB. Instead of guessing at a quality slider, you give the target and the tool searches for it.

A 4 MB photo at a 200 KB target usually lands around 1200 to 1600 pixels on the long edge, depending on detail. A 50 KB target will be much smaller. The result panel shows the final dimensions and quality so you know what you traded away.

The output is always JPEG, because that is the format that can hit a size target reliably. A transparent PNG gets a white background. Everything runs locally; the original never leaves your device.

quick answers

Why is the output always JPEG?

JPEG has a quality dial that maps predictably to file size. PNG is lossless, so hitting an exact target would require resizing or converting anyway.

What happens to transparency?

JPEG has no alpha channel, so transparent areas are filled with white.

Can I hit an exact number of kilobytes?

The tool gets under the target, not necessarily to the exact byte. That is what upload limits care about.