Resize to KB
Compress a JPG or PNG to a target file size — 20 KB, 50 KB, 200 KB or your own number. Files never leave your device.
Click or drag images here
JPG, PNG, WebP, BMP, GIF or AVIF · multiple files supported · output is JPG
Everything runs on your device — there is no server, no account and no upload. Nothing is stored after you close the page.
How the target size is hit
Compressing to a number of kilobytes is a quality trade-off, not a single setting. The tool starts from your image at its current pixel dimensions and searches for the highest JPEG quality that still lands at or just under your target: it tests a quality in the middle, keeps it if the file fits, and narrows towards the best fit in a handful of steps. You then get the file that fits, plus the quality it used, so the trade-off is visible rather than hidden.
- Target size — pick a preset such as 20 KB, 50 KB or 200 KB, or enter your own number.
- Longest edge — optionally cap the pixel dimensions. Shrinking the image gives the quality search more room, so very small targets become reachable.
- Honest floor — if even the lowest quality cannot reach the target, the tool says so and gives you the smallest file it could make, instead of claiming success.
When you need a specific KB
Many forms will not accept an image above a fixed size — job portals, government and visa uploads, and email attachments all commonly cap a file at a set number of kilobytes. Rather than guess at a quality slider, set the number the form asks for and let the tool find the quality that fits. If you also need to change the pixel dimensions on their own, the image resizer does that without targeting a size, and the image compressor offers the same target-size idea with its own controls. To change a file’s format rather than its size, use the WebP to JPG converter, and to prepare an official photo see the photo size chart and the passport photo checker.
Frequently asked questions
How do I resize an image to a specific KB?
Pick a target such as 20 KB, 50 KB or 200 KB (or type your own), drop your image in, and download the compressed JPG. The tool searches for the best JPEG quality that lands at or just under your target, all in your browser.
Does compressing to a size lower the quality?
Yes. Hitting a small file size is done by lowering JPEG quality, and optionally by shrinking the pixel dimensions. The tool shows the quality it used, so you can see the trade-off.
Are my images uploaded to a server?
No. The whole process runs on your device in the browser. Your files are never uploaded and nothing is stored after you close the page.
What if my image cannot reach the target size?
If even the lowest quality overshoots, the tool returns the smallest file it can and tells you it hit this image’s limit rather than claiming the target was met. Lowering the longest-edge limit can help some images go smaller.
Which formats can I compress?
Any image your browser can open, typically JPG, PNG, WebP, BMP, GIF and AVIF. The result is a JPG. HEIC files from some phones are not supported by browsers and should be converted first.
Why would I need a specific KB size?
Many upload forms, visa and job portals and email systems cap a file at a set number of kilobytes. Compressing to that number keeps the image acceptable without you guessing at quality settings.