Photographic visual for Jpeg Quality And Chroma

Jpeg Quality And Chroma

JPEG quality and chroma, read from real files

Two settings decide most of a JPG's size: the quality number, and how much colour detail is kept. Here is what each one does, measured rather than repeated.

Convert a PNG

The test picture

One picture was drawn for this note, 800 × 400 pixels: a red heading (“Quarterly results”, about 30 px tall) and a two-pixel red rule on white, a line of dark grey body text, and below them a smooth colour gradient with fine grain standing in for a photograph. As a PNG it is 291.6 KB. It was written as JPEG by this site's precision encoder — the same one the converter uses — at four qualities and three samplings.

The second figure in each cell is the colour error on the red strokes: the average difference, in levels out of 255, between the red-difference channel (Cr) of the written file and of the original, over the 2,872 red pixels. Lower is truer red.

Quality4:2:0 · red error4:4:4 · red errorGreyscale (one channel)
6013.4 KB · 25.416.9 KB · 8.810.6 KB
7519.0 KB · 23.224.0 KB · 5.015.8 KB
8629.1 KB · 22.939.2 KB · 2.425.3 KB
9560.2 KB · 22.395.8 KB · 1.454.9 KB

Measured on 31 October 2026. 1 KB is 1,024 bytes.

What the table says

  • Quality is the size dial: from 60 to 95 the 4:2:0 file grows four and a half times, from 13.4 to 60.2 KB.
  • Quality does not rescue thin colour at 4:2:0. The red error stays between 22 and 26 levels at every setting, because the colour was halved before any rounding happened.
  • 4:4:4 costs about a third more bytes at quality 86 (39.2 against 29.1 KB) and cuts the red error almost tenfold, to 2.4 levels.
  • On the gradient half — the photograph stand-in — the eye cannot see the halved colour, which is why cameras and most encoders use 4:2:0.

The rule that follows

For photographs, 4:2:0 at a moderate quality is the right trade. For anything with small coloured text, coloured lines or brand colours along hard edges, ask for 4:4:4 — and expect a larger file, or keep the PNG. The browser's own encoder does not let you choose (see the canvas encoder record); this site's precision encoder does, under Colour sampling in the Quality tab, and reads the sampling back out of the written file either way.

Questions

What does the quality number mean?
It scales a pair of standard tables that decide how coarsely each 8 × 8 block's detail is rounded. 50 uses the tables as published; higher numbers divide them down, lower ones multiply them up. It is a dial, not a percentage of anything, and 100 still rounds.
Why does red text go blurry in a JPG?
Because at 4:2:0 the colour is stored at half width and half height. The brightness of a thin red stroke survives; its redness is averaged with the white around it. Raising the quality does not fix that — the table shows the colour error barely moving from quality 60 to 95. Full-resolution colour (4:4:4) does.
Why does this site default to quality 86?
Most PNGs that arrive here are logos, screenshots and artwork with hard edges, where ringing shows earlier than it does on a photograph. 86 keeps those edges clean at a size still far below the PNG for most photographs; the compress page lets you see six settings side by side on your own picture.
Is a greyscale JPEG just 4:2:0 without colour?
No: it has one channel instead of three. In the table it is the smallest file at every quality — and of course the red is gone.