PNG to JPG: what happens to transparency?

Last checked 2 min read

The short answer

JPG cannot store transparency, so each transparent area has to be filled with a solid colour when a PNG is converted. On this site the fill is white. If the background must stay see-through, keep the PNG, or convert to WebP or AVIF, which both support transparency.

Why transparency cannot survive

A PNG can store, for every pixel, how see-through that pixel is as well as its colour. A JPG stores colour and nothing else. There is nowhere in the file to write "this part is empty", so a converter has to put something there.

Pixels that are only partly transparent, such as a soft shadow or the smoothed edge of a round logo, are mixed with the fill colour. After conversion they are ordinary solid pixels in a blend of the two.

What the JPG looks like

Placed on a white page, the white fill does not show, because it matches what is behind it. Placed on a coloured or dark page, it shows as a white rectangle with the subject inside it.

The blended edge pixels matter if someone later tries to cut the subject out again. They carry a pale fringe from the white they were mixed with, and it can show against a dark background.

Converting when a white background is fine

  1. Open the PNG to JPG tool and add the PNG files.
  2. Leave the quality on Balanced, or choose Custom for a higher or lower setting.
  3. Check the result with the Compare slider. Look at the edges of the subject and at any small text.
  4. Download the JPG. Keep the PNG as well, since the transparency cannot be recovered from the JPG.

If you want a background other than white

The tool always fills with white. For another colour, open the PNG in an image editor, put a layer of the colour you want behind the subject, and save that. The picture then has no transparent pixels left, and converting it to JPG changes nothing about the background.

If you need to keep the transparency

  • Keep it as PNG and make it smaller with the Compress PNG tool. Without resizing, the file is repacked and every pixel, transparent ones included, stays identical.
  • Use the PNG to WebP tool. WebP supports transparency and, saved with a quality setting as it is here, is usually smaller than PNG for pictures with photographic content. It is no longer an exact copy, so check it in Compare.
  • Use the Convert image tool with Output format set to AVIF, if you know the destination can read AVIF.
  • Before sending a WebP or AVIF to someone, check that their program or form accepts it. Where it does not, PNG is the fallback.

Is JPG the right target at all?

PNG to JPG is a good move for a photograph that happens to be stored as PNG. It is a poor move for a screenshot, a diagram or a logo, where JPG can soften hard edges and lettering. If the reason for converting is an upload form that accepts only JPG, choose Custom and raise the quality until the text looks clean in Compare.

Do it nowFree, in your browser. Nothing is uploaded.
Convert PNG to JPG

Do it now

Tools for this

All tools

Formats explained

All guides