Most compression advice talks about quality: pick 80 percent, save, move on. That works until a form or upload field states a hard number instead. The file must be under 200 KB, and suddenly a quality percentage tells you nothing. Is 80 percent under the limit? Is 60? You find out by saving and checking, and each attempt is a guess.

There is a calmer way to work. The Image Compressor on Ovatly shows the before and after file sizes live as you move the quality slider, so hitting a target size becomes a short, deliberate loop instead of a lottery. This guide explains that loop, and the format switch that rescues you when quality alone cannot get there.

Contents

  • Quick answer
  • Why a target size is a different problem from good quality
  • The loop: compress, read, adjust
  • The second lever: switching format
  • How to compress to a target size, step by step
  • Worked example: a 3 MB photo and a 200 KB budget
  • Limitations and honest tradeoffs
  • Common mistakes
  • FAQs
  • Conclusion
  • References

Quick answer

Open the Image Compressor, add your image, and set the quality slider near 80 percent. Read the after size beside the preview. If it is still above your target, lower the quality a step and read again; if you overshot and the image looks rougher than needed, raise it a step. There is no target-size box to type into: the loop of compress, read, adjust is the method. If quality would have to fall so low that the image visibly suffers, change format instead, because a PNG screenshot usually shrinks far more as WebP.

Why a target size is a different problem from good quality

Quality is a property of the image. A target size is a property of the form you are submitting to, and it does not care how the photo looks. The two meet awkwardly because no quality setting maps to a fixed file size. The same 80 percent setting can produce 900 KB from a detailed landscape and 90 KB from a plain product shot, because lossy compression saves the most on flat, predictable areas and the least on fine detail and noise.

That is why advice phrased as a quality number fails this job. The workflow has to be built around measuring the file you end up with, not guessing a setting in advance.

The loop: compress, read, adjust

The compressor re-encodes JPG, PNG and WebP files at the quality you choose, and the slider updates the preview and the after size as you move it. That live readout turns target-hunting into three repeatable steps: set a quality, read the size, adjust. Start near 80 percent, the sweet spot for most photos, and walk down in small steps until the readout sits under your target with room to spare.

Two habits make the loop fast. First, aim slightly under the target rather than exactly on it, because a file that reads 199 KB against a 200 KB limit leaves no margin for differences in how sizes are counted. Second, watch the preview at the size the image will really be displayed: quality that looks rough full-screen is often invisible at the small size a form actually shows.

The second lever: switching format

Sometimes the loop runs out of road. A PNG screenshot is the classic case: PNG is lossless, so a screenshot full of text and flat colour can weigh megabytes, and squeezing it harder within PNG gains little. Converting that same screenshot to WebP usually shrinks it dramatically at a quality that still looks clean, because WebP encodes this kind of content efficiently.

The reverse also happens. A photograph already stored as JPG is best kept as JPG and steered with the quality slider; converting it to PNG would make it larger, not smaller. Format only helps when the current format is the wrong one for the content.

How to compress to a target size, step by step

  1. Open the Image Compressor and add your image. Note the before size it shows you.
  2. Set the quality slider near 80 percent and read the after size next to the preview.
  3. If the after size is above your target, lower the quality in small steps, reading the size after each move, until you are comfortably under the limit.
  4. If the size reaches the target only at a quality where the preview looks damaged, stop and switch the output format instead: WebP for screenshots and graphics, JPG for photographs.
  5. Check the preview at the size the image will be used, then download the file and confirm its size before submitting.

Worked example: a 3 MB photo and a 200 KB budget

Take the compressor's reference case: a typical phone photo of 4032 by 3024 px that weighs about 3 MB. A form wants it under 200 KB. At 80 percent quality, a photo like this usually lands in the hundreds of kilobytes as a JPEG, much smaller than 3 MB, but still above a 200 KB budget. So the loop continues: step the quality down toward 70 percent and read again. Somewhere in that range the readout crosses under 200 KB, and you stop there: every extra step costs detail you did not need to spend.

Now the harder variant: a PNG screenshot that weighs 2 MB and needs the same 200 KB. Stepping quality down inside PNG barely moves it, because the format stores every pixel faithfully. Switch the output to WebP and the same screenshot typically falls to a fraction of its PNG size at a quality where the text still looks sharp. Same target, two routes, and the readout tells you which one works within seconds.

Limitations and honest tradeoffs

Compression here is lossy: the download cannot be un-compressed back to the original. Keep the original untouched and treat the compressed version as a copy made for one destination.

The tool works on one image at a time, so a folder of fifty photos is fifty passes through the loop. And compression never changes dimensions: a 4032 px photo compressed to 180 KB is still 4032 px wide. If the destination also limits pixel size, resize first and compress second.

There is also a floor below which no setting helps. A very detailed image forced under a very small target will look visibly degraded at any quality, and the honest options then are a smaller display size, a different format, or accepting the tradeoff.

Common mistakes

  • Guessing a quality number without reading the size. The slider setting is not the result. The after-size readout is.
  • Crushing a PNG screenshot with quality alone. Switch it to WebP and keep the quality, and the text, intact.
  • Compressing the only copy. The original is your source for every future target. Compress a copy.
  • Judging quality at the wrong size. Preview at the size the image will actually be seen, not stretched across your whole screen.

FAQs

Can I type in an exact target size, like 200 KB? No. The compressor has no target-size input. You set a quality, read the resulting file size shown next to the preview, and adjust the quality up or down until the size lands under your target. A few passes of the slider is the normal workflow.

Why does the file size not fall smoothly as I lower quality? Compression is lossy re-encoding, and how much a given image shrinks depends on its content: flat areas compress easily, fine detail and noise resist. The same quality step can halve one photo and barely move another, which is why the after-size readout, not the slider number, is what you steer by.

Should I lower quality or switch format to reach a target? Try quality first. If reaching the target forces quality so low that text or faces start to break up, switch format instead: a PNG screenshot converted to WebP often ends up much smaller at a quality that still looks clean.

Does compressing an image change its dimensions? No. The width and height stay exactly the same; only the encoding changes, which is what makes the file smaller. If a form also demands specific pixel dimensions, resize the image first and compress afterwards.

How low can quality go before the image looks damaged? Around 80 percent is the usual sweet spot where photos shrink a lot and still look clean. Between 60 and 70 percent suits thumbnails and small placements. At 90 percent and above you keep the most detail but save the least. Always judge by the preview at the size the image will actually be seen.

Conclusion

A target file size is reached by measuring, not by guessing: set a quality, read the after size, adjust, and switch format when quality alone would cost too much detail. The Image Compressor puts that readout in front of you as you work, so a 200 KB limit becomes a two-minute job instead of a string of rejected files. And if the image you are shrinking is a screenshot with private details in it, redact it first, as our guide to blurring a screenshot for a tutorial or bug report explains. For more guides in this series, see our Image Tools guides.

References