Language: English | Espana
Donate
Home » Image tools » Compress Image to Target File Size

Compress Image to Target File Size

Reduce an image to a target file size in kilobytes using browser-side PNG, WebP or JPG compression.

How to use this tool

  1. Select an image.
  2. Enter the target size in KB.
  3. Choose WebP, JPG or PNG.
  4. Start compression and download the closest result.

Before and after example

Before

A source image that is larger than the target file size.

After

A compressed download with the closest achievable file size.

Settings explained

Target size is measured in KB. WebP and JPG use quality search. PNG is lossless, so its size cannot always be reduced to an exact target without changing dimensions or format.

Frequently asked questions

Can every image reach the exact target size?

No. The browser finds the closest practical size. Lossless PNG output may remain larger than the target.

Does compression upload my image?

No. Processing is performed locally in your browser.

Related tools

Privacy of your files

Files selected here are processed in your browser and are not uploaded to PNGimg. The result is created locally and downloaded directly to your device. If you close the page, temporary browser memory used by the tool is released. Do not use any online tool for confidential files unless your own security policy allows it.