SaafKit

How to make an image background transparent, and when a PNG is the wrong answer

The SaafKit team 4 minute read

A transparent image is not an image with white removed. It is an image carrying a fourth number per pixel, on top of red, green and blue, that says how opaque that pixel is. Zero means invisible, 255 means solid, and everything in between is a partly see through pixel that lets what is underneath show through.

That fourth number is called the alpha channel, and whether your file keeps it depends entirely on the format you saved as. This is the source of nearly every transparency problem anyone runs into.

Which formats keep transparency

FormatTransparencyUse it when
PNGYes, full alphaLogos, product cutouts, anything going into a design file. The safe default.
WebPYes, full alphaThe same jobs as PNG but on a web page, where the file is often a quarter of the size.
AVIFYesSmaller again, and fine in current browsers. Less friendly to older software.
GIFOne colour onlyAlmost never. A pixel is either fully visible or fully gone, so soft edges come out jagged.
JPGNoPhotographs with no transparency. Saving a cutout as JPG fills the transparent area, usually with black or white.
SVGYes, it is vectorLogos and icons drawn as shapes. Not a route for photographs.

The practical rule: PNG to hand to a person or a design tool, WebP to put on a web page, JPG only when there is no transparency to lose.

Making one from a photograph

  1. Open a background remover and drop the photo in.
  2. Leave the background set to transparent. The checkerboard pattern you see behind the subject is not part of the image. It is how every editor draws nothing.
  3. Check the edges before you download. Soft areas like hair benefit from a little feather, and a coloured fringe from the old background goes away if you pull the edge in a pixel.
  4. Download as PNG. If the file is going straight onto a web page and the size matters, take the WebP instead.
About that checkerboard

Grey and white squares behind your subject mean transparency, not a pattern. If you open the downloaded PNG and see those squares, it worked. If you see white, it did not.

Try it on your own photo

The cutout runs on your device, at full resolution, with no account and no counter. Nothing is uploaded.

Open the background remover

How to tell whether it actually worked

Three checks, quickest first.

Open it in a browser. Drag the PNG into a browser tab. Browsers draw transparency as white by default, which makes this a poor test on its own, but it confirms the file opens.

Put it on a dark background. Drop it into a slide or document with a black fill behind it. A white box appearing around your subject means the transparency was lost at some point in saving, and the usual culprit is a JPG step somewhere in the chain.

Check the file size. A transparent PNG of a cut out product is usually smaller than the original photograph, because large areas of it are now empty. If your cutout came back bigger than the photo you started with, something resaved it in a way that filled the background in.

When a transparent PNG is the wrong thing to send

Marketplace listings. Amazon wants a pure white background on the main image, not transparency. Hand it a transparent PNG and the platform fills the background with whatever it feels like. Export with white behind the product and send a JPG.

Printing. Print workflows handle transparency inconsistently and some printers flatten it to white without telling you. Ask the printer what they want, then flatten it yourself onto the right colour so nobody else makes the decision.

Email signatures. Some email clients render a transparent PNG on a dark theme and your dark logo vanishes. A version with a solid background, or a light variant of the logo, is the safer file.

Anywhere file size is critical. A full resolution transparent PNG of a photograph is a heavy file. If it is going on a product page, WebP at the same dimensions is typically a quarter of the weight with no visible difference, and the page loads faster for it.

Keeping the file reasonable

PNG is lossless, which is why it is large. For a photographic cutout you have three levers: export WebP instead, reduce the pixel dimensions to what the page actually displays, or crop the transparent space away so you are not storing thousands of empty pixels.

That last one is worth doing out of habit. A product photographed in the middle of a wide frame leaves a lot of nothing around it after a cutout, and cropping tight to the subject often halves the file before any compression is involved.

The SaafKit teamWe build SaafKit, a background remover that runs on your own device instead of on a server. We write these guides because we keep answering the same questions in email.

Keep reading