Image Compressor

Reduce an image toward a target file size in kilobytes. The tool adjusts compression and, when needed, pixel dimensions to produce a JPG or WebP. It does not upload your image to a processing server.

This free tool requires JavaScript. Enable it in your browser and reload this page.

How to compress an image

  1. Select a JPG, PNG or WebP file under 25 MB.
  2. Enter the maximum file size in KB (1 KB = 1024 bytes).
  3. Choose JPG or WebP and click Compress.
  4. Check the reported dimensions and size, then save.

Choosing a useful file-size target

Use the actual limit specified by the website receiving the image. For example, if a form accepts files up to 100 KB, use a 100 KB target, or leave a small margin if the form defines KB differently. A lower target usually means more visible quality loss.

The output aims to be at or below the target, not exactly equal to it. If the target cannot be met, the closest generated result is shown and clearly marked. Dimensions may change.

Keep important details readable

Before saving a compressed document photo, zoom in and check names, numbers and small text. If the image is too blurry, use a larger target or start with a cleaner source. Keep the original file.

Frequently asked questions

Why did the image dimensions change?

At very small targets, compression quality alone may not be enough. The tool can reduce width and height while keeping the proportions approximately the same.

Can I compress a transparent PNG?

Yes, with WebP if supported by your browser. JPG replaces transparency with white. Animated input is rendered as a still image. Metadata is not intentionally retained.

What if I need exact dimensions?

Use the image resizer first. Compression may subsequently reduce dimensions, so verify the result against both requirements.