Image Tips

Convert PNG to JPG Without a White Background (Choose the Colour)

Transparent PNG in, white-backed JPG out: that is not a bug, it is how JPG works. What you can control is the colour that fills the see-through areas. Here is how to choose it.

👉 Try it free: PNG to JPG: pick the background colour
Add PNG files, set the colour for transparent areas and convert. Quality is fixed at 92%.

The honest answer first

A JPG cannot be transparent. The format has no alpha channel, so every pixel must have a solid colour. When you convert a PNG with a see-through background, something has to fill that area. You cannot get rid of the background in a JPG, but you can choose its colour, and white is only the default.

Choose the fill colour before converting

  1. Open PNG to JPG and add one or more PNG files.
  2. In Background color (for transparent areas), type a hex code. It starts as #FFFFFF, which is white. Black is #000000.
  3. Press Convert to JPG.
  4. Download with Download Image or Download All (ZIP). Names stay the same with a .jpg ending, and several files arrive as converted-images.zip.

Opaque areas of your image are not affected by this field. Only pixels that are fully or partly transparent take on the colour you enter.

Matching the colour to where the JPG will be used

Where it goesColour to enter
White web page, document or print#FFFFFF
Dark slide or dark-mode pageThe slide colour, for example #111827
Branded bannerThe brand colour, which you can sample with Image Color Picker
Unknown backgroundDo not use JPG; keep PNG or WebP

To find an exact brand colour, pick it from a screenshot or logo, as shown in picking a colour from an image, and paste the code into the field.

Why edges can show a light halo

The soft edge of a cut-out logo is made of partly transparent pixels. After conversion those pixels blend with the fill colour you chose. If you filled with white but place the JPG on a dark background, a thin white fringe shows around the shape. The cure is to fill with the same colour as the background it will sit on, which hides the edge completely. When the destination background varies, a JPG is the wrong format.

Shadows and glows need extra care

A soft drop shadow is stored as black at low opacity. Over a white fill it appears grey, over a dark fill it nearly vanishes, and over a coloured fill it takes a tint of that colour. If the shadow matters, set the fill to the colour of the surface the image will sit on, then look at the result on that surface. A glow behaves in the same way. If the same graphic must look right on both light and dark pages, produce two JPG versions with two fill colours, or use a format that supports transparency.

A worked example: a logo for an email signature

You have a transparent PNG of a logo, and the email system accepts JPG only. The signature sits on a white background, so you keep the default #FFFFFF and convert. The result looks identical in the email. A few weeks later someone opens the same email in a dark-mode client that paints the message dark grey, and the logo shows as a white rectangle. That is the limit of JPG: the fill is part of the picture, so it cannot adapt. If your audience uses dark mode, a PNG, if the system allows it, is the safer choice. If it does not, a mid-tone fill that works acceptably on both can be a compromise, though it will rarely look perfect on either.

Better options when you want to keep transparency

What changes besides the background

Troubleshooting

Conversion takes place in your browser. For several files the ZIP is built there too with JSZip from a CDN, and your images are not uploaded.

Frequently Asked Questions

Can a JPG have a transparent background?

No. JPG has no alpha channel, so transparent areas are filled with a solid colour.

How do I change the white to another colour?

Enter a hex code in the Background color box before pressing Convert to JPG. The default is #FFFFFF.

Why is there a white fringe around my logo?

Soft edge pixels blend with the fill colour. Use a fill that matches the background where the JPG will be shown.

What should I use if I need transparency?

Keep the PNG or convert to WebP, which stores transparency and is usually smaller.

What quality does the JPG use?

A fixed 92 percent. There is no slider in this tool.

Can I get the transparency back after converting?

No. Keep the original PNG, because the conversion replaces transparent pixels with the fill colour.