What JPEG quality should you use? The settings that actually work

Almost every compression guide answers this with a single number and no explanation. Here is the rule, the reasoning behind it, what changes per format, and the exact points where quality stops being worth the bytes.

The rule

Use quality 75–85 for almost everything. Within that band, the file size is still falling sharply while the visible quality cost is essentially nil on any normal display. Below 60 you are trading visible damage for bytes; above 90 you are paying for detail no screen will show.

If you want a single number to type: 80. It is the most defensible default across JPEG, WebP and AVIF, and it is the point most professional pipelines converge on.

If you want the nuance, it is genuinely format-dependent and content-dependent — the rest of this page is the nuance, expressed as rules rather than adjectives.

Why the curve bends — the one thing to understand

Compression quality and file size do not scale together. File size falls roughly logarithmically as you lower quality, while perceptual error grows slowly and then suddenly. That mismatch is the whole game.

In practice this creates three zones:

Above ~90 — the waste zone. Files get noticeably bigger and nothing looks better. A JPEG at 95 and a JPEG at 100 are indistinguishable; the second can be twice the size. This is where the majority of unoptimized images on the web actually sit.

75 to 88 — the sweet spot. The size curve is still descending fast and the quality cost stays under the threshold of normal perception. Almost every production image belongs here.

Below ~60 — the damage zone. Error climbs steeply. Blocky artifacts appear in smooth gradients (skies, skin, studio backdrops) and along high-contrast edges. Defensible only for backgrounds and thumbnails.

On the demo image used on the home page, this is measurable rather than theoretical: the 189 KB source encodes to 112 KB at q80 (−41%) and 70 KB at q45 (−63%). Moving from q45 to q80 costs 42 KB to remove artifacts that are visible at 100% zoom. That is the tradeoff the whole question is about.

What quality should you actually use?

Drag the slider. The curve is real — anchored to two measured encodes of the photo below.

q80
406288
q10 · smallestq100 · largest
112.1 KB
Output
−41%
Saved
4
Artifacts

The sweet spot

Where almost every production image should sit. The size curve is still falling fast while the quality cost stays imperceptible on a normal display.

Curve anchored to two real encodes — q45 = 69.6 KB, q80 = 112.1 KB against a 189.3 KB source. Values between the anchors are interpolated on the same rate–distortion curve, not invented.

Where artifacts show up first

Quality thresholds are not universal — the same setting that is invisible on one image is obvious on another. Artifacts are a function of detail and smoothness, and they appear earliest in a predictable order:

1. Smooth gradients. Skies, studio backdrops, fog and skin tones. There is no high-frequency detail to hide the error in, so banding and blotching appear immediately. If an image is mostly gradient, be careful below 70.

2. Fine repeating texture. Foliage, hair, fabric weave, brick, gravel. The encoder discards exactly the detail your eye uses to recognise texture, and it does so before it discards anything else.

3. Text and hard edges. Screenshots, charts, diagrams, UI captures. JPEG is structurally the wrong format for these — ringing around glyphs is unavoidable at low quality. Use PNG or WebP-lossless instead.

4. Saturated colour. Highly saturated reds and oranges suffer first because chroma is subsampled. Banding on a sunset is usually chroma, not luma.

The practical consequence: compression tolerance is per-image, not per-site. A quality-80 blanket rule applied to a sky-heavy hero shot and a textured product photo will feel conservative on one and risky on the other.

Resolution matters more than quality

This is the most commonly missed point in the entire discussion. Lowering quality from 95 to 80 might cut 40% of the bytes. Resizing a 4000px image down to the 1600px it is actually displayed at can cut 80% or more — and improve sharpness.

A 4000-pixel photo rendered into a 800-pixel slot is spending bytes on pixels nobody will ever see. Browsers have to download all of them and then discard three quarters of the detail during scaling. That is pure waste, and no quality setting can recover it.

The correct order of operations is therefore:

1. Resize to the largest size it will actually be displayed at (accounting for 2× retina densities — so 1600px for an 800px slot).

2. Choose the right format — AVIF or WebP for photographs, PNG or lossless for UI and text, SVG for logos and icons.

3. Only then tune quality within the bands above.

