Image Size Reducer
Chroma key

Remove a PNG Chroma Key

Take a green or blue screen out of an image and get a clean transparent result. Widen the key until the screen is fully gone, keep the soft edges that make the removal look natural, and deal with the spill that clings to the subject.

  • Green, blue, or a custom screen color
  • Threshold control for a clean matte
  • Semi-transparent edges preserved
  • Edge tidying for the leftover spill
  • Processed in the browser
Open the chroma key tool

A Background Built to Be Deleted

Chroma keying is the one kind of background removal where the backdrop was chosen specifically to make the job easy, which changes what the difficulties are.

On a film set the screen is lit deliberately, its color is picked for maximum distance from anything the subject contains, and the whole arrangement exists so that the color can be subtracted later. A person shot against a green screen is not standing in front of a green wall; they are standing in front of a mathematical decision. That makes the removal unusually clean. It also introduces two problems that ordinary background removal does not have. The screen reflects onto the subject, leaving a color cast around the shoulders and hair, and the screen is usually lit more evenly than it actually is, so a single threshold has to cope with a range of values. Both are manageable, and understanding them is most of what makes it worth learning to remove a PNG chroma key properly.

What the Chroma Key Tool Does

A screen color to key out, a threshold that governs how much goes, and a transparent result that keeps soft edges.

Pick the screen color

Sample the green or blue screen directly, with support for any custom backdrop color.

Threshold control

Set how far a pixel may differ from the screen color and still be removed, which is what makes an unevenly lit screen key.

Soft edges kept

Intermediate transparency survives, so hair and fine detail come through instead of a hard cut.

Spill tidy-up

Reduce the color cast that the screen leaves on the subject, which is what most often gives a composite away.

Local processing

The image is handled in the browser, so nothing is uploaded.

ImageSizeReducer

ImageSizeReducer

@imagesizereducer

Why green, and when blue

The screen color is chosen to be as far as possible from anything in the subject. Human skin sits near orange, so green is comfortably distant from it and remains the default for people. Blue was the earlier choice, partly for film stock reasons, and it still works better in some conditions. The practical rules are simple. Pick green unless the subject contains green, such as foliage or a green garment. Pick blue if the subject is naturally green or if the skin tones are unusually blue in the lighting. Whatever the choice, the principle is separation rather than preference: the screen just has to be a color that the subject does not wear.
Key the screen
Two frames side by side, one shot on green and one on blue
ImageSizeReducer

ImageSizeReducer

@imagesizereducer

Even lighting is the real requirement

A screen that is brighter at the top than at the bottom will not key with one setting. The bright area goes first, and the shadowed area survives, leaving a patchy result that no threshold resolves cleanly. This is why the technique is fussy about how a shot is lit, and why a phone photograph taken against a badly lit wall is a much harder job than a studio frame. The compensation is to widen the threshold until the darkest part is caught, accepting that it is now close enough to the subject to risk eating into it. Where the lighting is uneven, the honest answer is that it takes longer, and a second pass on the problem areas is normal.
Key the screen
A screen lit unevenly, with the bright and shadowed areas contrasting
ImageSizeReducer

ImageSizeReducer

@imagesizereducer

What a key does that a threshold cannot

A simple color threshold makes a binary decision per pixel, which is fine for a hard edge and wrong for everything else. A proper key is different: it allows partial transparency, so a pixel that is mostly screen with a little hair in it can come out mostly transparent rather than being forced into one extreme. That is what preserves the details that make a cut-out convincing. Fine hair, wisps, the thin edge of a fur collar, and the softness of a moving subject all depend on intermediate values surviving the removal. It is also how a shadow on the screen itself can be kept deliberately, since a partly darkened area becomes partly transparent and reads as a shadow on whatever the subject is placed onto.
Key the screen
A binary threshold result beside a keyed result keeping fine hair detail
ImageSizeReducer

ImageSizeReducer

@imagesizereducer

The spill problem

The screen does not stay on the screen. A large colored surface behind a subject throws light onto it, so a green screen puts a green rim around shoulders, ears, and hair, and the more reflective the subject, the stronger the effect. The spill survives keying because those pixels are not screen, they are subject with a color cast, and their values are nowhere near the key. Removing it takes a second operation: reducing green in the affected areas, or desaturating that channel towards its neighbors. It is the step most often skipped and the one that most reliably gives away a composite, because a faint green outline reads as wrong even when the matte itself is immaculate.
Key the screen
A keyed subject with a green rim along the shoulders beside a corrected version
ImageSizeReducer

ImageSizeReducer

@imagesizereducer

Choosing the threshold

