Generate PNG Alpha Mask

Create a visible mask image where colors represent transparent, semi-transparent, and opaque areas.

Drop an image here

PNG, JPG, WebP, GIF or BMP. You can also paste an image.

No result yet

Options

How to use

  1. 1

    Upload a PNG by clicking the upload area, dragging a file in, or pasting from your clipboard.

  2. 2

    Set colors for fully transparent, semi-transparent, and fully opaque areas.

  3. 3

    Enable "Real Alpha Mask" to get a precise grayscale alpha map instead.

  4. 4

    Click Download to save the mask image.

Example

Before640 × 640

The example input

After640 × 640

The example result
Generate PNG Alpha Mask on a transparent logo, with the default settings.

Frequently asked questions

How does this differ from Extract Alpha Channel?

Generate Alpha Mask focuses on creating a clean two-tone or three-tone mask for compositing use, while Extract Alpha Channel offers more flexibility in colorizing the full range of alpha values.

What is "Real Alpha Mask" mode?

In Real Alpha Mask mode, each output pixel is a gray value equal to the source alpha. A fully opaque pixel outputs white (255, 255, 255) and a fully transparent pixel outputs black (0, 0, 0). This is the standard format for luminance masks.

About this tool

Generate PNG Alpha Mask turns a PNG's transparency data into a flat mask image. Opaque areas become one color, transparent areas become another, and semi-transparent pixels blend toward a midpoint color. Enable "Real Alpha Mask" to output a grayscale image where brightness directly represents the original alpha values. All processing runs locally in your browser. Nothing is uploaded to any server.