iformat.io Logo iformat.io

How to Convert PNG to JPG Without Losing Transparency (The Honest Answer)

P
Jul 03, 2026
3 min read
Reviewed against W3C, ISO, and IETF specifications by the iFormat Editorial Team. Formats, workflows, and file behaviour verified against reference implementations.

Let's get the honest bit out of the way first: you can't convert a PNG to JPG and keep transparency. JPG has no alpha channel. It can't store which pixels are see-through. The moment you convert, transparency has to become something else.

That "something else" is where the interesting choices live. Let's walk through what actually happens, why you probably don't need transparency in the first place, and the workarounds that make sense.

What "transparency" means in an image

A PNG with transparency has two layers of information per pixel: the colour, and how opaque that pixel is (the alpha channel). A logo on a transparent background is really "orange pixel, 100% opaque" for the logo itself and "any colour, 0% opaque" for everything around it.

JPG has no alpha channel. Every pixel is fully opaque. So when a converter flattens a transparent PNG to JPG, it has to pick a colour to fill in where transparent used to be.

The default is usually white (and it's usually wrong)

Most conversion tools flatten transparent pixels onto white. If your PNG is a logo destined for a white webpage, this works fine — the JPG looks identical because the "invisible" background matches the surrounding page. Move that same JPG onto a coloured background and you'll see a white rectangle around the logo where the transparency used to be.

This is the single most common "why does my logo look wrong?" question in file conversion.

Pick the flattening colour deliberately

The converter lets you pick the background colour before flattening. If you know the JPG is going onto a specific background — a coloured page, a business card, a slide — set the flatten colour to match that background. The transparency loss becomes invisible.

When you should just stay with PNG

Genuinely: if you need transparency, keep the PNG. There's no version of "PNG with transparency converted to JPG with transparency" — that's a contradiction in terms.

Common cases where PNG is the right final answer:

  • Logos that will overlay different backgrounds.
  • UI icons in a design system.
  • Product mockups where the product silhouette matters.
  • Anything going into a design tool (Figma, Photoshop, Illustrator) for further work.

The only reason to force PNG → JPG is if you need the smaller file size or an upload portal that only accepts JPG.

When PNG → JPG makes sense

The trade-off is worth it in specific cases:

  • Photograph-content PNGs. If someone sent you a photo saved as PNG (usually happens with iPhone screenshots or some image editors), converting to JPG cuts the file size 60-80% with no visible quality loss. Photos don't benefit from PNG's lossless compression.
  • PNG-only web forms. Some government portals only accept JPG. Convert, flatten to white, upload.
  • Emailing large files. A 10 MB PNG might become a 500 KB JPG that actually sends.
  • Storage optimisation for photo archives. If your archive is full of PNG-saved photos, batch converting to JPG cuts storage dramatically without losing meaningful quality.

The middle-ground format: WebP

Modern browsers support WebP, which has an alpha channel and compresses close to JPG efficiency. If your goal is "smaller file than PNG but keep transparency," convert to WebP instead of JPG. You get roughly a 30% file size reduction versus PNG at the same quality with transparency intact.

Trade-off: WebP has patchier support on older Windows apps and some CMSes. But for anything web-facing in 2026, WebP is the honest better answer than JPG for images with transparency.

The workflow that actually works

  1. Ask yourself: does anything downstream actually need the transparency?
  2. If yes, keep PNG or switch to WebP.
  3. If no, convert to JPG. Set the flatten colour to match wherever it's going.
  4. Preview the result before shipping it.

Bottom line

Keeping transparency during PNG-to-JPG conversion is a hard "no" — the format literally can't hold it. But most of the time you don't actually need transparency in the JPG. If you do, WebP is a modern middle path. If not, pick the flatten colour deliberately and the conversion just works.

Convert PNG to JPG now

Pick your background colour, flatten cleanly, get a JPG in seconds. Free tier for files up to 10 MB.

Open the converter →
Browse All Posts