What the Image Compressor does
Photos straight from a phone or camera are often several megabytes each. That is far more than a website, an online form or an email attachment needs. This image compressor makes JPG, PNG and WebP files smaller by re-encoding them at a quality level you choose and, if you want, by reducing their width at the same time. How much you save depends on how the photo was saved before: in our test, phone photos that were already stored at quality 75 hardly shrank at their full size, but became 69 to 74 percent smaller when reduced to 1,280 pixels at the same quality.
You can compress a single picture or a whole batch at once. For every image the tool shows the old size, the new size and how much you saved, so you can decide whether to keep the result or try another setting. If the compressed file would end up larger than your original — which can happen with images that are already well optimized — the tool simply keeps the original instead.
Everything happens inside your browser. Your images are never uploaded, which makes the tool safe for private photos, scanned documents and screenshots that contain personal data, and it also means there is no waiting for an upload or a server queue.
When to use it
Faster websites
Large images are the most common reason pages load slowly. Smaller files improve Core Web Vitals such as Largest Contentful Paint and help both visitors and search rankings.
Email and messengers
Many mail servers reject attachments above 10 to 25 MB. Compressing photos first lets you send more pictures in one message.
Online forms and portals
Job applications, government portals and university uploads often limit files to 1 or 2 MB. Enter the limit as the target size and the tool finds a setting that fits.
Saving storage space
Shrinking an archive of holiday photos or product images can free gigabytes on your phone, laptop or cloud storage.
Tips for the best results
- Start with a quality of 75%. If the file barely gets smaller, the photo was already compressed: reduce the width instead of lowering the quality further.
- Reducing the width saves the most space: a 4000-pixel photo resized to 1600 pixels has about six times fewer pixels to store.
- For websites, choose WebP as the output format. In our test it was 8 to 30% smaller than JPG at the same measured quality, and all modern browsers support it. Many upload forms still accept only JPG or PNG.
- PNG is lossless, so re-saving a PNG as PNG barely helps. Convert screenshots and graphics to WebP, or photos to JPG, for a real reduction.
- Keep your originals. Compression removes detail permanently, so always work on a copy if you might need the full-quality image later.
- Compressed images lose their EXIF metadata, including the GPS location of the photo — useful when you share pictures publicly. HDR data such as an Ultra HDR gain map is removed too, so the result is shown at normal brightness on HDR screens.
How the Image Compressor works
When you add an image, your browser decodes it and draws it on an invisible canvas. If you set a maximum width, the picture is scaled down at this stage using high-quality resampling, and the height is adjusted automatically to keep the proportions.
The canvas is then exported again as JPG or WebP at the quality you selected. Lossy formats like these save space by discarding fine detail and subtle color variation that the human eye hardly notices; the lower the quality value, the more detail is removed and the smaller the file becomes. PNG output is lossless and ignores the quality setting. If you enter a target size, the tool tries several quality levels between 60% and 90% and keeps the highest one that fits; if even 60% is too big, it reduces the dimensions step by step.
Because the work is done by your own device, the speed depends on its processor and memory. Very large files of 50 megapixels or more may take a few seconds on older phones, but nothing ever leaves your device.