How to resize an image to a specific KB size

Upload forms often care about file size in kilobytes rather than pixels. Getting under the limit is a trade-off between quality and size, and a small amount of method goes a long way.

Understand what you are changing

File size and image dimensions are related but not the same thing. A photo can be large in pixels and still small in file size if it compresses well.

To hit a target in kilobytes you usually reduce quality first, then dimensions only if compression alone is not enough.

Pick the right target

Check the exact limit your form states. A 20 KB target is very aggressive and will noticeably soften a detailed photo, while 100 KB is generous.

If the form states a size and also dimensions, satisfy the dimensions first and then compress toward the size.

Do the work and check the result

Compress toward your target, then open the downloaded file and confirm both its size and its dimensions.

If it is still over the limit, lower the quality a little and try again, or reduce the dimensions slightly.

Check important results yourself

Guides explain a method, not a guarantee. Confirm anything critical against the original source before you rely on it. More in Help.

Tools used in this guide