What Is a Transparent PNG?

By , who builds this tool · Updated

A transparent PNG is an image file in the PNG format whose pixels carry an alpha value, so parts of the picture can be fully or partly see-through and whatever sits behind it shows through. The transparency is stored inside the file. Renaming a JPG to .png, or converting it, adds none, because a JPG has no alpha channel to carry over. To make a transparent PNG, the background has to be cut out first.

What a transparent PNG is

Most images store three values per pixel: red, green and blue. A transparent PNG stores a fourth, called alpha. MDN's glossary describes the alpha channel as the one that specifies the opacity of a color. The PNG specification gives the scale: an alpha value of zero is full transparency, the maximum value is full opacity, and values in between are partially transparent pixels that can be composited against a background, according to the W3C PNG specification. The maximum is 2bit depth − 1, so in an ordinary 8-bit PNG alpha runs from 0 to 255, and in a 16-bit PNG from 0 to 65,535.

One pixel of a transparent PNG stores four values: red, green, blue and alpha. Alpha runs from 0, fully transparent, to 255, fully opaque, in an 8-bit PNG.One pixelRedGreenBlueAAlphaAlpha in an 8-bit PNG0 · clear128 · half255 · solid
Red, green and blue set the color. Alpha sets how much of the background shows through, from 0 to 255 in an 8-bit PNG.

Those in-between values matter. A cut-out with a hard on/off edge looks jagged. With partial alpha, the pixels along a curve, a strand of hair or a soft shadow can be half see-through, and they blend into whatever color ends up behind them.

So "transparent" does not describe the picture. It describes a property of the file: each pixel says how much of the background should show through it.

How does PNG store transparency?

The usual route is a PNG with an alpha channel. The same W3C specification lists two color types where, in its words, an alpha channel is part of the image array: truecolor with alpha, which stores red, green, blue and alpha for each pixel, and greyscale with alpha. Tools that export a cut-out photo normally write the first kind.

There is a simpler route too. Some PNGs have no alpha channel and use a tRNS chunk instead. For greyscale and truecolor images, the specification says that chunk specifies a single transparent color: pixels of exactly that color are see-through, every other pixel is solid. That gives on/off transparency and nothing between, so edges stay hard.

A PNG with neither has no transparency at all. It can still be a perfectly good PNG; it just has a background baked in.

How PNG stores transparency, per the W3C PNG specification
PNG image typeHow transparency is storedPartly see-through pixels?
Truecolor with alpha, greyscale with alphaAn alpha channel in every pixelYes: 0 to 255 in 8-bit, 0 to 65,535 in 16-bit
Indexed-color with a tRNS chunkAn alpha value for each palette entryYes, per palette color
Truecolor or greyscale with a tRNS chunkOne exact color is fully transparentNo, on or off only
Any type with no alpha and no tRNS chunkNothingNo, every pixel is opaque

Can a JPG be transparent?

A JPG cannot be transparent. MDN's image format guide says plainly that JPEG does not support an alpha channel, and it names PNG as the format to prefer when transparency is needed.

That is why the most common mistake fails. People take a product photo with a white or cluttered background, convert it from JPG to PNG and expect the background to disappear. The converter changes the container, not the pixels. The white sweep, the table or the bedsheet comes along because it was never separate from the subject. The background has to be cut out first, and the cut-out saved as a PNG second. When a white background JPG is the better pick, see JPG vs PNG for a transparent background. PNG is not the only option either: WebP supports transparency too.

Phone photos follow the same rule. Apple's Camera Formats setting saves new iPhone photos as HEIF under High Efficiency or JPEG under Most Compatible. A camera photo is not a transparent PNG until someone cuts out the subject and exports it as one.

The same transparent PNG of a coffee cup shown on an editor checkerboard, on a white viewer background and on a black viewer background
One transparent PNG, three viewers: the cup is identical, only what is drawn behind it changes.

Why the same PNG looks different in each app

The file does not say what to draw behind its see-through pixels, so each app picks. Many editors draw a gray checkerboard, while some image viewers fill the gap with white or black. The same file can look different in each, as the image above shows, which is why a PNG that "looks black" in a viewer is often fine.

A colored background is the fair test, and a checkerboard that never moves means a fake. Both are covered step by step in how to check if a PNG is really transparent. If your transparent PNG turns up with a white background somewhere you did not expect, why a PNG has a white background explains the usual causes. And when it appears black, see why a transparent PNG shows a black background.

What is a transparent PNG used for?

A transparent PNG is used whenever an image has to sit on a background chosen later: logos on pages and banners, product cut-outs on store graphics, people and objects on colored slides, and signatures, stamps or stickers layered over other images. The common cases:

When the final background will be plain white anyway, a transparent PNG adds nothing. A white-background JPG does the same job in a smaller file.

How do you make a transparent PNG?

Cut the subject out of its background, then save the result as a PNG. The cut-out is the real work: it decides which pixels become see-through. Saving as PNG just keeps that result.

To make one from a photo, drop it into the PNG background remover. The AI cuts out the subject and the Output menu defaults to Transparent PNG. Touch up (the pencil button) lets you erase leftover background or restore a part that was cut off, which matters most around hair and glass. It works on one photo or a batch, free for up to 40 images per batch with no sign-up and no watermark. Photos never uploaded.

Starting from a white background in a logo or scan is a different job: removing that color directly keeps thin lines cleaner than guessing at a subject.

The short version

A transparent PNG is a PNG with alpha data in it. If the file is a JPG, it is not transparent, whatever the extension says. If it is a PNG, test it on a colored background and trust that result over how it looks in any single viewer.

Need one now? The PNG background remover turns a photo into a transparent PNG in a few seconds.

FAQ

What is PNG transparent?

It means a PNG file whose pixels store an alpha value, a level of opacity from fully see-through to fully solid. Pixels set to fully see-through show whatever is behind the image, such as a colored slide or a web page. A PNG without that alpha data is just an ordinary picture with a solid background.

Is PNG transparent or JPG?

PNG can be transparent. JPG cannot, because JPEG has no alpha channel to store opacity. Every pixel in a JPG has a color, so the background is always part of the picture. If you need a see-through background, save the image as a PNG after the background has been removed.

Is an iPhone photo a PNG?

Usually not. The iPhone Camera Formats setting offers High Efficiency, which saves photos as HEIF, and Most Compatible, which saves JPEG. Neither is a PNG. You get a PNG only when you export or convert one, and even then the photo keeps its background until it is cut out.