Free online tool

Upload a file

Drop your file hereTap to choose a file

or click to browse, or paste from the clipboard

← Back to Blog

How to Convert PNG to JPG Without a Black Background

To convert PNG to JPG without a black background, fill the transparent areas with a solid color as part of the conversion, because JPG cannot store transparency. Black appears when software throws the transparency away instead of filling it, which exposes the color hidden inside transparent pixels. The free PNG to JPG Converter fills those areas with white by default, or black if you choose, and lets you set the JPEG quality and a maximum width. Photos usually come out far smaller as JPG. Screenshots and logos often do not, and for those PNG remains the better file.

How to convert PNG to JPG with Zutilium

  1. Open the PNG to JPG Converter and drop your PNG on the upload area, click Choose file, or paste it from the clipboard. It takes one PNG at a time, up to 30 MiB by default.
  2. Pick a Quality. High (90) is the default and suits most photos, Standard (80) and Optimized (70) make smaller files, and Maximum (100) makes the largest.
  3. Leave Max Width at Keep Original, or choose 1920px, 1280px, 800px or 640px to scale a wider image down. The height follows proportionally, and narrower images are never enlarged.
  4. Under Fill Transparent Areas, choose White or Black. This color replaces fully transparent pixels and is blended into semi-transparent ones, such as soft edges and shadows.
  5. Select Convert to JPG, then Download the result.

Then check three things:

  • Size: the result panel shows the Original size, the Result and the Change. If it says larger, PNG was the better format for this image.
  • Edges: look at any logo or cut-out subject against the background where the JPG will appear.
  • Text: zoom to 100% and look for blur or specks around letters.

The conversion runs on Zutilium's server. After a successful conversion, the upload is scheduled for deletion after about one minute and the JPG after about ten minutes, so download it promptly.

Why a PNG turns black when converted to JPG

A PNG pixel can store four values: red, green, blue and alpha, which is opacity. In an ordinary 8-bit PNG, alpha 0 is fully transparent and 255 is fully opaque, as defined in the PNG specification. JPG stores color only and has no alpha channel, as MDN's image format guide notes.

The catch is that a fully transparent pixel still holds a color value that you never see. It is often stored as black (0, 0, 0). A converter that simply deletes the alpha channel exposes those hidden values, so the background turns black. If the hidden values are leftovers from editing, the result is stranger: stray shapes, color noise or a ghost of an erased background.

The correct operation is compositing, often called flattening: each pixel is blended with a background color in proportion to its alpha. Section 13.16 of the PNG specification gives the formula:

result = alpha × pixel color + (1 − alpha) × background color

Worked example: one edge pixel, three outcomes

Take an anti-aliased edge pixel from a red logo: color (228, 55, 53) with alpha 123, which is 123 ÷ 255 ≈ 0.482 opaque. Beside it sits a fully transparent pixel stored as (0, 0, 0) with alpha 0.

Method Edge pixel becomes Transparent pixel becomes
Fill with White (242, 159, 158), pale pink (255, 255, 255), white
Fill with Black (110, 27, 26), dark red (0, 0, 0), black
Alpha dropped, no fill (228, 55, 53), full red (0, 0, 0), black

For the red channel on white: 0.482 × 228 + 0.518 × 255 = 242. Dropping alpha gives the black background plus hard, jagged edges, because every half-transparent edge pixel turns fully opaque. Zutilium's converter always flattens onto the fill you choose before it writes the JPG.

Choose a fill color that avoids halos

The fill decides more than the background. Every anti-aliased curve and soft edge is blended toward it, so a logo flattened on white carries a faint light rim. On a white page the rim is invisible; on a dark page it shows as a halo. Black does the reverse.

Where the JPG will appear Fill to choose
Documents, forms, white product listings White
Dark slides, dark websites, video overlays Black
A page or brand color That exact color
Several different backgrounds Keep PNG, or use WebP

For a color other than white or black, use Bulk Image Compressor or Compress Image to 100KB. With Output format set to JPG, both show a Background for transparent areas color picker, and both process images in your browser without uploading them. In Compress Image to 100KB, set Target size to No size limit unless you also need a size cap.

Soft drop shadows are a special case. A shadow is black at partial opacity, so a white fill turns it into a gray smudge and a black fill makes it vanish. If your PNG has no transparent pixels at all, the fill setting changes nothing.

How much smaller is JPG than PNG?

It depends on what is in the picture. JPEG compression is designed for continuous tones such as photographs. PNG is lossless and does best with flat areas, sharp edges and repeated patterns, which is why screenshots and logos are often small already.

Zutilium's converter produced these sizes from three sample PNGs. Sizes use the result panel's units (1 KB = 1,024 bytes), rounded to the nearest KB.

Image PNG JPG, High (90) JPG, Maximum (100)
Landscape photo, 1200 × 675 1.75 MB 279 KB, 84% smaller 665 KB, 63% smaller
Web page screenshot, 1440 × 1000 69 KB 68 KB, 1% smaller 181 KB, 162% larger
Flat red logo, 800 × 800 19 KB 18 KB, 2% smaller 36 KB, 93% larger

The arithmetic explains the gap. The screenshot holds 1440 × 1000 × 3 = 4,320,000 bytes of raw color, and PNG packed it into under 2% of that. The photo's raw 1200 × 675 × 3 = 2,430,000 bytes only shrank to 75% as PNG, so JPG had plenty to gain: at High (90) it is about a sixth of the PNG.

