How to compress images without losing quality

Compressing an image does not have to mean a worse image. Most of the size in a photo is detail nobody can see — and when you remove the right parts, in the right order, a photo can shrink several times over and still look exactly the same.

What "losing quality" actually means

Three kinds of loss, not one

Quality loss is not one thing. A photo can lose quality in three different ways, and only one of them is what people usually picture. The first is re-encoding: every time a JPG is saved again, the format discards a little more fine detail, which is why a photo saved ten times looks worse than the same photo saved once. The second is downscaling: removing pixels, which only matters if the image is later shown larger than its new size. The third is format mismatch: saving a photo as PNG, or a crisp screenshot as JPG, which can make the file bigger and the picture worse at the same time.

Done once and gently, loss is invisible

The important part is that the first two kinds of loss are mostly invisible when they are done once, gently. A phone photo saved at 80% quality looks the same as the original on any normal screen — the detail that was discarded was detail the screen could not show anyway. Quality only visibly suffers when compression is pushed too far, repeated on an already-compressed copy, or applied to the wrong kind of image. That is why the method matters more than the tool.

The three levers: dimensions, format, quality

Dimensions are the biggest lever

Every image compressor works with the same three levers, and the order you pull them in decides the result. Dimensions are the biggest lever: a 4000-pixel-wide phone photo shown at 1200 pixels does not need the extra 2800 pixels, and removing them can cut the file to a quarter of its size with no visible change at all. Format is the second lever: WebP usually beats JPG at the same quality, and PNG is the right choice only for images with large flat areas or transparency. Quality is the third lever: the slider that trades fine detail for file size, where 75–85% is the sweet spot for photographs.

The slider first is backwards

Most people reach for the quality slider first, because it is the most visible control. That is backwards. Start with dimensions — shrink the image to the size it will actually be shown at — then pick the right format, and only then touch the quality slider. Done in that order, the slider barely has to move, and the photo keeps its sharpness. Our guide How to Resize an Image Without Losing Quality explains the downscaling half of this in detail, including the sizes each platform expects.

The method that keeps photos sharp

  1. Keep the original untouched. Always compress a copy. If the result ever looks wrong, you can start again from the original instead of compressing an already-compressed file, which is how quality quietly dies.
  2. Resize to the display size first. If the photo will be shown at 1200 pixels wide, resize it to 1200 pixels before anything else. Use our Resize Image tool for an exact size, or set a maximum dimension in the compressor itself.
  3. Pick the right format. WebP for photos on the web, JPG for photos going to forms and email, PNG only for screenshots, logos and anything with transparency. Never save a photograph as PNG just because it sounds lossless — the file will be several megabytes for no visible gain.
  4. Compress at 75–85% quality. Use our Compress Image tool, watch the live preview while you drag the slider, and stop at the point where the image still looks clean. The tool runs in your browser, so the photo never leaves your device.
  5. Check the result at full zoom before you send it. Open the compressed image and zoom to 100% on the smallest text and the finest detail, like hair or leaves. If it reads cleanly, you are done. If it looks soft, go back to the original and compress once, gently, instead of compressing the compressed copy again.

If a form demands an exact size rather than just a smaller file — 20KB, 200KB or 1MB — the same method applies, with one extra pass at the end. Our guide How to Compress an Image to Exactly 20KB, 200KB or 1MB shows how to hit the target: dimensions first, then quality, then format, checking the live size readout until the file fits.

When compression is invisible — and when it is not

Compression is effectively invisible on ordinary photographs at normal viewing sizes: holiday photos, product shots, portraits and landscapes all survive 80% quality without anyone noticing. It is also invisible when the image is being shown smaller than its original size, because the screen itself throws away the extra detail first. That covers almost everything people compress for the web, email and forms.

It is visible in three cases, and knowing them saves you from blaming the tool. The first is text and fine lines: screenshots, charts and scanned documents go soft quickly at low quality, so keep those as PNG or use a higher quality setting. The second is smooth gradients, like a clear sky, where aggressive compression leaves visible bands. The third is repeated compression: a photo that has already been compressed by WhatsApp or a social network has little detail left to spare, so compressing it again shows artefacts fast. In all three cases the fix is the same — go back to the original, use a gentler setting, and compress once.

Mistakes that quietly ruin photos

The most common mistake is compressing a copy of a copy. Every re-encode discards a little more, so a photo that passes through three apps and two compressors can end up visibly worse than the same photo compressed once from the original — even at the same quality setting. Always work from the original file.

The second mistake is choosing the format by habit instead of by content. Saving a photo as PNG wastes megabytes; saving a screenshot as JPG blurs its text. The third is compressing for a size nobody asked for: shrinking a photo to 100 KB when it will be printed, or to 2000 pixels wide when it will only ever be a 300-pixel thumbnail. Decide where the image will be seen first — print, screen, or a form with a size limit — and only then choose the size and quality. A photo compressed for its real destination looks better and loads faster than one compressed to an arbitrary number.

Related guides

Questions people ask

Can you compress an image with zero quality loss?

Only with a lossless format. PNG and lossless WebP keep every pixel exactly, but they save little on photographs — a photo saved as PNG is usually several megabytes. JPG and lossy WebP always discard a little detail, yet at 75–85% quality the loss is not visible in normal viewing, and the file becomes several times smaller. For photos, "no visible loss" is the honest goal; mathematically zero loss is only possible with a lossless format.

What quality setting should I use when compressing a photo?

For photographs, 75–85% is the sweet spot. Most screens cannot show the difference between a photo at full quality and the same photo at 80%, but the file at 80% can be several times smaller. Go lower only when a form forces a small target size, and check the result at full zoom before you send it.

Does resizing an image reduce quality?

Downscaling to the size the image will actually be shown at is usually invisible — a 4000-pixel photo shown at 1200 pixels does not need the extra pixels, and removing them saves most of the file. Upscaling is what hurts: enlarging a small image invents pixels that were never there, so it always looks soft. Resize down to the display size first, then compress.

Why did my image get bigger after compressing?

Usually the format changed in the wrong direction. A flat graphic with few colours — a logo, a screenshot, a chart — compresses best as PNG, and saving it as JPG can make it bigger and blurrier at the same time. A photograph does the opposite: saving it as PNG keeps every pixel and produces a huge file. Match the format to the content, and check the before-and-after sizes before you send anything.