Converter247

Compress Image to Size

Set a file-size limit for one still image. The tool tests JPEG or WebP encoding at the current dimensions and offers a download when a result fits.

One still JPEG, PNG, or WebP. Up to 20 MiB, 8,192 px per side, and 16 megapixels.

Output settings

1 kB is 1,000 bytes. 1 KiB is 1,024 bytes. Enter a limit up to 20 MiB. Fractional bytes round down.

Select a file to preview it.

Source image

Set a size limit for an attachment

A 200 kB limit allows up to 200,000 bytes. The same number in KiB allows 204,800 bytes. Use the unit requested by the destination.

The browser tests up to 10 quality levels from highest to lowest. The tool measures the encoded file before making it available. If none of the tested outputs fits, increase the limit or resize or crop the image first.

Image dimensions, transparency, and metadata

Output keeps the pixel dimensions reported by the browser. JPEG and WebP use lossy encoding here. JPEG fills transparent areas with white. WebP can retain transparency when supported by the browser. New encodes may omit source metadata and can be larger than the source.

The file is read and encoded in your browser. The tool rejects animated PNG and animated WebP files. Check the exported image before sending it or replacing the original.

Compare PNG, JPEG, and WebP.