Which JPEG quality to choose

The quality numbers are encoder settings, not percentages of the original. For the same photo:

Setting JPG size Change from PNG
Optimized (70) 149 KB 92% smaller
Standard (80) 188 KB 89% smaller
High (90) 279 KB 84% smaller
Maximum (100) 665 KB 63% smaller
High (90), Max Width 800px 140 KB 92% smaller
  • High (90) is a safe default. Standard (80) cut this photo by another third, with more risk of visible blocks in smooth skies and fine texture.
  • Maximum (100) is still lossy, and here it was 2.4 times the size of High (90).
  • Resizing beat lowering quality. At 800 px wide the photo has 800 × 450 = 360,000 pixels, 44% of the original 810,000, so High (90) at 800px came out smaller than full size at Optimized (70). If the image will be shown small anyway, set Max Width first.

At every quality setting this converter stores color at half the resolution of brightness in each direction (4:2:0 chroma subsampling). That is standard for photos, but thin red or blue text can look fuzzy even at Maximum (100). If you must hit an exact limit such as 100 KB, follow the guide to compress an image to 100KB.

When to keep PNG instead

Image Better format Why
Photo or realistic render JPG Several times smaller
Logo, icon or sticker for varied backgrounds PNG or WebP Needs transparency
Screenshot, chart, diagram or text PNG Crisp edges, rarely smaller as JPG
Image you will edit again PNG master, JPG copies Each JPG save loses more detail
Upload form that accepts only JPG JPG, White fill Then check its size limit

WebP keeps transparency and is usually smaller than PNG, but some forms and older apps still accept only JPG. The guide to converting images to WebP covers when that switch makes sense.

Other ways to convert PNG to JPG

  • Mac: open the PNG in Preview, choose File > Export, pick JPEG from the Format pop-up menu, adjust the quality and click Save. To convert several files, open them in one window and select them in the sidebar first, as Apple's Preview guide describes.
  • Windows: open the PNG in Paint, then choose File > Save as > JPEG picture.
  • Command line: ImageMagick's -alpha remove option composites the image over the background color, according to the ImageMagick command-line options. Replace white with any color name or a hex code such as "#1e1e1e":
magick logo.png -background white -alpha remove -alpha off -quality 90 logo.jpg

The magick command belongs to ImageMagick 7; version 6 uses convert instead. Whichever method you use, check the JPG's background before you send it.

Troubleshooting PNG to JPG problems

The background came out black

The app dropped the alpha channel instead of filling it, or the fill was set to black. Convert the original PNG again with White under Fill Transparent Areas. Converting the black JPG again cannot help, because it no longer contains any transparency to fill.

The PNG already looks black before you convert it

Some image viewers draw transparent areas on a dark background, so the file itself may be fine. Place it on a colored slide or page: anything that takes on that color is truly transparent.

A gray-and-white checkerboard shows up in the JPG

The checkerboard is painted into the pixels, so the PNG was never transparent. This often happens with images downloaded from search results that are labeled as transparent. No fill setting can remove it; you need a genuinely transparent source.

A white or dark outline surrounds the logo

Its edge pixels were blended toward a fill that does not match the page. Convert again with the matching fill, pick an exact color in Bulk Image Compressor, or keep the PNG.

The JPG is bigger than the PNG

That is normal for screenshots, logos and flat graphics, and Maximum (100) makes it worse. Try High (90) or lower, a smaller Max Width, or simply keep the PNG.

Text looks blurry or has specks around it

JPEG compression smears sharp edges and stores color at reduced resolution. Keep screenshots and text-heavy images as PNG. If a JPG is required, use High (90) and keep the original width.

The converter rejects the file

The file must end in .png, stay within the 30 MiB default limit and have no more than 100 million pixels, and damaged files fail too. A PNG of 12,000 × 9,000 pixels is 108 million pixels, so shrink it in a desktop app first. For PNGs over 30 MiB but within 60 megapixels, Bulk Image Compressor accepts images up to 50 MB each in your browser.

Frequently asked questions

Can a JPG have a transparent background?

No. JPG has no alpha channel, so every pixel is opaque and transparent areas must be filled during conversion. If you need transparency, keep the PNG or use WebP or AVIF, which also support it.

Does converting PNG to JPG reduce quality?

Yes, slightly. JPEG is lossy at every setting, including Maximum (100). For photos at High (90) the change is usually hard to spot at normal viewing size, while text and sharp edges show it first, so keep the PNG as your master copy.

How do I reduce PNG file size without converting to JPG?

Reduce the colors or the pixel dimensions. Bulk Image Compressor keeps PNGs as PNG and by default cuts them to a palette of up to 256 colors while keeping transparency, and Image Resizer scales them to exact pixel sizes. Converting to WebP also keeps transparency.

Will converting the JPG back to PNG bring back the transparency?

No. The fill color is now ordinary pixels, and a PNG made from the JPG keeps them. Start again from the original PNG; the guide to what converting JPG to PNG can and cannot do explains why.

Is JPG the same as JPEG?

Yes. JPG and JPEG are two extensions for the same format, and apps open both the same way. Zutilium's converter saves its results with the .jpg extension.