How to compress an image to a file size

Use this when a form rejects a photo for being too large. You set the target in KB. This is different from Resize image, which changes dimensions without aiming at a file size.

  1. Open Compress image Add one JPG, PNG, or WebP.
  2. Set the target Enter a size between 10 and 10000 KB. 200 KB is a common starting point for a form upload.
  3. Compress Quality is lowered first. Dimensions shrink only if the file is still over the target.
  4. Read the result The page says whether the JPG landed within the target. If it could not, it shows the smallest result it reached.

The download is a JPG. Transparent pixels are placed on white. A file that is already under the target can be kept at high quality instead of being crushed.

Open the tool