Resize Image to KB
Image ToolsCompress a photo to an exact file size — 20 KB, 50 KB, 100 KB — for any upload form.
Runs entirely in your browser — nothing is uploaded
What people do next
Features
- Set the limit in kilobytes and the tool finds the quality that fits.
- One-click presets for the limits exam and passport portals ask for.
- Optionally cap the dimensions too, for far better quality at tiny sizes.
- Shows the exact final size before you download anything.
- Runs on your device — the photo is never uploaded.
How to use the Resize Image to KB
- 1Upload the photo.
- 2Pick a preset limit, or type your own in KB.
- 3Download the result — it will be at or just under your limit.
Frequently asked questions
How does this hit an exact size when other compressors cannot?
Because it works backwards. There is no formula from quality to file size — it depends entirely on what is in the picture — so the tool encodes the image repeatedly at different quality settings and keeps the best-looking one that still fits under your limit. Most compressors ask for a quality percentage and tell you the size afterwards, which is the same job in the direction nobody needs.
Why does my image look poor at 20 KB?
Because 20 KB is very little data for a large photograph, and all of it is being spent describing millions of pixels crudely. Switch on the dimension cap: at 600 or 800 pixels on the longest side there are far fewer pixels to describe, so each one gets more data and the result looks dramatically better at the same file size. Forms that ask for 20 KB are not expecting a full-resolution photo.
It says it cannot get under my limit. What now?
That means even the lowest quality setting overshoots, which happens with very large or very detailed images. Cap the dimensions, and prefer JPG over PNG — PNG is lossless and has no quality dial to turn, so the only way it gets smaller is fewer pixels.
Should I use JPG, PNG or WEBP?
JPG for photographs and anything a form asks for, because it compresses smoothly to a target. PNG only if you need a transparent background or perfectly sharp text and lines. WEBP compresses better than both but some older upload forms still reject it, so check what the form accepts before choosing it.
Is my photo uploaded anywhere?
No. It is read with the File API and re-encoded on a canvas in your own browser. There is no request carrying the image, which is why this works offline once the page has loaded.