Skip to content

Chroma subsampling

How JPEG and other formats shrink files by storing less color detail than brightness detail.

On this page

Definition

Chroma subsampling reduces file size by storing color (chroma) information at lower resolution than brightness (luma) information. The human eye is more sensitive to brightness detail than color detail, so discarding color data is rarely noticed. Notation like 4:4:4, 4:2:2 and 4:2:0 describes how many chroma samples are kept per block of pixels.

In practice

4:2:0 is the default for most web JPEGs and halves the color data — usually invisible on photographs. 4:4:4 keeps full color resolution and matters for images with saturated hard edges: graphics, text, screenshots and product shots with strong color boundaries. If you see color bleeding on a compressed screenshot, that's chroma subsampling.

Why the eye tolerates it

The technique relies on a genuine property of human vision rather than a convenient approximation, which is why it has survived in every major format since the late 1980s.

Your retina contains far more rods, which detect brightness, than cones, which detect colour. Brightness detail is therefore resolved at much higher spatial resolution than colour detail. Present a fine alternating pattern of light and dark and you see it clearly; present the same pattern at full brightness but alternating red and green, and from a normal viewing distance it blurs into a single muddy tone.

Subsampling exploits exactly that limit. It throws away colour resolution you were never going to perceive, while keeping all the brightness resolution you would notice immediately.

When it becomes visible

The failure mode is predictable, and you have almost certainly seen it without knowing the cause.

Red text on a white background is the classic case. Text is fine, high-contrast detail; when colour resolution is halved, red glyph edges pick up grey and pink fringing. This is why screenshots of text should never be JPEG — use PNG or WebP lossless instead.

Saturated graphics and flat colour blocks suffer because they have sharp colour boundaries with little brightness variation. A chart with a bright red bar beside a bright blue bar is asking for colour bleeding.

Photographs are almost immune. Natural scenes have gradual colour transitions and rarely place two fully saturated complementary colours edge to edge, which is why 4:2:0 is a safe default at normal viewing sizes.

The practical rule: if an image contains text, UI, or hard-edged saturated colour, choose a format without chroma subsampling — or set 4:4:4 if your encoder offers it. If it is a photograph, leave the default alone. Note that AVIF and WebP handle colour differently again, so a screenshot that bleeds as JPEG may be perfectly clean as WebP lossless.

Compress your images now — free and private

Process up to 200 images locally. Choose a format, compare the results and download a ZIP.

Open the compressor
100% private No signup

Frequently asked questions

It's a chroma subsampling mode: for every 4-pixel-by-2-pixel block, 2 chroma samples are kept in the horizontal direction and 0 additional vertical resolution — effectively halving color resolution in both directions. It's the default for most web JPEGs and is invisible on most photographs.

4:4:4 keeps full color resolution; 4:2:0 halves it horizontally and vertically. 4:2:0 produces smaller files and is fine for photographs. Use 4:4:4 for graphics, text and screenshots where color bleeding along hard edges would be visible.

It reduces color detail, which the human eye notices far less than brightness detail. On photographs at normal viewing size, 4:2:0 is effectively invisible. On saturated hard edges — text, screenshots, flat graphics — it can cause visible color bleeding, which is why those images are better served as PNG or WebP.

Red text on white is the worst case for chroma subsampling. Text is fine high-contrast detail, and 4:2:0 halves the color resolution, so red glyph edges pick up grey and pink fringing. Screenshots containing text should be saved as PNG or WebP lossless, not JPEG.

Both handle color more flexibly than JPEG and generally preserve sharp color edges better at equivalent file sizes. AVIF in particular performs well on saturated graphics. If a screenshot bleeds as JPEG but you want a compressed format, try WebP lossless or AVIF before assuming the problem is unavoidable.