Doing these out of order is why so many "optimized" sites are still slow. A beautifully-compressed 4000px JPEG is still a slow image.

When to break the rule

Go lower (55–70) for: decorative background images behind text overlays, images displayed below the fold at small sizes, thumbnails and avatars, and photographic textures where the viewer is not inspecting detail. A 24px avatar at quality 90 is a waste of bytes.

Go higher (85–92) for: the hero or LCP image where perceived sharpness drives conversion, product photography where colour accuracy and detail sell the item, anything with fine type, and portfolio or gallery work where the image is the product.

Never go above 92 for web delivery unless you have measured a reason. The file grows measurably and nothing visible changes. If you believe you need quality 100, you are almost certainly compensating for a resolution or format problem upstream.

Go lossless for: images that will be re-edited later, anything with text or line art, and any image that will be re-compressed again downstream. Re-compressing an already-lossy image repeatedly is how sites end up with visible artifacts from a source that looked fine.

Test it on your own image

Generic advice has a ceiling, because the right answer depends on your specific image. The reliable method takes about thirty seconds:

1. Encode at 80. Then encode again at 60.

2. Open both at 100% zoom, side by side, on the display your audience actually uses.

3. Look for banding in gradients and smearing in fine texture.

4. Pick the lowest quality where you cannot see the difference without hunting for it. That is your number, and it will usually be lower than you expected.

You can do this in ImageAlchemy without uploading anything: drop the image, set the quality, and use the before/after comparison slider to inspect the result at full zoom. Because processing is client-side, you can iterate as many times as you like without the image ever leaving your machine.

The short version

Default: quality 80.

By format: JPEG 78–85, WebP 75–82, AVIF 60–75, PNG lossless.

Resize before you compress. It matters more than the quality setting, every time.

Above 90 is almost always waste; below 60 is almost always visible damage.

Both panels of the tradeoff are measurable — use the quality explorer above, or test on your own image. Whatever you do, do not pick 100 "to be safe": that is how a site ends up shipping 400 KB images that could have been 90 KB with no perceptible difference.

Compress your images now — free and private

Drop your files and ImageAlchemy compresses them in your browser. No uploads, no accounts, no limits. Batch process hundreds at once and download a ZIP.

Open the compressor
100% private No signup

Frequently asked questions

Use 78 to 85, with 80 as the safest single default. Within that band the file size is still falling sharply while the visible quality cost stays below the threshold of normal perception. Above 90 the files grow noticeably with no visible gain; below 60 you will see banding in gradients and smearing in fine detail.

Quality 80 for web delivery, essentially always. Quality 100 produces a substantially larger file with no visible difference on a normal display. If an image looks unacceptable at 80, the cause is usually the wrong format (JPEG for text or UI) or excessive resolution, not insufficient quality.

WebP: 75 to 82, since it is more efficient than JPEG at the same visual result. AVIF: 60 to 75 — its quality scale is not calibrated to JPEG's, and AVIF at 65 is often visually equivalent to JPEG at 80 at a smaller size. Setting AVIF to 80 usually leaves real savings unused.

It reduces size logarithmically, not proportionally. On the demo image on this site, a 189 KB source encodes to 112 KB at quality 80 (a 41% reduction) and 70 KB at quality 45 (63%). The jump from 80 to 45 buys another 22 percentage points while introducing artifacts visible at 100% zoom.

Resize first, always. Dropping quality from 95 to 80 might save 40% of the bytes, but resizing a 4000px image to the 1600px it is actually displayed at can save 80% or more while making the image look sharper. A well-compressed oversized image is still a slow image.

PNG is lossless — it has no quality setting, and any tool offering a PNG quality slider is applying lossy preprocessing. Use maximum lossless optimisation instead (OxiPNG and similar tools typically cut 10 to 30% from a naive PNG export). If you need to control quality, use WebP or AVIF rather than PNG.

Two likely causes. First, the format is wrong for the content — JPEG is structurally poor for text, screenshots, logos and line art because ringing artifacts around hard edges are unavoidable; use PNG or lossless WebP instead. Second, you may be re-compressing an already-compressed image, which compounds artifacts. Always start from the highest-quality source you have.