Image compressor
Compress a JPEG, PNG or WebP image to a maximum file size you choose.
Preview and result
How to compress an image
Choose or drop an image, set a maximum size and unit, pick an output format, and select Compress. Check the actual bytes and preview before downloading.
Example
For a form that accepts up to 100,000 bytes, choose 100 KB. The same number in KiB allows up to 102,400 bytes.
Quality and dimensions
For JPEG and WebP, the encoder can try lower quality up to the selected ceiling. It can try smaller dimensions only when you allow them. Canvas does not expose a PNG quality setting. Try a higher size limit or a lossy format if PNG is too large.
Limits and privacy
Still JPEG, PNG and WebP are supported where the browser can decode and encode them. Inputs are limited to 20 MiB, 16 megapixels and 8,192 px per side. Outputs allow 8 megapixels and 4,096 px per side. Encoding may discard metadata and change colors. The file stays in your browser.