---
title: "Chroma Subsampling: 4:4:4 vs 4:2:2 vs 4:2:0 Explained - CE.SDK Glossary"
description: "Chroma subsampling keeps fewer color samples than pixels. See what 4:4:4, 4:2:2 and 4:2:0 mean, where each scheme is used and when the lost color shows."
url: "https://img.ly/glossary/chroma-subsampling/"
type: "page"
---

> This is the markdown version of [Chroma Subsampling: 4:4:4 vs 4:2:2 vs 4:2:0 Explained - CE.SDK Glossary](https://img.ly/glossary/chroma-subsampling/). For all pages in one file, see [llms-full.txt](https://img.ly/llms-full.txt). For an index of all available pages, see [llms.txt](https://img.ly/llms.txt).

---

# Chroma Subsampling

Also known as: Color subsampling, Chroma sampling

## What Is Chroma Subsampling?

Chroma subsampling gives a picture fewer color samples than brightness samples. People see fine detail in brightness far better than in color, so video and JPEG files can keep fewer color samples than pixels and still look sharp.

The picture is first split into one brightness value per pixel, called luma, and two color values, blue minus luma (Cb) and red minus luma (Cr). For HD video, the [Rec. 709](https://img.ly/glossary/rec-709.md) formula builds luma from about 72% green, 21% red and 7% blue. Subsampling then keeps every luma sample and drops some of the color samples.

**24 bits** per pixel at 4:4:4 — with 8 bits per sample, no color dropped | **16 bits** per pixel at 4:2:2 — a third less data than 4:4:4 | **12 bits** per pixel at 4:2:0 — half the data of 4:4:4

## How Do You Read 4:4:4, 4:2:2 and 4:2:0?

The three numbers describe a block of pixels 4 wide and 2 rows high. The first is the width, the second is how many color samples the top row keeps, and the third is how many new ones the bottom row adds.

So 4:4:4 keeps a color sample for every pixel, and 4:2:2 keeps one for each pair of pixels side by side, in both rows. 4:2:0 keeps two in the top row and adds none in the bottom row, which leaves one color sample for each square of 2 by 2 pixels. A player rebuilds every pixel from its own brightness and the color its block shares.

### Subsample a grid of pixels yourself

Switch between 4:4:4, 4:2:2 and 4:2:0 and compare your pixels with what a player shows. The red and the yellow text use the same letters on the same blue.

The grid splits a 12 by 8 pixel pattern into brightness and color and keeps the color at 4:4:4, 4:2:2 or 4:2:0. For red text on a blue background: At 4:2:0 the file keeps 24 color samples for 96 pixels, 12 bits per pixel instead of 24. The text and its background differ in brightness by 5% before and 5% after, and in overall color by 60% before and 19% after. For yellow text on the same blue: At 4:2:0 the file keeps 24 color samples for 96 pixels, 12 bits per pixel instead of 24. The text and its background differ in brightness by 65% before and 64% after, and in overall color by 76% before and 58% after.

## Where Is Each Scheme Used?

Delivery formats sit at 4:2:0, production formats at 4:2:2, and masters at 4:4:4. Image formats split the same way: [lossy](https://img.ly/glossary/lossy-vs-lossless.md) ones often subsample, and lossless ones don't.

### 4:2:0 is what most viewers receive

YouTube's recommended upload settings list it, and so do the Main and High profiles of [H.264](https://img.ly/glossary/h264.md) and HEVC Main and Main 10, along with DVD and Blu-ray. Lossy [WebP](https://img.ly/glossary/webp-vs-png.md) stores nothing else, and most JPEG encoders default to it.

### 4:2:2 is the production middle ground

It keeps twice the color of 4:2:0 for a third less data than 4:4:4. [ProRes 422](https://img.ly/glossary/prores.md) and its family use it, as do broadcast SDI links and many professional camera formats, which is why footage headed for keying or grading is often shot in it.

### 4:4:4 keeps every pixel's color

ProRes 4444, film scanners and cinema post-production keep a color sample for every pixel, and the sharp image library saves AVIF at 4:4:4 by default. PNG and lossless WebP keep each pixel's own red, green and blue values, so they don't subsample at all.

## When Does Chroma Subsampling Show?

On camera footage watched at normal size, most people never notice it. It shows where color changes sharply within a pixel or two, and whatever it drops is gone: a file converted from 4:2:0 to 4:4:4 has more samples but no more color.

### Small colored text and thin lines

A letter one pixel wide shares its color block with the background, so the two colors blend. In the grid above, red text on blue fades because the pair differs mostly in hue, while yellow text stays readable because it is much brighter than the blue, and brightness is kept for every pixel.

### Green screen keys

A key separates the subject from the screen by color, so fewer color samples give it rougher edges to work with. Canon recommends shooting green screen in 4:2:2, and [chroma key](https://img.ly/glossary/chroma-key.md) covers what 4:2:0 does to the edge of a key.

### Heavy grading and visual effects

A strong grade stretches color that was averaged across several pixels, and compositing needs color detail the file may not hold. Frame.io's workflow guide makes the point that software can't invent color the camera didn't record, so footage for heavy color work is better shot at 4:2:2 or above.

## Which Chroma Subsampling Should You Use?

Record with as much color as the edit will need, then deliver what the platform asks for. A team filming a product launch on green screen, for example, might shoot 4:2:2 in 10-bit, key and grade the footage in ProRes 422 HQ, and upload the finished cut to YouTube in 4:2:0.

- **Recording green screen**: Use: 4:2:2 or better, Why: A key needs color detail at the edge of the subject

- **Footage you will grade hard**: Use: 4:2:2, and 10-bit if the camera has it, Why: More color samples and more levels per sample, two separate settings

- **A master with graphics or small text**: Use: 4:4:4, Why: Sharp colored edges keep their own color

- **Uploading to YouTube or a streaming service**: Use: 4:2:0, Why: YouTube lists it, and the platform's own encode ends up there

- **A screenshot or graphic with small text**: Use: PNG, or JPEG at 4:4:4, Why: Neither one shares a letter's color with its background

- **Photos for a website**: Use: 4:2:0 JPEG or lossy WebP, Why: Smooth color areas lose almost nothing

## How Burned-In Captions Work in CE.SDK

In [video editing with CE.SDK](https://img.ly/products/video-sdk.md), [captions](https://img.ly/glossary/caption.md) are blocks in the scene, and the export draws them into the video's frames as pixels. A video bound for YouTube ends up at 4:2:0, the scheme its upload settings list, and the captions are subsampled along with the footage.

A caption that differs from the video behind it mostly in hue can soften there. A caption background, set as semi-transparent black in the code, puts a dark edge behind light letters, and that difference is brightness, which every pixel keeps. Viewers can't turn burned-in captions off, so ship an SRT or VTT file as well; [subtitles and closed captions](https://img.ly/glossary/subtitles-vs-closed-captions.md) compares the two.

**Burn in captions with a dark background**

```typescript
const captions = await engine.block.createCaptionsFromURI(
  'https://example.com/launch.srt'
);
const track = engine.block.create('//ly.img.ubq/captionTrack');
engine.block.appendChild(page, track);
for (const id of captions) engine.block.appendChild(track, id);
// Styling one caption styles every caption on the track.
const first = captions[0];
engine.block.setColor(first, 'fill/solid/color', { r: 1, g: 1, b: 1, a: 1 });
engine.block.setBool(first, 'backgroundColor/enabled', true);
engine.block.setColor(first, 'backgroundColor/color', { r: 0, g: 0, b: 0, a: 0.7 });
// The export draws the captions into every frame.
const video = await engine.block.exportVideo(page, { mimeType: 'video/mp4' });
```

[Add captions guide](https://img.ly/docs/cesdk/js/edit-video/add-captions-f67565.md)

## FAQs

### Chroma subsampling

**Q: Is 4:2:2 better than 4:2:0?**

A: It keeps twice as much color. In a block of 4 by 2 pixels, 4:2:2 stores four color samples and 4:2:0 stores two, at the cost of a third more data than 4:2:0 at the same bit depth. The extra color pays off when you key, grade or show sharp colored edges, while a finished video watched at normal size rarely looks different.

**Q: Does JPEG use chroma subsampling?**

A: Usually. JPEG stores color as Y'CbCr, and the most common encoders save at 4:2:0 unless told otherwise; the sharp image library, for one, defaults to 4:2:0 and offers 4:4:4 as an option. Screenshots and graphics with small text keep crisper edges saved at 4:4:4 or as PNG.

**Q: Is chroma subsampling the same as bit depth?**

A: No. Subsampling sets how many pixels share each color sample, and bit depth is the number of levels each sample can hold, from 256 at 8-bit to 1,024 at 10-bit. The two combine freely: the pixel formats browsers expose to video code include 4:2:0 at 8, 10 and 12 bits, and HEVC Main 10 is 10-bit 4:2:0.

**Q: Can you convert 4:2:0 back to 4:4:4?**

A: You can convert the file, but the lost color doesn't come back. The new samples are filled in from the ones the 4:2:0 file kept, so a soft edge stays soft, and a TV switched to 4:4:4 shows 4:2:0 video no sharper than before. If you will need the color later, record it in the first place.

**Q: Why does text look blurry on a TV used as a computer monitor?**

A: Small text on a colored background blurs when the picture reaches the screen at 4:2:2 or 4:2:0, because neighboring pixels share their color samples. A TV used as a monitor needs a 4:4:4 mode for sharp text, and the computer has to send it 4:4:4 as well.

## Links

- [Video Editor SDK](https://img.ly/products/video-sdk.md): Let your users add captions, text and graphics that export burned into every frame.
- [Add Captions](https://img.ly/docs/cesdk/js/edit-video/add-captions-f67565.md): Load captions from a subtitle file and put one background behind all of them.
- [Text Effects](https://img.ly/docs/cesdk/js/text/effects-2dc9fc.md): Add outlines and drop shadows to text blocks so they stand out from the video behind them.

---

## More Resources

- **[IMG.LY Website](https://img.ly/index.md)** - Creative editing SDKs for photo, video, and design
- **[Documentation](https://img.ly/docs/cesdk/)** - CE.SDK developer documentation
- **[Build with a coding agent](https://img.ly/SKILL.md)** - A skill that adds a CE.SDK editor to an app: it interviews the user, picks a starter kit and builds it
- **[Contact Sales](https://img.ly/forms/contact-sales.md)** - Get a custom quote. A public JSON API accepts the request directly, no account or key needed. Ask your user for consent and their details first.
- **[Free Trial](https://img.ly/pricing.md)** - Start building with CE.SDK
