1. Home
  2. Guides
  3. How to Compress Images Without Losing Quality

How to compress images without losing quality

Updated November 10, 2026

A lighter file is not a worse image. With the right order of operations — dimensions, format, then quality — most photos can lose half their weight before anyone notices a difference.

The short answer

"Compressing without losing quality" does not mean the file is untouched: it means the loss stays below what your eye can see, on the screen where the image will be displayed. In practice, three levers do almost all the work, and only one of them is the quality slider.

  • Dimensions first. A photo that is 4000 pixels wide but displayed at 800 pixels is carrying four times more detail than needed. Halving the width divides the number of pixels by four, and the file by roughly the same.
  • Format second. For the same visual result, WebP is typically 25 to 35% lighter than JPG, and AVIF another 20 to 30% lighter than WebP. A format change costs nothing visually when the quality setting is right.
  • Quality last. On a JPG, going from 95 to 80% usually cuts the file in half with no visible difference; going from 80 to 50% starts to show, especially on skin, sky and fine text.

What "quality" actually does

A JPG or WebP encoder does not store every pixel. It describes blocks of pixels with a precision that decreases as the quality setting goes down, and it stores colour at a lower resolution than brightness, because the eye is far more sensitive to brightness than to colour. That is why the same compression that ruins red text on a white background can be invisible on a landscape photo.

PNG works differently: it is lossless, so the quality slider does not apply. A PNG gets smaller when the number of colours is reduced, which is exactly what the PNG compression tools on this site do: a screenshot with 40 colours stored in a palette of 40 colours is a fraction of the size of the same screenshot stored in 16 million colours.

The method that works every time

  1. Resize to the size you display. Use Resize image and set the width to the width of the column where the image appears. For a full-width photo on a website, 1600 pixels is usually plenty; for a card thumbnail, 600.
  2. Pick the format for the content. Photo: WebP, AVIF or JPG. Logo, icon, screenshot with text: PNG, or WebP if transparency is not needed. Animated GIF: WebP.
  3. Start at 80% quality. Then look at the result at 100% zoom, next to the original. The before/after comparison of each tool is made for this.
  4. Go down by 5 or 10 points until you see a difference, then go back up one step. The file you keep is the last one that looks identical.
  5. Keep the original in a folder, and publish only the small version. Compression is one-way: you cannot recover what the encoder discarded.

Settings that match the content

ContentJPGWebPAVIF
Photo for a web page75 to 82%70 to 80%55 to 65%
Product image to zoom85 to 90%80 to 88%65 to 75%
Screenshot, text, logo95% or PNG90% or PNG80% or PNG
Thumbnail, avatar70%65%50%

These are starting points, not rules: a photo of a forest tolerates much more compression than a photo of a face, and a screenshot of a dark interface shows artifacts sooner than a white page.

Signs you have gone too far

  • Blocky areas in smooth gradients, such as a clear sky or a studio background.
  • Coloured halos around dark text on a light background, the classic JPG artifact.
  • Bands instead of a continuous gradient, which appears quickly in AVIF at very low settings.
  • Mushy detail in hair, grass or fabric, the first thing to disappear.

Zoom to 100% and compare the same area of both images. If you cannot tell them apart at that zoom, nobody will at normal size.

When not to compress

Keep the untouched original when the image will be edited again, sent to a printer, or archived. Compression removes detail permanently: every new save of a JPG adds a generation of loss. For a print job, keep a PNG or TIFF master and compress only the web copy.

Keep the original too when the tool you are using asks for a minimum quality, or when a platform will recompress the file anyway: sending a 95% JPG to a platform that re-encodes at 70% gains nothing and loses a generation.

Batch compression

For a gallery or a product catalogue, use Compress image with up to 30 files at once: every image is processed with the same settings and downloaded in a ZIP archive. For a hard limit imposed by a form, use the dedicated targets, such as 100 KB or 500 KB, which search for the best quality that fits instead of asking you to guess.

Tools for this

More guides