Skip to content
GPU-assistedUpload required

Make a Transparent PNG

A transparent PNG is an ordinary image with a fourth channel that records how opaque each pixel is. This tool runs a segmentation model over your photo, uses the result as that fourth channel, and hands back a PNG at the original pixel dimensions. The mask is the whole job, so the page below is mostly about how to look at one — where soft edges go wrong, why a result that looks perfect on white can look wrong everywhere else, and which images are not worth attempting.

Use this without the search next time. Prathom Workbench puts Prathom's tools in your toolbar.

Add to Chrome — free

Drop an image here, or click to browse

Up to 25 MB. Uploaded temporarily, deleted after processing.

GPU-assisted — results vary slightly between runs.

What it does

  • Alpha channel written from a segmentation mask
  • Output keeps the source pixel dimensions
  • PNG download with transparency preserved
  • Edge review against contrasting backdrops

How to use Transparent PNG

  1. 1

    Pick an image with a findable subject

    One clear subject reads best. A model separates figure from ground, so a photo where those two are the same color gives it nothing to work with.

  2. 2

    Run the cutout

    The image goes to the GPU workspace, a mask is produced, and that mask becomes the alpha channel of a PNG at the same size as your original.

  3. 3

    Check the edge on two backgrounds

    View the result on something dark and something light. A halo invisible on white is obvious on black, and it is the same halo either way.

How it works

Three steps, and only one of them is interesting.

A segmentation model — BiRefNet — looks at the image and produces a mask: a grayscale image the same size as yours where bright means subject and dark means background. That mask is then written into the PNG as its alpha channel, and the color pixels are passed through untouched. Your subject is not redrawn, recolored, or regenerated. The only thing that changes is which pixels are declared visible.

That is worth knowing because it tells you what can and cannot go wrong. The subject cannot come back distorted, because nothing generated it. What can go wrong is the boundary: too much cut away, too little, or a soft edge resolved into a hard one.

Reading a mask

There is one habit that catches almost everything. Look at the result twice, once on a dark background and once on a light one.

Masks fail asymmetrically. Leftover background pixels are pale in a photo shot on white, so they vanish against a white page and appear as a gray fringe on a dark one. Over-cutting does the opposite: the missing sliver of shoulder is invisible against a matching backdrop and obvious against a contrasting one. If you check on one background only, you will ship whichever error that background happens to hide.

What the edge pixels actually contain

The fringe question comes up often enough to be worth stating plainly.

In the original photograph, a pixel sitting exactly on the subject's outline is not subject-colored. It is a mixture — part subject, part whatever was behind it — because the sensor averaged both across that pixel's area. When the background is removed, that mixture stays. A dark jacket photographed against a white wall has an outline of mid-gray pixels, and those pixels remain mid-gray when you place the cutout on a black page.

No mask can fix this, because the information needed to fix it was never recorded. The practical response is to accept a one-pixel erosion of the edge, which trades a sliver of the subject for a clean boundary.

Where this is the wrong tool

Glass, smoke, water, veils, and anything in motion blur are all cases where the correct alpha value is fractional and varies per pixel. A segmentation model is answering a two-way question and will give you a firm boundary through a region that genuinely was not firm. The output usually looks confident, which is worse than looking wrong.

Fine hair is the borderline case. You will get a believable silhouette and lose the individual strands. For a profile picture that is often fine; for a composite against a busy scene it usually is not.

Publication gate

This page ships when the workflow has been run against a product photo, a portrait with loose hair, and an image with a low-contrast subject, with the output inspected at full size on both a dark and a light backdrop.

Examples

Product shot on a studio sweep

bottle.jpg - 2400x1600, a bottle on a continuous pale backdrop
prathom-transparent-png.png - 2400x1600 RGBA, bottle isolated

A studio sweep is the easy case. The gradient behind the product is smooth and unlike the product, which is exactly the separation the model is looking for.

Portrait with loose hair

portrait.jpg - 1600x2000, a person against a mid-gray wall
portrait-cutout.png - 1600x2000 RGBA, subject isolated

Individual strands are where masks fail. The model produces a plausible boundary rather than per-hair transparency, so fine flyaways are usually cut or left as a soft fringe.

Frequently asked questions

Why does my cutout have a faint outline on a dark background?

Because the original edge pixels were a blend of the subject and the old background. A pixel that was half subject and half white wall is stored as a pale color with partial opacity, and it keeps that pale color when you place it on black. Nothing has gone wrong with the mask; the color information for a pure subject edge was never in the photograph. Cropping in by a pixel or two removes it.

Will the file still be transparent after I use it somewhere else?

Only if whatever you open it in preserves the alpha channel. Saving as JPG discards transparency entirely and fills it, usually with black or white. Pasting into a document or a slide often composites onto the page background immediately. The PNG you download here has real transparency; keep it as the master and export flattened copies from it rather than the other way round.

Does it work on glass, smoke, or motion blur?

Not well, and the reason is structural rather than a limit of this particular model. Those subjects are partly transparent in the original photograph, so the honest answer for a given pixel is a fractional opacity that also depends on what was behind it. A segmentation model answers a simpler question, subject or not subject, and returns a firm edge where the truth was gradual.

Is the image uploaded?

Yes. This is a GPU workflow, so the file is sent to the ComfyUI host Prathom has configured, processed, and the result held only long enough for you to download it. It is not a browser-local tool and this page does not claim to be one. If a file cannot leave your machine, this is not the right tool for it.

Is the AI Transparent PNG tool free, and do I need an account?

Yes, free and without registration. Everyone is served the same transparent png workflow, at the same quality, with no watermark and no trial that runs out. An upload can be up to 25 MB. The one thing worth knowing is that the result is temporary by design, so download it rather than bookmarking the job and returning tomorrow.