Every image export dialog has it: a slider from 1 to 100, labelled Quality. Most people drag it to a number that feels safe — 90, or 100 if the image matters — and move on.
The number does not mean what it looks like it means. It is not a percentage of the original, and the scale is not linear. Knowing what it actually controls explains why the file size curve behaves so strangely, and why the usual advice lands on 85.
What JPEG does before quality is involved at all
Two things happen to every JPEG regardless of the setting.
Colour is separated from brightness. The image is converted from red/green/blue into one brightness channel and two colour channels. This is done because human vision is far more sensitive to changes in brightness than in colour — and it lets the encoder store the colour channels at reduced resolution, often half. You rarely notice, because your eyes were not resolving that colour detail anyway.
The image is divided into 8 × 8 blocks. Each block is then described not as 64 pixel values but as 64 frequency values: how much of the block is a flat tone, how much is a gentle gradient, how much is fine rapid variation. The same information, arranged so the important parts come first.
This is where quality enters.
What the slider actually controls
Each of those 64 frequency values is divided by a number and rounded to a whole number. The set of divisors is called a quantization table, and the quality slider chooses which table to use.
Rounding is where information is lost — and it is deliberate. A frequency value of 18.7 divided by 16 gives 1.17, which rounds to 1. Multiply back by 16 on decode and you get 16, not 18.7. The difference is gone for good.
A high quality setting means small divisors, so rounding changes little. A low setting means large divisors, so many of the fine-detail values round all the way down to zero — and a long run of zeros compresses to almost nothing, which is where the dramatic size savings come from.
Two consequences follow immediately, and they explain most of what people find confusing.
The number is not a percentage. Quality 50 does not keep half the image. It selects a more aggressive divisor table. There is no meaningful sense in which the output is “50% of” anything.
The scale is not linear. The step from 60 to 70 behaves quite differently from the step from 90 to 100, because the underlying tables do not change in even increments.
Why the size curve is so lopsided
If you export the same photograph at a range of settings, the pattern is consistent: size climbs gently through the middle of the range and then turns sharply upward near the top.
The reason is the zeros. At moderate settings most of the fine-detail coefficients have rounded to zero and cost essentially nothing to store. As quality rises, those values start surviving instead — and each one that survives has to be stored individually. You are spending a lot of bytes to preserve exactly the detail JPEG's own model considers least visible.
This is why the advice converges on 80–85. It sits just below the point where the curve turns, so you get nearly all the visible quality for a fraction of the bytes that the top of the range demands.
Quality 100 is not lossless
This one genuinely surprises people. Setting the slider to 100 does not produce an exact copy of your original.
The colour channels are still stored at reduced resolution. The frequency values are still divided and rounded, just by the smallest divisors available. Quality 100 means minimal loss, not no loss.
If you need an exact copy — a master file, an image you will edit repeatedly, a graphic with hard edges — you need a lossless format. PNG, or WebP in lossless mode. No JPEG setting will do it.
Why re-saving keeps making things worse
Each save runs the whole process again: split into blocks, convert to frequencies, divide, round. The second time, it is operating on an image that already carries the first round's rounding errors — and it rounds those.
Open, crop, save. Open again, adjust, save again. Four or five rounds in and the degradation is clearly visible, particularly as blocky patches in smooth areas such as skies.
The fix is a habit rather than a setting: keep a master in a lossless format and export a JPEG from it each time. Edit the master, never the export.
Where the usual numbers break down
The 80–85 advice assumes a photograph. It does not hold for everything.
Images containing text or sharp graphics. Hard edges are pure high-frequency detail — exactly what the rounding targets first. A screenshot at quality 85 shows visible grey fringing around letters. These images want a higher setting, or better, a different format: PNG or lossless WebP.
Large flat areas of subtle gradient. A clear sky or a studio backdrop can show banding and blockiness at settings that look fine on a busy image, because there is no detail nearby to disguise the block boundaries.
Images that will be processed further. If something downstream will crop, resize or re-encode your file, give it more to work with. Compression applied to compressed input compounds.
Very small images. Thumbnails have few blocks to begin with, so the savings from a low setting are small in absolute terms while the artefacts are proportionally more visible.
Why the same number gives different sizes elsewhere
The quality number is not standardised. It is an index into whichever tables a particular encoder happens to use, and encoders differ. Some also apply extra optimisation passes that reduce size without changing the decoded image at all.
So quality 80 in one program is not guaranteed to match quality 80 in another, and comparing settings between tools is not meaningful. Compare the resulting files.
How to pick, without guessing
Do not reason about it in the abstract — try it on the actual image, since the right answer depends on the content.
- Export at 85.
- Look at it at the size it will be displayed, not zoomed in. An artefact invisible at full width does not matter.
- Check the difficult areas first: smooth gradients, any text, and sharp edges.
- If it looks right, try 75 and compare. Often that is fine too, and noticeably smaller.
- If it looks wrong, the answer may be a different format rather than a higher number.
That last point is the one worth remembering. If you find yourself pushing quality to 95 to stop text smudging, JPEG is the wrong format for that image — no setting fixes a mismatch between the format's assumptions and your content.
You can try a few settings on your own file with the image compressor, which shows the result beside the original so you can judge at actual size, and the PNG to JPG converter if you are deciding whether to move a file to JPEG at all. Both run in your browser, so trying five settings costs five seconds rather than five uploads.






