Compress Image to Size

Tell it the number the upload form wants — 200 KB, 500 KB — and it searches for the best quality that still fits. Most forms reject files over a limit, and guessing the quality slider until it fits is what people actually do by hand.

+

Drop an image, or click to choose

Processed in your browser — nothing is uploaded

About Compress Image to Size

Compresses to a size: you say "under 200 KB" and it finds the best quality that still fits.

How it differs from the compressor

The compressor gives you a quality slider and lets you watch the file size. Good for "as small as possible" or "I like this look". This one takes a size limit and works backwards — for "the form only accepts files under 200 KB", where quality is not yours to choose.

How it searches

At a fixed set of dimensions it binary-searches the JPEG quality: try the middle, go down if over, up if under; six rounds is fine enough. If even the lowest quality is too big, it shrinks the image by 15% and tries again. After twelve rounds (long edge at about a tenth of the original) it tells you the target is not reachable.

Why not PNG

PNG is lossless, with no quality dial. Shrinking a PNG means reducing colours or dimensions, far worse than JPEG. So only JPEG and WebP are offered.

How far can it go

A 200 KB JPEG is usually indistinguishable on a phone screen and fine for a 6-inch print. Below about 50 KB, skies and flat colour areas start to band and faces lose detail. The line under the slider tells you what quality it actually used.

One note

If the original is already smaller than the target, it says so instead of pretending to have done work.

Frequently asked questions

Why is the result not exactly 200 KB?

Compression is discrete: lower the quality a notch and the size drops; raise it and you are over. You get the highest quality that fits, usually landing at 90–100% of the target.

Even the lowest quality is over the target. What now?

Tick "shrink if needed". It then reduces dimensions as well, and about 70–80% of the original usually gets there. Otherwise raise the target.

Will 200 KB look bad when printed?

Fine for a 6-inch print. For A4 or larger, aim for 500 KB or more.

Why only JPEG and WebP?

PNG is lossless with no quality setting, so it compresses poorly by quality. GIF is worse still.

My original is already smaller than the target. Should I still run it?

No need. It tells you the original is already smaller and does nothing.

Can it compress several images to the same target?

One at a time here. "Batch image compressor" handles many files, though it does not take a size target.

Related tools

Images View all ›