It happens to nearly everyone sooner or later. You convert a logo from PNG to JPG, open the result, and the transparent background has become a solid black rectangle. Or a white one, which looks fine on a white page and awful anywhere else. This is not a bug. It is a direct consequence of how the two formats store colour, and once you see why, you can control the result.
How transparency is stored
A PNG stores four values for each pixel: red, green, blue and a fourth called alpha, which says how see-through the pixel is. A fully transparent pixel still has red, green and blue values, but nobody sees them, because the alpha value hides them. A JPG has no alpha at all. It stores only red, green and blue, so every pixel must be a visible colour.
Why the background turns black or white
When a converter has to throw away the alpha channel, it must decide what colour the formerly transparent pixels become. Some tools use the hidden colour values, which are often black. Others fill with white. A good tool lets you choose. If you see black unexpectedly, the converter simply used the hidden values of the transparent pixels.
Semi-transparent edges
Transparency is not only on or off. Soft edges, drop shadows and anti-aliased curves use partial transparency. When these blend into a solid background, the colour of that background shows through the edges. A logo with smooth edges, converted on a white fill and then placed on a dark page, shows a pale fringe around the letters. This halo is the classic sign of a mismatched background colour.
Choose the fill to match the destination
- White page or document: use white. This is the default for good reason.
- Dark slide or website: use a matching dark colour, so edges blend smoothly.
- Coloured banner: use the exact banner colour if you know its code.
- Unknown destination: keep a PNG, because transparency adapts everywhere.
The PNG to JPG converter includes a background colour option for this purpose, and the WebP converters fill transparent areas with white automatically.
When you should not convert at all
If the image is a logo, icon or sticker that will appear on different backgrounds, JPG is the wrong format. Keep the PNG. The only reasons to convert are a strict upload form that refuses PNG, or an extreme need for a small file. Even then, a PNG of a flat logo is often small already, so test before assuming JPG will save anything.
A practical example
Picture a small business that converts its logo from PNG to JPG so that a brochure loads faster. The logo, with its soft shadow, gets flattened on a white fill, and the brochure background is cream. The faint white rectangle around it looks like a smudge, and the logo seems “dirty”. Going back to the PNG, which may be only 60 KB anyway, fixes it at once. A tiny file does not need compression.
The dark mode trap
A growing number of people read websites and chat apps in dark mode. A PNG logo with a transparent background and dark text can vanish completely on a black page. A JPG with a white fill will look like a white sticker. Neither is ideal, and the best answer is a version of the logo designed for dark backgrounds, with light text. If you create graphics for sharing, saving two versions, one for light and one for dark, makes your work look careful on every screen.
Why the file sometimes gets bigger
Converting a simple logo to JPG can make it larger, not smaller. A flat graphic with big blocks of one colour is very efficient as PNG, but JPG has to store the small variations that its compression creates around edges. The result is a larger file with a worse look. Compare the sizes before you decide, and do not assume that JPG always means smaller.
Getting transparency into a file that has none
Converting a JPG to PNG does not make the background transparent. The solid colour comes along, as pixels. To get real transparency you must remove the background in an image editor, by selecting it and deleting it, and then save as PNG. Some editors have an automatic background removal feature. Check the edges carefully afterwards, particularly around hair and thin lines.
Checking your result
- Open the converted file on a background similar to where it will be used.
- Zoom in on edges and look for pale or dark fringes.
- If a fringe appears, convert again with a fill colour closer to the final background.
- If edges still look rough, keep the PNG instead.
Short version
JPG cannot be see-through, so conversion must replace transparency with a colour. Pick that colour deliberately, match it to where the picture will appear, and keep the PNG whenever the background may vary. Doing this takes seconds and removes a whole class of ugly surprises.