JPEG does not support an alpha channel. When you convert a transparent PNG to JPG, every transparent or semi-transparent pixel must be composited onto a solid background color. If you do not choose the color deliberately, the result may look wrong around logos, shadows or anti-aliased edges.
What transparency means in a PNG
PNG can store an alpha value for each pixel: fully transparent, fully opaque or something in between. That is why a logo can have smooth semi-transparent edges over any page color. JPEG stores color, not per-pixel alpha transparency.
Our controlled transparency test
We created an 800×500 PNG with transparent and semi-transparent areas. In the WebP result, the alpha channel still contained 177,984 fully transparent and 222,016 partially transparent pixels. In the JPEG result, 400,000 opaque pixels—no transparency remained.
Interestingly, this simple synthetic graphic was 4.29 KB as PNG, 6.12 KB as WebP and 8.93 KB as JPEG. Another reminder that the “modern” or “lossy” format is not automatically smaller for every image.

How to choose the replacement color
If the JPG will be used on a white page, white is usually safe. If it will sit on a branded color, export directly onto that color. For an asset that must work on multiple backgrounds, do not use JPG—keep PNG or convert to a transparency-capable format.
Why transparent logos sometimes get ugly halos
Semi-transparent edge pixels are blended with the chosen matte color. If that JPG is later placed on a very different background, the blended edge can look like a pale or dark outline. The fix is to export against the final background or preserve transparency.
A transparency-preserving alternative
WebP supports transparency, so it can be a useful web-delivery alternative to PNG. Still compare actual file size because flat graphics and tiny icons can remain very efficient as PNG.
Quick checklist before downloading
- Confirm the output dimensions and orientation.
- Check one detail-heavy area at 100%.
- Make sure transparency or background color is still correct.
- Use a clear output filename and keep the original until the result is verified.
These checks take less time than fixing a whole batch later, especially when the result is going into a website, marketplace listing or client deliverable.
Frequently asked questions
Can JPG ever have a transparent background?
No. Standard JPEG does not support per-pixel alpha transparency.
Why did my transparent PNG turn white?
The transparent pixels were flattened onto a white background during JPEG export.
Can WebP keep the transparent background?
Yes. WebP supports alpha transparency.
What background should I choose for PNG to JPG?
Use the final background color the image will be displayed on.
Bottom line
If you need transparency, do not use JPEG. If you need JPG compatibility, deliberately choose the background color during conversion and preview the result on the same background where it will be used.
Technical references: MDN image format guide

Questions or something we missed?
Share a question or useful detail. Comments appear after approval.
Be the first to start the conversation.