How to hit an exact JPG size

A form says 100 KB. Your photo is 4.2 MB. The useful question is not how to compress it, but how to land under the limit while keeping the face recognisable — and that is a different technique.

Why quality sliders do not solve this

A quality slider is a guess. You set 70, check the size, set 60, check again. Most tools make you repeat that by hand, and the relationship between quality and bytes is not linear: dropping from 90 to 80 might halve the file, while 60 to 50 barely moves it.

A size-targeted compressor works the other way round. You give it the number, and it searches for the quality — and, when quality alone is not enough, the pixel dimensions — that land under it.

Compress to a target

  1. Open Compress image to KB.
  2. Drop the photo and type the limit, for example 100.
  3. Convert and check the reported size. The result is always at or under the target.

If the photo is far too large for the target — a 12 MP image squeezed into 20 KB — the tool also reduces dimensions, because otherwise the only way to hit 20 KB is to destroy the image with compression artefacts.

What each limit really allows

TargetWhat still looks fineWhere it stops working
20–50 KBA passport-style headshot at 300×400 pxAny full-page document scan; text turns to mud
100 KBA 1000×1000 px photo for a formGroup photos where faces are small
200 KBA 1600 px wide photo, good for print at 6×4Large prints above A5
1 MBAlmost anything a web page needsNothing except archival use

When it still looks bad

Reduce the resolution before compressing. A sharp 800 px photo at quality 75 looks better than a smeared 3000 px photo at quality 20 that happens to weigh the same. The resizer does the first step, and the exam and passport tools do both together with the correct pixel dimensions.

Do not convert to PNG to save space

PNG is lossless, which means it is almost always larger than the JPG you started with. For photographs, JPG or WebP are the small formats; PNG is the one you choose when size does not matter.

Compress a photo to an exact size

Open Compress JPG

All guides