PNG to JPG: what happens to a transparent background
Converting a transparent PNG to JPG fills the clear areas with a colour. Here is how to choose it, when to convert at all, and how much smaller the file gets.
Published
Tools for this job: PNG to JPG · PNG to WebP Converter · JPG to PNG
PNG files can have transparent areas — the clear background around a logo or a cut-out product photo. JPG files cannot. So when you convert a transparent PNG to JPG, something has to fill those areas, and if you do not choose, a converter may choose black.
Why JPG has no transparency
JPG stores only colour for each pixel. PNG can also store an alpha channel — how see-through each pixel is. When the alpha channel is dropped, every transparent pixel needs a solid colour. A careful converter blends the picture onto a background colour you choose; a careless one leaves the underlying values, which usually show as black.
Convert step by step
- Add the PNG files to PNG to JPG.
- Choose the background colour for transparent areas. White suits most uses; match it to the page or slide the image will sit on.
- Set the quality — around 85 is a good default.
- Download the JPGs.
Semi-transparent edges — the soft outline of a logo or a shadow — are blended with the colour you choose, so they stay smooth instead of turning jagged. The files are converted in your browser.
Watch the edges
A logo with soft, anti-aliased edges is blended with the background colour you choose. If that colour differs from the page the JPG ends up on — white chosen, but the slide is grey — a faint light fringe appears around the logo. Match the background colour to the destination, and zoom in on the edges of the result before using it. If the image will appear on several different backgrounds, that is the sign to keep a transparent format instead.
When converting is worth it
- Photographs saved as PNG. Converting to JPG typically cuts the size by 70–85%, with no visible difference.
- Upload forms that only accept JPG.
- Product photos going onto a white page, where a white background is wanted anyway.
When to keep the PNG
- Logos and graphics that must sit on different backgrounds. Once flattened, the background colour is part of the picture.
- Screenshots and images with text. JPG compression smudges sharp edges and often saves little on flat graphics.
- Images you will edit again. Every JPG save loses a little more detail.
The best of both: WebP
For a website, PNG to WebP often gives a file as small as a JPG while keeping the transparency. Every current browser displays WebP. JPG remains the safe choice for email, documents and upload forms.
Going the other way
JPG to PNG does not create transparency — the background stays solid — and it does not restore detail the JPG discarded. It is useful when you will edit an image repeatedly, or when something insists on PNG. Removing a background to make it transparent is a separate job for an image editor.
Keep the original
Keep the transparent PNG as your master copy and make JPGs from it as needed. A flattened JPG cannot be turned back into a transparent image.