Skip to main content

Compress image to any size in KB

Type the limit from your form, such as 20 KB, 50 KB or 200 KB, and get the sharpest photo that fits under it. Works with JPG, PNG and WebP, right in your browser.

  • Exact KB target
  • Photos stay on your device
  • Up to 30 photos with ZIP
  • Free, no watermark
Compress by
KB
We lower the quality first, then the dimensions, until the file fits.
Original photo
New photo

How to reduce image size in KB

Add your photo

Drop it in the box or tap Choose photos. On a phone you can pick it straight from your gallery.

Type the size limit

Enter the number your form gives, or tap 20, 50, 100, 200 or 500 KB. The result updates as soon as you change it.

Check and download

A green tag means the file is under your limit. Compare it with the original, then download it, or save all of them as a ZIP.

How big a photo fits in each size

We saved five real photos (a portrait, a cat, coffee, a street scene and a rocket launch) at different pixel sizes with JPG quality 75, the level most people cannot tell apart from the original on a phone screen, and measured each file.

Longest sideExample size (4:3)Typical file sizeRange in our test
300 px300 × 225 pxabout 14 KB8 to 18 KB
400 px400 × 300 pxabout 20 KB13 to 28 KB
500 px500 × 375 pxabout 31 KB20 to 41 KB
600 px600 × 450 pxabout 46 KB27 to 55 KB

In practice, a 20 KB limit fits a photo of roughly 350 to 450 px on its longest side, 50 KB fits about 600 px, and 100 KB fits around 850 to 900 px. Busy photos with leaves, gravel or loose hair need more bytes than a plain portrait against a smooth wall, which is why the range is so wide. You do not have to work this out yourself: the tool finds the size for each photo, and the table simply tells you what to expect.

What decides the size of a photo in KB

Pixels, detail and quality

Three things set the file size. The first is the number of pixels: a 4000 × 3000 px phone photo has 12 million of them, while a 400 × 300 px copy has 120,000, a hundred times fewer. The second is how much detail the picture holds, since fine texture costs more to store than a clear sky. The third is the quality setting, which decides how much of that detail JPG and WebP are allowed to simplify.

KB and pixels are different limits

Many forms ask for both, for example “200 × 230 pixels and under 50 KB”. Pixels describe the width and height of the picture. KB describes how much space the file takes. Fix the pixel size first with the image resizer, then bring the file under the KB limit here. Doing it in that order keeps the most detail.

How the tool reaches your limit

It starts at high quality and checks the size. If the file is too big, it searches for the highest quality that still fits. If that would mean a quality so low that blocks and smudges start to show, it shrinks the pixel size a little instead and tries again. The new pixel size is always shown next to the result, so nothing changes without you seeing it.

Is 1 KB 1,000 or 1,024 bytes?

Both are in use. Windows File Explorer counts 1 KB as 1,024 bytes, and this tool does the same. macOS Finder and many websites count 1 KB as 1,000 bytes. A file Windows calls 50 KB is 51,200 bytes, which a strict 50,000-byte check would reject. Aiming a few KB under the limit avoids the problem.

Which format to choose for a size limit

  • JPG gives the smallest files for photos and is accepted by almost every form.
  • PNG suits signatures and scanned text. Below quality 100 the tool reduces the number of colors, which keeps edges crisp in a small file.
  • WebP is about a quarter smaller than JPG at the same quality, but many government and exam portals do not accept it yet.

What to enter for common limits

These numbers stay under the limit whether a website counts 1 KB as 1,000 or 1,024 bytes.

Your form saysEnter in the toolWhy
Maximum 20 KB19 KB19 × 1,024 = 19,456 bytes, under 20,000
Maximum 50 KB48 KB49,152 bytes, under 50,000
Maximum 100 KB97 KB99,328 bytes, under 100,000
Maximum 200 KB195 KB199,680 bytes, under 200,000
Maximum 1 MB970 KB993,280 bytes, under 1,000,000
Between 10 KB and 20 KB19 KBThen check that the result is above 10 KB

If the result comes out below a minimum, choose a larger longest side or a higher target and run it again. Very small or very plain images sometimes cannot reach a minimum without adding pixels.

Questions about compressing to KB

Add the photo, choose Target size and type the limit in KB. The tool finds the highest quality that fits under that number and shows the new size straight away. Download it when the tag turns green.

The tool makes it as close to 20 KB as it can while staying under it, usually within one or two KB. Forms only check that a file is not larger than the limit, so slightly under is what you want.

A large photo has to lose a lot of detail to fit in 20 KB. Crop away empty background and choose a smaller longest side, such as 600 or 800 px. Fewer pixels at good quality look sharper than many pixels at very low quality.

Only if quality alone cannot reach your limit. The new width and height are shown next to every result. To control them yourself, pick a value under Longest side before you compress.

This tool uses 1,024 bytes, the same as Windows. Some websites use 1,000. Enter a slightly lower number, such as 48 KB for a 50 KB limit, and the file will pass either way.

Yes. The tool first saves the PNG with fewer colors, which keeps transparency and sharp edges, and only reduces the pixel size if that is not enough. For photos, switching Save as to JPG usually gives a much smaller file.

Yes. Add up to 30 photos, each up to 25 MB. They all get the same limit, and you can download them together in one ZIP file.

Yes. Your photos are processed by your own browser and are never uploaded to a server, so nobody else sees them. Closing the page clears them.