Why PNG Transparency Turns Black in JPG (and How to Fix It)
Learn why transparent PNG areas turn black in JPG files, then fix the matte in Preview, Paint, or a browser converter without rough edges or dark halos.
Contents
A transparent PNG turns black after JPG conversion because JPG can’t store the PNG’s alpha channel. The converter has to replace every clear pixel with a solid matte, and some apps default to black. Put a white or intentional brand-color layer behind the image before export, then save the flattened result as JPG.
Why does a transparent PNG turn black in JPG?
PNG can store an alpha value for each pixel: zero is fully transparent, the maximum value is fully opaque, and values between them create soft edges. Standard JPG stores color, not that transparency data. During conversion, the app must blend those edge pixels onto a solid background.
Black isn’t baked into your logo. It’s usually the converter’s fallback matte, or the hidden RGB value under pixels whose alpha was zero. That distinction matters around hair, shadows, anti-aliased type, and the counter-forms inside a mark. A hard replacement can leave a dark fringe even after the main background looks white.
If your source already shows a white box where you expected transparency, start with this guide. That is a different failure: the alpha may have been lost before the JPG export began.
Fix it in Preview or Paint before converting
On a Mac, open the PNG in Preview, place it over the background color you need in an image editor, and use File > Export to choose JPEG. Preview handles the format change, but its simple export screen doesn’t give you a clear matte-color control. Build the background first.
On Windows, Paint is the plain native route. Open the PNG, create a canvas with a white background, paste the artwork above it, and choose Save as > JPEG picture. Paint gets the job done (especially for logos with clean edges), though its layer handling is clumsy compared with a full editor.
Do not rename .png to .jpg in Finder or File Explorer. That changes the label, not the encoded image data, and upload systems may still read the file as PNG. Use Export or Save As so the app decodes the pixels, builds a solid canvas underneath, and writes a new JPEG file.
Check the result at 100% before sending it to Shopify, Etsy, or a client in Slack. Zoom in on soft shadows and curved edges. Dark halos show that the transparent pixels were blended against black earlier in the workflow. Almost. The catch is that painting the obvious black area white will not repair those already blended edge pixels.
For a logo, test the inner openings as well as the outside contour. The hole inside a letter, the gap under an icon, and a soft drop shadow can each carry partial alpha. Paint and Preview are fine for a quick handoff, but they make that edge inspection easy to skip.
Convert PNG to JPG with a white background online
If the native route feels slow, use a converter that chooses the matte for you. The PNG converter flattened transparent pixels onto white in my controlled browser run, kept the original dimensions, and returned a normal three-channel JPG.
I built a 1200 x 800 RGBA test image with clear corners, a translucent shape, and opaque type. The 30,642-byte PNG became a 23,025-byte JPG in about 2.2 seconds. That’s 7,617 bytes smaller, or 24.9%, and the corner pixel measured 255,255,255: pure white.
Good result. But the tool cannot preserve transparency once you choose JPG, because the target format has nowhere to put it. Keep the original PNG as your master file. Use the JPG as the delivery copy for an upload form, email attachment, or marketplace that rejects transparent artwork.
If your starting photo still has a real wall, desk, or studio sweep behind the subject, remove it first with the background remover. Its AI cutout can fumble fine flyaway hair, so inspect the silhouette before flattening.
The browser result also kept all 1200 x 800 pixels. That is useful because format conversion and resizing solve separate problems: one changes how the image is stored, while the other changes its dimensions. If a marketplace asks for a smaller pixel count, resize in a separate pass so you can judge the edge after resampling.
Pick the background color before you flatten
White is the safest matte for Amazon-style product cards and most email layouts, but it is not automatically the right design choice. Match the final surface. A charcoal app icon needs a dark matte; a cream Shopify theme needs that exact cream, or the rectangular edge may show above the fold.
The edge is the test. Place the flattened JPG in its real comp, not on a random checkerboard, and inspect it at the size customers will see. High contrast exposes a one-pixel halo quickly (the part most quick conversions hide). Low contrast can hide the same mistake until the asset lands in a dark-mode message.
Use the color of the final page whenever you know it. Pure white is #FFFFFF, but many storefront themes use a warmer off-white that looks white until two rectangles touch. Sample the actual page background from the design system or screenshot. A correct matte should disappear into the layout, not create a new tile around the product.
For a broader choice between JPEG, PNG, and WebP, use the image format guide. If page weight is the reason you are switching, the better order is dimensions first, format second, then quality; this web workflow explains that sequence.
When should you keep PNG instead?
Keep PNG when another designer still needs the cutout, when the logo will sit on several background colors, or when crisp flat graphics matter more than file size. JPG suits finished photographs and flattened product cards. It does not suit a reusable transparent master.
For product work, save two exports: the transparent PNG master and a flattened JPG for the listing. The Shopify cutout tutorial covers the earlier cleanup stage. Once the matte and dimensions are settled, you can compress JPG without reopening the transparency problem.
WebP is another option when you need transparency and smaller web delivery, but only choose it if the destination accepts the format. A client asking for JPG usually needs compatibility, not the theoretically smallest file. Ship the format the receiving system can open, then keep the richer master for the next export.
If PNG is still the required format, this guide to making a PNG smaller separates lossless recompression from palette reduction and keeps the alpha check explicit.
Next export, don’t let the converter pick the background by accident. Set the matte, inspect the edge at 100%, and keep the PNG master. Thirty seconds here beats rebuilding a dark-fringed logo after it reaches the marketplace.