November 17, 2026 · 4 min read

How to compress an image to 100 KB without wrecking it

Every "compress to 100 KB" form asks the same thing, and a quality slider makes you guess. Working backwards from the limit is faster and gives a predictable result.

Upload limits are ceilings, not quotas. A form that says "maximum 100 KB" will accept 96 KB, 80 KB or 40 KB. That single fact is why the target-size approach beats fiddling with a quality slider: you only need to get under the line, and you want the best-looking file that does it.

What "quality" really means in a JPEG

A JPEG encoder splits the image into 8 × 8 blocks and throws away detail the eye is less likely to notice, especially in colour. The quality number (0–100) controls how aggressive that is. At 85–95 the result is usually indistinguishable from the source at normal viewing size; at 40 you start seeing blocking in smooth gradients and mush in fine texture.

The faster method: binary search

Instead of guessing, encode at a few qualities and narrow the range. Eight passes is enough to land within a couple of percent of the best quality that fits: start at 95, if it is over the limit try 50, then 72, then 84, and so on. Each pass takes a fraction of a second for a normal photo, so the whole search finishes in about a second.

When quality alone cannot get there

A 12-megapixel photo of a forest at 20 KB will never look good — there is simply too much detail for the budget. The only honest options are:

  • Raise the target size if the form allows it.
  • Crop to the part that matters, then compress.
  • Downscale the image before encoding (half the width and height is a quarter of the pixels).
  • Accept a softer image and check whether the form actually cares about quality.

Red flag: a tool that promises "100 KB" and silently hands you a 260 KB file. Check the downloaded size before uploading. Ours shows the before/after numbers on screen and tells you when it could not reach the target.

Checklist before you upload

  • The file is actually under the limit (look at the downloaded file, not the preview).
  • The format is what the form asked for — usually JPG, not a PNG renamed to .jpg.
  • The photo is the right way up. Phone photos carry an EXIF orientation tag; a tool that ignores it uploads a sideways face.
  • Transparent PNGs are flattened to white if the form expects a photo, because many portals render transparency as black.

If you are compressing an ID document, the safest route is to keep it on your own machine: browser-based tools never upload the file, so there is no server copy to worry about.

Keep reading