MateenLabs No ads · Runs in your browser

Compress Image to a Target Size in KB: 20, 50, 100 or 200 KB

Some forms and sites reject a photo that is over a set size, for example 100 KB. Tell this tool the limit and it searches for the highest JPG or WebP quality that stays under it, and makes the picture smaller in pixels only if quality alone is not enough. If the target cannot be reached it says so and offers the smallest result it found.

  • Free Forever
  • No Login
  • No File Uploads
  • Browser Processing

Drop a photo here

or

JPG, PNG, WebP, GIF, BMP or AVIF. The file stays on your device.

Choose a photo and a target size.

How a size limit is reached, and what it costs

File size for a JPG or WebP depends on two things: how many pixels the picture has, and how hard it is compressed. The tool first tries a high quality. If the result is too large it tests lower qualities by halving the range, a method called a binary search, until it finds the highest quality that still fits under your limit. Searching the quality this way keeps as much of the detail as possible. Only when even a very low quality is too big does it shrink the picture in small steps of about 15 percent and search again.

Be aware of what a small target means. A 20 KB limit on a 12-megapixel photo is a huge reduction, and the picture will need to become much smaller in pixels and noticeably softer. Photos with a lot of fine texture, such as leaves or fabric, compress worse than pictures of plain areas. The page shows the final size, the pixel size, the quality used and how much the picture was scaled, so you can decide whether the result is good enough for the purpose, such as an identity-form upload.

Choose JPG for the widest support. WebP often gives a smaller file at the same look, but some older forms do not accept it, and some browsers cannot create it, in which case the option is switched off with a note. PNG is not offered here, because a PNG has no quality setting to search. A transparent image saved as JPG gets a white background. Because the result is smaller and re-encoded, location and camera details are not carried over to the new file.

  • Targets of 20, 50, 100 and 200 KB, or any size you type.
  • Binary search over quality first, then gentle shrinking only when needed.
  • A clear message and the smallest result when the target cannot be reached.
  • Shows the final size, pixels, quality and scaling used.
  • A Cancel button, because a large photo can take several seconds on a phone.
  • JPG or WebP output; WebP is disabled where the browser cannot create it.

How to use the Compress Image to KB

  1. Press Choose a photo or drop one onto the box.
  2. Press a target such as 100 KB, or type your own number.
  3. Choose JPG or WebP and press Compress.
  4. Check the result figures, then press Download.

Is it private?

The search for a size happens in your browser. The photo is not uploaded, and nothing is stored. The test pictures it creates while searching exist only in memory and are thrown away.

Read our tools privacy policy →

Frequently asked questions

How do I reduce a photo to under 100 KB?

Open the photo, press the 100 KB target and press Compress. The tool finds the best quality that fits, and shrinks the picture a little if it must.

What if it says the target could not be reached?

The picture is too detailed or too big for that limit even after shrinking. Choose a larger target, or crop the photo first so there is less to store, then try again.

Is the size exact?

The result is at or below your target, usually within a few percent of it. It will not go above the number you set unless the target was unreachable and the page says so.

Why did the picture get smaller in pixels?

Lowering quality alone could not reach the size, so the tool reduced the pixel size too. The page shows the percentage so you can judge.

JPG or WebP?

JPG is accepted nearly everywhere. WebP is smaller for the same look, but some websites and older programs do not accept it.

Related tools