What This Guide Covers

This page answers one question: for this particular picture, which quality setting should I use? It covers photographs, screenshots, product shots and document scans, because they fail in different ways when the setting is too low.

It does not explain the maths inside the format. That is in How JPEG Compression Works. If you want the full delivery checklist, from resizing to caching, read the JPEG Optimization Guide.

The Short Answer

Start higher than you think you need, look at the picture at full size, then step down until you would notice a change. The setting that works is different for every kind of image, and it is usually higher for text than for a landscape.

Setting by Kind of Image

Kind of imageModeWhat to check
Photograph, peopleLossyFaces and skin first, then hair edges and eyes
Landscape or flat skyLossyBlocky squares in smooth areas, banding in gradients
Screenshot or text in an imagePNG, not JPEGText turns fuzzy around the edges in JPEG even at high settings
Product photo on plain backgroundLossy, higher endThe edge of the product against the background
Document scanLossy, higher endSmall print, and thin rules in tables

The Custom fields in the tool, which would let you aim at a target size, are sent to the backend but not applied reliably yet. Until that is fixed, use Lossless or Lossy and judge the result by eye.

Where JPEG Shows Damage First

JPEG works on blocks of pixels and then throws away fine detail inside each block. The places that show that first are predictable: smooth skies turn into faint squares, sharp edges pick up a soft halo, and small text loses its corners.

That is why the same setting can look fine on one photo and wrong on the next. A busy street scene hides the loss in the detail. A plain wall does not hide anything.

Worked Example

Take a photo you care about and run it through the JPEG compressor three times at different settings. Open all three results at 100 percent and switch between them and the original. Write down the first one where you see a change. That number is your setting for this kind of picture, and you can reuse it next time.

Measured numbers for file size are not given here, because the result depends on the image itself. The tool shows the before and after size for your own file, which is the number that matters.

Mistakes That Cost You

  • Compressing a JPEG that was already compressed. Each pass loses a little more, so go back to the original if you still have it.
  • Using JPEG for a screenshot or a logo. Use PNG instead, which keeps sharp edges and clean text.
  • Judging the result at the wrong size. A file that looks fine in a thumbnail can look wrong at 100 percent.
  • Compressing a large image instead of resizing it first. Fewer pixels often matters more than a lower setting.

Next Steps

Ready to try a setting on your own file? Open the free JPEG compressor. To learn why the format loses detail at all, read How JPEG Compression Works. To judge how much loss is acceptable, read Compress JPEG Without Losing Quality.