JPEG Chroma Subsampling: 4:4:4 vs 4:2:0 Explained
When saving an image as a JPEG, chroma subsampling is a compression technique that reduces color information to decrease file size without drastically affecting perceived image quality. The primary difference between 4:4:4 and 4:2:0 subsampling lies in how much color data is retained: 4:4:4 preserves complete color fidelity for every single pixel, while 4:2:0 discards three-quarters of the color data by sharing color samples across two-by-two pixel blocks. Understanding this distinction is critical when balancing image quality against storage and bandwidth constraints.
How Chroma Subsampling Works in JPEG
The JPEG format converts standard RGB (Red, Green, Blue) image data into the YCbCr color space. In this space:
- Y (Luma): Represents brightness and detail.
- Cb (Chroma Blue): Represents blue-difference color information.
- Cr (Chroma Red): Represents red-difference color information.
Because the human visual system is far more sensitive to variations in brightness than to subtle variations in color hue and saturation, JPEG encoders can discard chroma information while keeping full luma resolution.
4:4:4 Chroma Subsampling
In a 4:4:4 scheme, no chroma subsampling occurs. For every 4 pixels horizontally across a 2-pixel tall block:
- All 4 pixels receive their own brightness sample.
- All 4 pixels receive their own unique Cb and Cr color samples in both rows.
Key Characteristics of 4:4:4:
- Full Color Resolution: Every pixel has its own distinct color value.
- Sharp Edges: High-contrast color transitions—such as red text on a black background or sharp UI elements—remain crisp and clear.
- Larger File Size: Because no color information is discarded, 4:4:4 produces larger JPEG files compared to subsampled variants at the same quality setting.
- Best Uses: Screenshots, digital art, images containing text, and master copies intended for further editing.
4:2:0 Chroma Subsampling
In a 4:2:0 scheme, color information is heavily compressed. Chroma resolution is halved both horizontally and vertically:
- In the first row of 4 pixels, only 2 chroma samples are recorded.
- In the second row of 4 pixels, no chroma samples are recorded; the row reuses the color data from the row above.
This means a 2x2 grid of four pixels shares a single pair of Cb/Cr color samples, resulting in a 75% reduction in color data compared to 4:4:4.
Key Characteristics of 4:2:0:
- Optimized Compression: Discarding three-quarters of the color data leads to significantly smaller overall file sizes, often reducing file weight by 15% to 30% compared to 4:4:4 without changing the quantization quality.
- Color Bleeding: Sharp, saturated boundaries may appear blurry or exhibit pixelated halos around saturated edges.
- Perceptually Lossless on Photos: Natural scenes, portraits, and landscapes have smooth color transitions where the human eye cannot distinguish the missing color data.
- Best Uses: Web photography, mobile delivery, and standard camera output where bandwidth and storage efficiency take priority.
Summary of Differences
| Feature | 4:4:4 Subsampling | 4:2:0 Subsampling |
|---|---|---|
| Color Data Retained | 100% | 25% |
| Horizontal Resolution | Full | Half |
| Vertical Resolution | Full | Half |
| Text/Vector Clarity | Crisp, no color fringing | Prone to color blurring/artifacts |
| Relative File Size | Larger | Significantly smaller |
| Primary Target | Graphics, UI, typography | Natural photography, web imagery |