Image Tools

How to Compress an Image to Exactly 200KB (or Any Size)

A repeatable way to hit a hard file size limit without wrecking the image, instead of guessing at quality sliders.

Sooner or later a form tells you the file must be under 200 KB, or your portfolio's uploader caps images at 1 MB. Guessing at a quality slider until the number goes green is the usual approach, and it usually ends with an image that is worse than it needed to be.

Why guessing fails

The quality number does not map to a file size. The same quality setting can produce a 90 KB file for one photo and a 400 KB file for the next, because size depends on how much fine detail the image contains. A portrait against a blurred background compresses far better than a photo of gravel.

So the honest way to hit a target is to search: encode, measure, adjust, repeat — and stop at the highest quality that still fits.

What we do instead

Switch the tool above to target file size, enter your limit, and press compress. For each image we:

You see the quality it settled on, so you can judge whether the trade is acceptable. If it landed at q45, the image is genuinely detail-heavy and no tool can do better at that size without resizing.

If the target is unrealistic

There is a floor: past a certain point, JPEG cannot shrink further without visible damage. If your limit is 50 KB for a 12 megapixel photo, the correct fix is to resize, not to compress harder. Photographs for on-screen use rarely need more than about 2000 pixels on the long edge; a 4000-pixel-wide image displayed in a 1200-pixel layout is throwing away three quarters of its pixels before anyone sees it.

A quick rule: decide the largest size it will actually be displayed at, double it for high-density screens, and resize to that before compressing. You will hit almost any file size limit with quality to spare.

Format matters too

If your target is very small and the image has flat colours — a logo, a screenshot, a chart — JPEG is the wrong format. PNG or WebP will beat it at the same visual quality, because JPEG's block structure wastes bits on hard edges. For photographic content, JPEG remains the best choice at these sizes.

Everything above runs in your browser. Nothing is uploaded, and the images stay on your device.

Open the compressor