Why does my transparent PNG have a black background?
Check whether your PNG is actually transparent or has been flattened and learn how to export it with the background you intended.
A black rectangle behind a PNG doesn’t always mean the file is broken. Your viewer may be showing transparent pixels against black. The file may also contain a real black background or have lost its transparency during conversion. Those are different problems with different fixes.
Check the same file against two backgrounds
Open the downloaded file in an editor that displays transparency with a checkerboard. Then place it on a light surface and a dark surface. If the surrounding area follows the surface colour then the background is transparent. If a black rectangle remains in both places then those black pixels are probably part of the image.
Use the actual downloaded file for this comparison. A screenshot of a transparent image records the viewer’s visible background too. Saving that screenshot as PNG doesn’t turn the background back into empty space.
Follow the file’s history
Ask what happened between the original image and the version you have now. A logo exported with transparency can become opaque when it is copied through an application or converted to a format that doesn’t preserve the transparent pixels.
The PNG to JPG converter is a common point where expectations diverge. JPG doesn’t store transparency. The empty areas need a solid background during conversion. Choose a background that matches the intended destination rather than relying on the viewer to fill it for you.
For a logo on a white invoice a white background may be exactly right. For a logo placed over different website colours keep a transparent PNG and check the final web page.
Pick the appropriate fix
- The viewer uses a black backdrop: keep the original file and check it in the destination application.
- The image has a solid background: use Remove Background if its subject is suitable then inspect the edges.
- A conversion removed transparency: return to the original transparent file and export again.
- The destination requires JPG: deliberately use the destination’s background colour when creating the opaque copy.
Don’t repeatedly convert between JPG and PNG hoping that the background will disappear. Each change leaves the underlying background pixels present unless a separate edit removes them.
Inspect edges at the size people will see
Zoom in to find obvious stray pixels but also look at the image at its final display size. Hair and soft shadows may contain partial transparency. Cutting every partially transparent pixel away can produce a rough outline even if the result looks technically clean on a checkerboard.
Try the finished file against both light and dark backgrounds. This catches pale or dark fringes that disappear on the surface you used while editing. Keep an untouched original alongside the finished version so another export doesn’t require starting over.
If the file looks right locally but wrong after uploading then download the site’s stored version and compare it. The site’s processing may be changing the image.
Common questions
Does the PNG extension guarantee transparency?
No. PNG supports transparency but an individual PNG can still be fully opaque. A photograph saved as PNG normally keeps its existing background unless an editing step removes it.
Can converting a JPG to PNG restore transparency?
No. Changing the format doesn’t recover a transparent layer that was discarded. You need the original transparent image or a separate background-removal step followed by careful inspection.
Why is there a dark edge around my logo?
The edge may contain partially transparent pixels blended against a previous background. Test the image on both light and dark surfaces. A halo can require editing the edge pixels rather than changing the file extension.