Why JPG removes transparency
PNG supports an alpha channel, which lets parts of an image be fully or partly transparent. That is why logos, icons and cut-out product photos are usually saved as PNG. JPG has no alpha channel at all. Every pixel in a JPG is opaque, so when you convert a transparent PNG to JPG, the transparent areas must be replaced with a solid colour. A correct converter does not simply delete those pixels; it composites semi-transparent edges — soft shadows, anti-aliased text and feathered cut-outs — onto the chosen colour so the edges stay smooth. If the fill colour does not match the final background, you will see a visible rectangle or a faint halo around the subject.
Choose the right background colour
Open the PNG to JPG converter above and add your transparent PNGs. The background colour picker defaults to white, which suits documents, forms and most websites. Use black for dark designs, or choose a custom colour that matches the page or brand. Move the quality slider up for images with small text or sharp edges, where JPG artefacts show first. The conversion happens in your browser, and the result list shows the size before and after so you can tell whether switching formats was worth it. Download files individually or as a ZIP.
- Open the PNG to JPG converter and choose your PNG files.
- Pick white, black or a custom fill colour for transparent areas.
- Set a high quality for text or logos, then download the JPG.
If keeping transparency matters, do not export to JPG. Keep the PNG, or convert to WebP, which supports alpha transparency and usually produces a much smaller file than PNG. JPG is the right choice only when the destination requires it or when a photographic PNG is far too large. For logos and line art with flat colours, PNG is often already smaller and sharper than JPG, so compare the actual bytes before deciding.
Choosing a fill colour for different backgrounds
The right fill colour is simply the colour behind the image wherever it will be used. Match it and the transparent rectangle disappears. Mismatch it and you will see a box or a halo. These are the common choices.
| Where the image will appear | Fill colour | Note |
|---|---|---|
| Form, document or white website | White (#FFFFFF) | Default; matches most application forms |
| Dark website or presentation | Black (#000000) | Prevents a white rectangle |
| Branded page or report | Brand background colour | Type a hex value in the colour picker |
| Unknown destination | Keep PNG instead | JPG cannot adapt to different backgrounds |
Fixing halos around cut-outs
A halo appears because the edge pixels of a cut-out are only partly transparent. When those pixels are blended onto a white background but the image is later placed on a dark one, a pale fringe remains. The fix is to choose the correct fill colour before export, or to remove the fringe in an editor with a decontaminate or edge-cleanup tool. Increasing JPG quality will not remove a halo — it only reduces compression artefacts. If the image must work on several backgrounds, keep a transparent PNG or WebP as the master and export separate JPG copies for each destination.
When to keep PNG or use WebP
Keep PNG for logos, icons, line art and screenshots with small text. These images have flat areas and crisp edges that PNG stores efficiently, while JPG can introduce smudges around letters. Use WebP when you need transparency but also want a smaller file: it supports an alpha channel and typically compresses much better than PNG. Convert to JPG only when the receiving system requires it or when a photographic PNG is too large. Compare the displayed file sizes after conversion rather than assuming one format is always smaller.
Preparing a transparent PNG before conversion
Start with the cleanest possible cut-out. A PNG with ragged edges or stray background pixels will not improve when flattened into a JPG — the artefacts simply become part of the opaque image. Crop the canvas tightly around the subject so the solid fill colour does not add a wide border. If the image has a soft shadow, decide whether the shadow should blend into the chosen background; a shadow created for transparency often looks grey and muddy once it is composited onto white.
Check the dimensions too. A 4000-pixel cut-out from a design tool is usually far larger than any form or web page needs. Resizing before conversion reduces both the file size and the chance of visible edge artefacts. Keep the layered source file if you have one — it is always better to export a fresh transparent PNG than to edit a flattened JPG.
PNG to JPG for web pages
Transparency aside, the main reason to convert a PNG photo for a website is speed. Photos stored as PNG can be several times larger than a good JPG, and large images are the most common cause of slow pages. Exported at the correct display size and a quality around 80–85, a JPG usually looks identical on screen and loads much faster. If the site supports modern formats, WebP or AVIF will be smaller still while keeping transparency.
Do not convert purely because the file name says PNG. Some simple graphics compress better as PNG than as JPG. Convert one test image, compare the sizes shown next to the result, and only apply the change to the rest of the batch when the numbers make sense. Add descriptive alt text in your CMS regardless of format — that helps both accessibility and search.
Troubleshooting
- Text looks fuzzy: JPG is wrong for sharp text; keep PNG or raise quality above 95.
- Colours shifted: a coloured background fill was applied to partly transparent pixels; pick the matching colour.
- The file grew bigger: simple flat graphics are sometimes smaller as PNG — keep the original.
- A form rejects the JPG: check its KB limit and compress the result if needed.