MiniPxMiniPx
PricingBlogAccount
← Blog

Why Your Transparent PNG Turns Black When Converted to JPG

By Gaurav Bhowmick

You converted a PNG with a transparent background to JPG and the transparent areas turned solid black. This is not a bug — JPG simply does not support transparency. Here is exactly what happens and how to fix it.

JPG has no alpha channel

PNG supports an alpha channel — a layer of data that tells each pixel how transparent it is. JPEG does not have this concept. When you convert PNG to JPG, the converter has to fill those transparent pixels with something.

Many tools default to black (RGB 0,0,0) because that is what an empty canvas looks like in memory. The transparent pixels become black pixels. This is especially noticeable with logos, icons, and product photos with cutout backgrounds.

How to get a white background

A good converter composites the transparent image onto a white background before encoding to JPEG. MiniPx does this automatically — when you convert PNG to JPG, transparent areas become white, not black.

If you need a specific background colour, add it in an image editor before converting. Or keep the file as PNG or WebP if you need to preserve transparency.

When to keep PNG instead

If your image needs transparency (logos on coloured backgrounds, overlays, UI elements), do not convert to JPEG. Stay with PNG or switch to WebP — both support alpha channels. Only use JPEG for photographs and images where transparency is not needed.

Related reading: PNG compression guide · Best format for websites · AVIF vs WebP vs JPEG

Frequently asked questions

Why does my logo turn black when I save as JPG?
Your logo PNG has a transparent background. JPEG does not support transparency, so the transparent pixels default to black. Convert using MiniPx to get a white background instead.
Which formats support transparency?
PNG, WebP, AVIF, and GIF all support transparency. JPEG and BMP do not. If you need a transparent background, avoid JPEG.
Can I convert JPG back to PNG to restore transparency?
No. Once transparent areas are filled with a colour (black or white), that colour becomes part of the image data. You would need the original PNG file or use a background removal tool.

Related tools

Convert PNG to JPGCompress PNGConvert PNG to WebP

More from the blog

JPEG vs PNG vs WebP — Best Format for WebsitesAVIF vs WebP vs JPEG: Which Format Wins in 2026?PNG Compression: How to Reduce PNG File Size
🔧
Try MiniPx — free, no signup

Compress, convert, and resize images in your browser. Nothing gets uploaded.

Open MiniPx →