ImgVX AI

Transparent images: why backgrounds turn white

Advertisement

A transparent image is one where some pixels have no colour at all, so whatever is behind them shows through. It is essential for logos, stickers, product cut-outs and anything placed over another background, and it is lost in more ways than most people expect.

How it works: the alpha channel

An ordinary image stores three numbers per pixel: red, green and blue. An image with transparency stores a fourth, alpha, which says how opaque the pixel is. 255 is fully solid, 0 is fully see-through, and everything between is partly transparent.

The "everything between" is the important part. The edge of a cut-out hair, a soft drop shadow, the anti-aliased outline of a round logo — all of those are semi-transparent pixels. A format that only supports on-or-off transparency cannot represent them.

Which formats support it

FormatTransparency
PNGFull alpha, lossless. The safe default.
WebPFull alpha, lossy or lossless. Much smaller than PNG.
AVIFFull alpha. Smaller again, slower to encode.
SVGYes; vector shapes simply have nothing behind them.
GIFOn or off only. Soft edges become jagged.
JPGNone.

That last row is the source of most problems. JPEG has no alpha channel at all. It is not a setting you can turn on.

Why transparency turns white (or black)

You converted to JPG. The converter has to put some colour in those pixels, because JPEG cannot store "nothing". Most choose white; some choose black. Keep the file as PNG or WebP with the image converter and the transparency survives.

The site you uploaded to converted it. Many platforms re-encode every upload to JPEG to save bandwidth. There is nothing you can do on your side except choose the background colour yourself before uploading, so it is at least the right one. The transparency tool flattens a PNG onto any colour you choose.

It was never transparent. The grey-and-white checkerboard in a downloaded "transparent PNG" is sometimes painted into the image. If the checkerboard moves when you zoom, it is real transparency; if it scales with the picture, it is pixels, and the file has no alpha at all.

The halo problem

Cut an object out of a white background, place it on a dark one, and you often get a thin pale fringe around it. This is called a halo or matte line.

It happens because edge pixels were blended with the original background. A half-transparent pixel at the edge of the object is half object colour and half white. On white that looks correct. On black it looks like a glowing outline.

Fixes, in order of effort:

Removing a background in the first place

The right tool depends on what is behind the subject.

Either way, save the result as PNG or WebP. Saving a fresh cut-out as JPG throws the whole job away.

Keeping files small

A transparent PNG photo can be very large, because PNG is lossless. If the image is going on a website, WebP with alpha is usually a fraction of the size with no visible difference. Our format guide has the numbers.

Advertisement