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.
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
- Open PNG to JPG and add one or more PNG files.
- In Background color (for transparent areas), type a hex code. It starts as
#FFFFFF, which is white. Black is#000000. - Press Convert to JPG.
- 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 goes | Colour to enter |
|---|---|
| White web page, document or print | #FFFFFF |
| Dark slide or dark-mode page | The slide colour, for example #111827 |
| Branded banner | The brand colour, which you can sample with Image Color Picker |
| Unknown background | Do 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
- Keep it as PNG, and shrink it with Compress PNG, described in compressing PNG without losing transparency.
- Use WebP, which keeps alpha and is smaller. See converting PNG to WebP.
- If an upload form insists on JPG, convert with the fill colour that matches the page the image will be shown on.
What changes besides the background
- Quality: the tool saves JPG at 92%, a fixed setting with no slider. For photos this is visually close to the original. For text and sharp edges, ringing around letters can appear.
- Size: usually much smaller for photographs and screenshots, but a simple flat-colour graphic can occasionally get bigger.
- Dimensions: unchanged.
- The change is one way: converting back to PNG gives you a PNG with a solid background, not the transparency. Keep the original PNG.
Troubleshooting
- The background came out black. You entered 000000 or an invalid code. Use a six-digit code, with or without the hash.
- Colour not what I typed. Check for a typo, for example O instead of 0.
- File skipped. Only PNG files are accepted. For other types, try the Batch Image Converter, whose JPG option has its own background setting.
- Still too big for a form. Compress with Compress JPG. For the full list of reasons forms reject files, read this checklist.
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.