How to compress an image
- Choose one or more photos: JPG, PNG, WebP, HEIC (iPhone), AVIF, GIF, BMP or TIFF.
- Pick a size such as 50 KB or 200 KB, or switch to Quality and use the slider.
- Leave the output format on Same as original, or choose JPG, WebP or PNG.
- Click Compress, compare the result with the original using the slider, and download it, or download all as a ZIP.
How it works
For JPG and WebP, the tool tries a quality level, checks the file size, and narrows in on the highest quality, up to 95%, that still fits your target. If the picture doesn't fit even at 30% quality, it is made smaller in pixels until it fits at a better quality (40% or more). Turn that option off to keep the pixel size; the quality can then go down to 5%. For PNG the tool reduces the number of colours, from 256 down to as few as 8, and mixes neighbouring colours (dithering) so gradients don't turn into bands. A 50 KB target means at most 50,000 bytes, so the file passes whether a site counts 1 KB as 1,000 or 1,024 bytes.
A photo that is already under your target is saved at the best quality that is still smaller than the original. If it can't get smaller without visible loss, the tool tells you and keeps your original.
Example: a 12-megapixel photo and a 100 KB limit
A 4032 × 3024 phone photo has 12.2 million pixels, while 100 KB is about 100,000 bytes: less than one byte for every hundred pixels. A JPG can't get that small at a readable quality, so the tool keeps the quality at 40% or more and reduces the pixel size until the file fits, then shows the new size in pixels and KB. Fewer pixels is the real fix for very small targets. For exact dimensions instead, use the Image resizer first.
Tips
- Upload forms usually want JPG. WebP is smaller and fine for websites and email.
- Phone photos are turned upright using their rotation data. Animated GIFs and WebPs keep only their first frame.
- Need a minimum size too, like 20–50 KB? Use Increase image size in KB. For a PDF, use Compress PDF to size.
