Compress Image to a Size
Say the size it has to fit under — 100 KB, 2 MB — and it searches quality and dimensions for the largest version that gets there.
Processed on your device — no upload
How to compress image to a size
- Choose the photo.
- Type the size it has to fit under — 100 KB, 200 KB, 2 MB.
- Press fit. It tries several settings and keeps the best one that gets there.
How it works
Upload forms give you a number. "Photograph must be under 100 KB." Every compressor gives you a quality slider, which is a different question — so you set it to 60, check, set it to 40, check again, and repeat until something fits.
This does that loop for you. It encodes at high quality first, measures, and narrows in by halving the range each time. If quality alone cannot reach your figure it reduces the dimensions and searches again — because past a point, fewer pixels at decent quality look better than the same pixels at bad quality.
It aims to land just under. If the form allows 100 KB and the search finds a version at 97 KB, that is the answer. Coming back with 30 KB would mean having thrown away three quarters of the detail the form was willing to accept.
Why this is rare. Hitting a specific size means encoding the image ten or more times. That is processing a server pays for on every visit, which is why free tools hand you a slider instead. The work here happens in your browser, on your own processor, so the expensive approach is the one that costs nothing.
The number is decimal. 100 KB means 100,000 bytes, because that is what the form checking your upload almost certainly means. Being cleverer than the form is how you fail the form.
WebP reaches a given size at noticeably better quality than JPEG and is accepted almost everywhere now. If the form insists on a JPEG, use JPEG — but if it does not, WebP will look better at the same limit.
A worked example
A visa application wants a passport photograph under 100 KB, in JPEG. The picture from your phone is 4.2 MB.
Choose it, press 100 KB, press fit. It tries quality 95 — far too big — then quality 30, still too big at this resolution, so it reduces the dimensions and searches quality again at the smaller size. Four more attempts and it settles at 96 KB, 900 pixels tall, quality 78.
The panel shows the original and the result side by side with a wiper, so you can check the face before submitting rather than after being rejected.
If you had asked for 20 KB instead, it would have told you that the smallest it reaches is 34 KB and that going further leaves an image not worth having. That is a more useful answer than a file that meets the number and gets your application returned.
Questions
How do I compress an image to exactly 100 KB?
Type 100 KB and press fit. The tool searches quality settings, and dimensions if it needs to, keeping the largest version that comes in under your figure. You will normally land in the nineties — under the limit and using nearly all of it.
How do I resize an image to 20 KB or 50 KB?
The same way — type the figure. Very small targets usually need the dimensions reduced as well as the quality, which the tool does automatically. Below a certain point it will tell you the target is not reachable rather than hand back something unusable.
Does 100 KB mean 100,000 bytes or 102,400?
100,000. Decimal, because that is what the upload form checking your file almost certainly means. If a form is one of the rare ones using binary units, aiming slightly lower covers it.
Why does it not make the file as small as possible?
Because that would be the wrong answer. If the limit is 200 KB, a 190 KB image is better than a 40 KB one in every way that matters — the point is to fit, not to shrink. The search deliberately keeps the largest result that gets under your number.
JPEG or WebP for a size limit?
WebP, unless the form demands otherwise. At the same file size it holds noticeably more detail, and support is universal in current browsers. Where the destination is a government portal or an older system, JPEG is the safe choice.
Is my photo uploaded?
No. Every attempt is encoded in this tab, which is also why there is no size limit and why the search can afford to run a dozen times. Open the network tab and try it — the photo never appears in a request.
Is Compress Image to a Size free to use online?
Yes — free, with no account, no daily limit and no watermark. It runs online in your browser, and because the work happens on your own device it keeps working offline once the page has loaded.
Related Image tools
Compress Image
Shrink the file, keep the picture
open$termiva convert photo.png --to webpConvert Image
JPG, PNG and WebP, both ways
open$termiva resize photo.jpg --width 1200Resize Image
Set exact pixel dimensions
open$termiva crop photo.jpg --ratio 1:1Crop Image
Cut to a shape or a selection
open