Open BGZone
Formats & quality

Why JPEG Can't Have a Transparent Background

Why the JPEG format has no transparency, what happens to cutouts saved as JPEG, and what to use instead when you need a clear background.

2 min read · Published

If you save a cutout as a JPEG, its transparent background turns white, black or some other solid colour. That's not a bug in your editor; JPEG simply has no way to store transparency.

How JPEG stores images

JPEG was designed for photographs. It stores colour information for every pixel, compressed in a way that's very efficient for photos. There's no alpha channel, the extra information that says how see-through each pixel is. See PNG transparency explained.

Without an alpha channel, every pixel must have a solid colour. When an editor saves a transparent image as JPEG, it has to fill transparent areas with something, usually white.

What happens to soft edges

Soft edges around hair and fur are partly transparent. When saved as JPEG, they're blended with the fill colour. A cutout saved on white gets white-ish fringes; saved on black, it gets dark fringes. If you later try to place it on a different background, those fringes show.

When JPEG is fine for cutouts

If you know the final background, it's perfectly reasonable to save as JPEG:

  • A product on pure white for a shop.
  • A portrait on a solid colour for a profile.
  • Any cutout already placed on its final background.

JPEG gives a smaller file for these.

When you need transparency

If you want to place the cutout on different backgrounds later, or in a design tool, use a format with transparency:

  • PNG: works everywhere.
  • WebP: smaller files, widely supported. See what is WebP?
  • AVIF: newer and even smaller in many cases. See what is AVIF?

Can you add transparency to a JPEG?

You can't add it to the file itself, but you can remove the background again and save the result as PNG. Starting from the original photo gives the best edges.

A good habit

Keep a transparent PNG of every cutout, even if you also export a JPEG. It saves redoing the work. See PNG vs. JPEG.