Compress an image to an exact size in KB

Pick a photo, type the size the form wants, and download a JPG that is just under it. It works on your phone or laptop, and the photo never leaves your device.

Add a photo

Drop it here, paste it, or choose a file.Choose from your gallery or take one now.

JPG, PNG, WebP, HEIC (iPhone), GIF, BMP, AVIF

Your photo stays on this device. Nothing is uploaded.

We aim just under your limit and measure the real file.

Dimensions

How it works

Most forms reject files that are even slightly too big. Guessing with a "quality" slider wastes time, so this tool does the guessing for you. It saves your photo at a few different quality levels, measures each real file, and keeps the one that is closest to your limit without going over.

If even the lowest sensible quality is still too big, it reduces the width and height a little and tries again. A slightly smaller, clear photo nearly always looks better than a full-size, blotchy one.

Tips for small limits like 20 KB

  • Crop to just what is needed. Less area means more detail where it matters.
  • A plain, even background compresses much better than a busy one.
  • Good daylight helps. Grainy indoor photos need more KB for the same quality.
  • If the form gives exact pixels, such as 200 x 230, set them under Dimensions so the size and shape both match.

KB, kB and KiB

A kilobyte can mean 1000 bytes or 1024 bytes, and portals do not say which they use. We treat your maximum as 1000 bytes per KB and your minimum as 1024 bytes per KB, then keep a small margin. That way the file passes whichever way the portal counts.

Questions people ask

How do I reduce a photo to exactly 50 KB?

Add the photo, type 50 in the size box (or tap 50 KB) and download. The tool tries different JPG quality levels, measures the real file each time, and keeps the best one that is just under 50 KB.

Why is my file 48 KB and not exactly 50 KB?

We stay a little under the limit on purpose. Some portals count 1 KB as 1000 bytes and others as 1024, so a small margin keeps you safe with both.

The form also says "minimum 20 KB". Can I set that?

Yes. Open Advanced and enter the minimum. If a simple image comes out smaller, we can add a blank comment inside the file to reach the minimum without changing the picture.

Is my photo uploaded to a server?

No. Everything happens in your browser on your own device. You can switch on airplane mode after the page loads and it still works.

Will the photo look worse?

Only as much as needed to reach the size. For very small limits we lower the pixel size a little before lowering quality too far, because that usually looks better. You can see the result before downloading.

Related tools