Image Compressor: a complete guide
Why compress images at all?
A photo taken on a current phone is commonly between 2 and 8 MB. That is fine for a photo library, but it is far too big for most other places. Website uploads often have a size cap, email services limit how large an attachment can be, and job or exam application forms frequently accept only a few hundred kilobytes. On a website, oversized images are also one of the biggest reasons a page loads slowly, especially for visitors on a phone connection.
Compressing an image makes the file smaller so it uploads faster, loads faster and takes less storage. Done sensibly, the picture still looks the same to the eye. The Image Compressor on this page does it inside your browser, so you can try different settings and see the new size straight away without sending the picture anywhere.
How image compression works
There are two broad kinds of compression. Lossless compression rewrites the file more efficiently but keeps every pixel exactly as it was. Lossy compression throws away detail that the human eye is unlikely to notice, and that is where the big savings come from.
JPG is lossy. It splits the picture into small blocks and stores the smooth parts of each block more coarsely than the sharp edges, and it also stores color with less detail than brightness, because we are less sensitive to small color changes. Lowering the quality slider makes those simplifications stronger. WebP works on a similar idea with a more modern method, which is why a WebP image is usually smaller than a JPG that looks the same. PNG is lossless by nature, so to make a PNG meaningfully smaller this tool reduces the number of different colors in the image, up to a maximum of 256, which is nearly invisible on logos, icons and screenshots.
Quality, dimensions and file size: three different dials
People often mix these up, but they are separate and you can use them together.
- Quality controls how much detail is thrown away inside the picture. Moving from 100 to about 80 usually cuts the file size by more than half with almost no visible change. Below about 60, blocky patches start to appear around edges and in skies.
- Dimensions are the width and height in pixels. A picture that is 4000 pixels wide is displayed at perhaps 800 pixels on a web page, so the extra pixels are wasted. Reducing the dimensions saves far more space than quality alone.
- Target size is the end result you need, such as under 100 KB. The tool searches for the highest quality that fits, and only makes the picture smaller in pixels if no quality setting can reach the target.
Choosing the right format
The best format depends on what is in the picture and where it is going.
- Use JPG for photographs when you need the picture to work everywhere, including older software, email clients and application forms.
- Use WebP for photographs on websites. It is usually 25 to 35 percent smaller than JPG at a similar look, and current browsers all display it.
- Use PNG for logos, icons, screenshots, charts and anything with flat colors, sharp text or transparent areas.
A photograph saved as PNG is almost always much larger than the same photograph as JPG or WebP. If a file is surprisingly big, the format is the first thing to check.
Common mistakes to avoid
- Compressing the same JPG again and again. Each lossy save adds a little more damage. Always compress from the original photo, not from a copy you already compressed.
- Compressing a picture that is already small. If a file is already under your target, saving it again only makes it worse, so this tool keeps your original in that case.
- Using a tiny quality value to reach a size that really needs smaller dimensions. A 12 megapixel photo squeezed into 30 KB by quality alone looks terrible, while the same photo resized and then compressed looks fine.
- Saving screenshots of text as JPG. The blur around letters is easy to see. Use PNG for screenshots.
- Forgetting to keep a copy of the original. Compression cannot be undone, so keep your full-size file somewhere safe.
Where compressed images are useful
Bloggers and shop owners compress product and article images so pages open quickly, which also helps visitors who are on slow connections. Students and job seekers compress scanned documents and photos to fit upload limits on application portals. Anyone sending photos by email or chat compresses them so the message is not rejected or slow to send. Developers and designers compress screenshots and assets before adding them to documentation, presentations or a website.
Because the work is done on your own device, you can compress private pictures such as ID photos, receipts and medical letters without handing them to a third party. The compressed copies also have camera details and GPS location removed, which is helpful when you share a photo publicly.
A quick routine that works well
- Start from the original photo, not a copy that has been shared before.
- Drop it in with the default settings and look at the size shown next to the result.
- If it is still too big, set a target size, or choose a smaller maximum width such as 1600 or 1280 pixels for web use.
- Check the result at normal size before you use it. Zoom in only if the picture will be printed or shown large.
- Download the file, or download several at once as a ZIP.