Compress an Image to an Exact Size

Most compressors hand you a quality slider and leave you to guess. This one takes a number: enter the limit the form gave you — 240 KB, 500 KB, whatever it says — and the tool searches for the highest quality and the largest dimensions that still land under it. The search runs on your own device; the image is never uploaded. A quality slider asks you to trade blind. A byte ceiling is the thing the form actually checks.

Type the exact limit your form gave you. The tool searches for the highest quality that still fits under it.

Drop an image here, or click to browse

JPG, PNG, WebP, GIF or BMP · one image at a time

Target size: 200 KB

Your image never leaves your device — all compression happens locally in your browser.

Something wrong with this tool? Tell us and we'll fix it

How to use

  1. Type the exact limit from your form into the target box.
  2. Click the upload area, or drag your image onto it.
  3. The tool compresses, then reports the final size, dimensions and format.
  4. If it fits, download it. If the format matters, check the next step first.

Frequently asked questions

What is the difference between "under 240 KB" and "exactly 240 KB"?
Nothing useful — forms check a ceiling, not a target. Aiming at the ceiling and stopping just under it is what preserves the most quality. The tool does that automatically: it finds the highest quality that still fits, rather than the smallest file it can make.
The result came out as WebP but my form only accepts JPG. What now?
This is the most common way a correctly-sized file still gets rejected. The tool prefers WebP because it is smaller at the same visual quality, so it usually reaches a tight ceiling at better quality than JPEG would. If your form demands JPG, run the result through the image converter and check the size again — JPEG is larger at the same quality, so a file that only just fit as WebP can creep back over the limit.
Which limits do people actually hit?
Common ceilings are 100 KB for older web forms, 240 KB for US visa and Diversity Visa photo uploads, 500 KB for job portals and email attachments, and 2 MB for CMS and forum uploads. Whatever your number is, type it in — the tool is not restricted to a preset list.
Does compressing shrink the pixel dimensions too?
Only if quality alone cannot reach the ceiling. The tool tries quality first and drops dimensions second, and it reports the dimensions it ended up with so you can check them against your form. If your form requires specific pixel dimensions, resize first — see the social image resizer — then compress.
Is my image uploaded anywhere?
No. There is no server step: the browser decodes the image, re-encodes it and holds the result in memory. You can confirm this yourself in the network tab — the only requests are for the page itself.

Related tools