EIT easy-image-tools / Extract the alpha mask of an image

Extract the alpha mask of an image

Turns transparency into a black-and-white opaque mask.

Nothing found — try another word.

01

Extract the alpha mask of an image

Nothing found — try another word.

Nothing found — try another word.

Preview
Source
Drop a PNG here or click / paste (Ctrl+V) — processed locally
Result
no result yet

Extract the alpha mask turns a picture into a black-and-white image of its own transparency: every pixel takes the opacity value of the original as its gray level, so full opacity becomes white, full transparency black, and everything between them a shade of gray. The result is completely opaque — no transparency of its own is left — and all color information is discarded, which makes it a working picture for filters and thresholds rather than something to show. PNG, JPG, WebP and BMP are all accepted, and the conversion happens in your browser.

  • Runs entirely in your browser: no upload, no server, no signup.
  • White is opaque, black is transparent, gray is semi-transparent.
  • The mask itself has no transparency and no color — shape information only.
  • An ordinary image: feed it into threshold, blur or posterize tools.
  • Free with no daily limit, no watermark and no account, also for commercial use.

How to use it

  1. Drop the image into the source area, or pick a file from your device.
  2. Read the mask: white is opaque, black is transparent, gray is semi-transparent.
  3. Download the mask and feed it into a threshold or a blur step for a hard shape.

Questions

Why is my mask gray instead of black and white?

Because alpha is a continuous value. A pixel at 40 percent opacity becomes a mid gray, and that is exactly the information the mask is meant to keep. Use harden edges if you want every pixel fully on or fully off.

What can I do with a mask?

It is an ordinary black-and-white image, so the black and white threshold, blur, sharpen and posterize tools all work on it, and the result can be used as an alpha channel of its own.

Does it keep my colors?

No. Colors are replaced by the opacity value, so the mask shows shape and nothing else. Use the show transparent areas tool when you want to see the see-through pixels in the picture itself.

Is this the same as making the background transparent?

No, it is the opposite. The mask has no transparency at all: it describes where your object was instead of keeping it. For a usable cut-out, use remove background or remove color.

Related tools