The control that governs the result is how far a pixel may sit from the screen color and still be treated as screen. Narrow it and only the purest pixels are removed, which leaves a rim of slightly different screen tones around the subject. Widen it and the screen goes completely, along with anything else close to that color. Start narrow and increase while watching two things at once. The background should be fully gone, and the subject should not be losing its outline or developing holes where it happens to be near the screen color. The point where both conditions hold is the right setting, and it is usually narrower than people expect once the lighting has been reasonably even. Judging it on a contrasting surface rather than on a checkerboard makes the residue far easier to see.
Key the screen
A threshold slider shown at three settings with the resulting matte beside each
ImageSizeReducer

ImageSizeReducer

@imagesizereducer

Practical uses beyond video

The technique comes from film, and it now turns up far beyond it. Product photographs shot against a green or blue sheet key out cleanly without a studio, which makes it practical for small sellers working with limited equipment. Overlays and lower thirds in video editing are the next group, where a graphic produced against a screen color can be dropped over live footage. Memes, thumbnails, and social content use the same trick because it separates a subject from a busy scene with a couple of clicks. In each case the appeal is the same: a screen is a predictable backdrop, and a predictable backdrop is one that can be removed without a judgement call.
Key the screen
A keyed product image and a keyed video overlay graphic
ImageSizeReducer

ImageSizeReducer

@imagesizereducer

Working with JPEG sources

Chroma key footage often arrives as a JPEG or a frame captured from a video, and that introduces a complication. Lossy compression does not handle saturated colors well, so a green screen is stored with visible blotchiness and a wider spread of values than was actually in front of the camera. That spread has to be absorbed by the threshold, which pushes it wider and closer to the subject than it would otherwise need to be. Where a choice exists, a PNG source keys noticeably better, and a frame exported without compression is better still. When one is not available the widening is unavoidable, and extra tidying is part of the job rather than a sign that something went wrong.
Key the screen
A compressed green screen showing blotchy compression artifacts beside a clean one

How to Remove a PNG Chroma Key

Four steps. The third is the one people skip, and the one that decides whether the result looks composited.

Step 1

Upload the frame

Use a PNG, or an uncompressed frame, since compression on a saturated screen widens the spread of values you have to key through.

Step 2

Sample the screen and set the threshold

Pick the screen color, then widen the key until the darkest part is caught without the subject losing its outline.

Step 3

Tidy the spill

Reduce the color cast along the subject edge, which is what removes the giveaway green or blue rim.

Step 4

Check against a contrast and export

View the result on a surface unlike the screen, where any surviving rim is obvious, then save the transparent PNG.

Who Keys Out Screens

Four kinds of work where a colored screen is part of the plan.

VE

Video editors

overlays and lower thirds

Producing graphics against a screen color and keying them over footage is quicker than exporting with alpha. The spill step is what stops the graphic looking pasted on.

PS

Product sellers

studio-free photography

A sheet of green cloth costs nothing and keys out cleanly, which makes a consistent catalog possible without a studio or a lightbox.

CC

Content creators

thumbnails and shorts

Standing in front of a green wall makes it possible to change the background for every upload without re-shooting anything.

PD

Presentation designers

speaker and slide assets

A keyed presenter can sit beside slides instead of in a rectangle. Keeping the soft edge is what makes it read as part of the slide.

Frequently Asked Questions

How keying differs from ordinary background removal, and what to do about the screen color that stays behind.

Subtract the screen

Upload a frame shot against a green or blue screen, key it out with a threshold you control, tidy the spill, and download a transparent PNG.

Key the screen
A Screen Chosen to Disappear

The backdrop that was always meant to go

Chroma keying is unusual among image operations because the difficulty was designed out in advance. The screen is a deliberate color, lit on purpose, chosen for its distance from anything the subject contains, and all of that exists so that the color can be subtracted cleanly later. That is why a well shot frame keys almost perfectly on the first attempt, and why the problems that remain are the ones nobody plans for. The first is uneven lighting, which turns a single threshold into a compromise between the brightest and darkest parts of the screen. The second is spill, the color that reflects onto the subject and survives every attempt to remove the screen itself, leaving a faint rim that quietly announces the composite to anyone looking. The third is compression, which roughens the saturated color of the screen and widens the range the key has to cover. Working through them in order is the whole method. Set the key wide enough for the darkest corner and no wider. Treat the spill as a separate job rather than a threshold problem. And judge the result against a surface unlike the screen, because a residue that is invisible on green is unmistakable on white. Do those things and the question of how to remove a PNG chroma key becomes routine, which is exactly what a screen was chosen to make it.

Smaller files, same picture.