Compress an image to a target size in KB

Choose a photo and a size limit. The tool saves a JPEG that is at or under that limit, using the highest quality that fits. Nothing is uploaded.

Compressor

How to use it

  1. Tap Choose a photo and pick the image from your gallery or files.
  2. Check the file name, size and dimensions shown, so you know you picked the right photo.
  3. Pick a limit, or choose Custom and type a number.
  4. Press Compress. The tool tries different quality settings and keeps the best one that fits.
  5. Look at the preview, then tap Download JPEG. On Android Chrome the file usually goes to your Downloads folder.

What “KB” means here

This tool uses 1 KB = 1,024 bytes. So 50 KB means at most 51,200 bytes, and 100 KB means at most 102,400 bytes.

Some websites count 1 KB as 1,000 bytes instead. A file of 50,900 bytes is under 50 KB by the first rule but over it by the second. If you are not sure which rule a form uses, choose a custom limit a little lower. For a 50 KB form limit, 48 KB (49,152 bytes) is under both.

A maximum, not an exact size

The result will be at or below your limit, often a few KB below. The tool does not add empty data to make a file exactly 50 KB. Padding a file only makes it bigger without improving the picture. If a form also has a minimum size, check that the result is above it.

Quality and what you give up

JPEG makes files smaller by throwing away detail that is hard to see. A little of that is invisible. A lot of it causes blocky squares, smeared skin and fuzzy text. The tool tries the highest encoder setting it uses (92%) first and only goes lower when it has to. The result shows the setting it used.

The setting, such as 70%, is the number given to the JPEG encoder. It is not a measurement of how clear the picture is, and it does not promise that text or faces stay readable. The same setting can look fine on one photo and poor on another.

With Allow smaller dimensions off, the width and height stay the same and only the setting is lowered, as far as 10% if needed. With it on, the tool makes the picture smaller instead of going below a 70% setting. That works for most photos, but not always: if even the smallest size the tool allows (32 px on the shortest side) does not fit at 70%, the setting goes lower. The result always says which happened.

Neither choice is always better. A smaller picture avoids blocky squares, but it has fewer pixels, so it looks softer when you zoom in, and small text can become unreadable. A full-size picture at a low setting keeps more pixels but can look blocky. For a photo of a document with small writing, try both and compare. The result shows the original and the new file side by side at the same size, with their real pixels and bytes. The original is a scaled preview of at most 1,600 px, so for the final check open your original file and the downloaded JPEG in your gallery or file viewer and zoom in on faces and text.

Very small limits on large, detailed photos can be impossible with the dimensions kept. Then you can allow smaller dimensions, or choose a larger limit if the form allows it.

Photos with fine texture, like grass, gravel or low-light noise, need more bytes than plain backgrounds. Cropping away what you do not need gives the tool fewer pixels to store, so it can keep higher quality.

Transparent images

PNG and WebP images can have see-through areas, such as a signature on a transparent background. JPEG cannot store transparency. The tool fills those areas with white, and tells you when your image has any.

Limits and known issues

  • Input: JPEG, PNG or WebP only, up to 25 MB, 40 megapixels and 12,000 px on the longest side. Larger images can crash a phone browser, so they are refused with a message.
  • Output: always JPEG. If a form needs PNG, this tool is not the right one.
  • Photo details stored inside the file, such as camera model, date and location, are not copied into the new JPEG.
  • The tool tries at most 40 compressions per run, so it always finishes.
  • Animated WebP images are saved as a single still frame.
  • It was tested in Chromium on a computer, at phone and desktop widths. It was not tested on every phone or browser.

For help choosing sizes, read image dimensions versus file size or how to reduce photo size on Android.