Image Size Reducer
Alpha mask generator

Generate a PNG Alpha Mask

Turn the transparency hiding inside a PNG into a visible black and white map. Every visible pixel becomes white, every hole becomes black, and the mask exports as its own image.

  • Transparency shown as a grayscale map
  • White visible, black hidden, gray partial
  • Full resolution, matching the original
  • Exported as a separate PNG
  • Read in the browser, nothing uploaded
Open the mask tool

The Invisible Layer, Made Visible

Every PNG already stores a transparency value for each pixel. It sits in the alpha channel, invisible until something like this pulls it out.

A PNG has four values for every pixel, red, green, blue, and alpha. The first three carry the color; the fourth carries how much of that color survives. An alpha of zero means the pixel is entirely absent, a value of full means it is fully there, and everything between describes a pixel that is partly see-through. That fourth channel is what makes a cut-out logo sit cleanly on a page. It is also the least visible part of a file, since there is no way to look at transparency directly; you only ever see its effect. A mask fixes that by copying the alpha values into the only three channels an image can show, so the shape of the transparency becomes a picture. When you generate a PNG alpha mask, you are taking a hidden layer and turning it into a usable one.

What the Mask Tool Does

The transparency of a PNG is read and written out as a grayscale mask image, at the same size, ready to reuse.

Mask from transparency

The alpha channel is converted directly, with visible areas white, holes black, and partial values left as gray.

Full resolution output

The mask is generated at the original dimensions, so it lines up exactly with the image it came from.

Edge detail kept

Antialiased and feathered edges are preserved as greys, so soft cut-outs stay soft in the mask.

A separate reusable file

The mask exports on its own, leaving the original untouched and free to be used with other masks.

Local processing

The alpha channel is read in the browser, so the image is never uploaded.

ImageSizeReducer

ImageSizeReducer

@imagesizereducer

A map, not a picture

An alpha mask is a grayscale image in which brightness stands for transparency. It is not a rendering of the artwork or a copy of it; it is a map of one property of the file, and that property happens to be how much of each pixel is present. The distinction matters when using one. The mask carries no color and no detail of the subject, only the shape of where the subject is and how solid it is at the edges. Treating it as a separate, reusable asset rather than as an image to look at is what makes it useful.
Generate this mask
A transparent image beside its alpha mask showing the same shape in grayscale
ImageSizeReducer

ImageSizeReducer

@imagesizereducer

White, black, and everything between

The convention is simple and worth committing to memory. White means fully visible, black means fully hidden, and every gray in between means partly transparent. That is also why the interesting part of an alpha mask is the edge. A cut-out with a hard edge produces a mask with a sharp black and white boundary, while one that was feathered or antialiased produces a band of greys around every boundary. Reading that band tells you exactly how soft the transparency is, and it is the part to look at when the mask is generated.
Generate this mask
An alpha mask with a hard edge beside one with a soft gray transition band
ImageSizeReducer

ImageSizeReducer

@imagesizereducer

The mask is an asset, not an edit

Generating a mask does not change the image it came from. The original PNG keeps its transparency, and the mask is a new file that describes the same thing in a different form. That is what makes a mask reusable. Once a complex cut-out has been turned into a mask, that mask can be applied to other images, handed to someone else, or fed into software that does not read PNG transparency itself. The mask becomes the shared vocabulary for the shape, independent of the picture it was originally traced from.
Generate this mask
One mask file applied to several different images
ImageSizeReducer

ImageSizeReducer

@imagesizereducer

Why compositing calls for masks

In any image editing that layers pictures, a mask is how an effect is confined to a region. Blend two images and the recipe needs to know where one should show and where the other should take over; that recipe is a mask. That is why a mask is often generated first and used many times. An effect applied through a mask touches only the area the mask permits, which keeps the untouched parts of the image exactly as they were. A soft mask does the same job with a transition, letting one image fade into another along the gradient of the greys.
Generate this mask
Two images blended through a soft alpha mask
ImageSizeReducer

ImageSizeReducer

@imagesizereducer

Masks in 3D and game engines

Outside still images, the alpha mask becomes a technical necessity. A leaf, a fence, or a tuft of foliage is usually a flat plane with a picture of the object painted on it, and the engine needs to know which parts of that plane should be see-through. The mask supplies exactly that information. Some engines read it from the alpha channel of the color texture, and many read it from a separate grayscale image, which is why a tool that can produce the mask on its own is worth having. Getting the mask right is what makes a flat plane read as a solid object.
Generate this mask
A foliage texture beside the alpha mask that shapes it in a game scene
ImageSizeReducer

ImageSizeReducer

@imagesizereducer

Matte layers for video and animation

The same idea runs through moving images. In video and animation, a matte is a mask that travels with the footage so that an effect, a color grade, or a replacement background applies to exactly the right region on every frame. A generated mask is often the starting point for such a matte, either as the final shape or as a base to be refined. The important property is unchanged: it is an image of transparency, matching the footage frame for frame, and usable wherever a mask is accepted.
Generate this mask
A video matte layer matching the shape of the subject in the footage
ImageSizeReducer

ImageSizeReducer

@imagesizereducer

Alpha mask or luminance mask

Two kinds of mask look identical and are built from very different sources. An alpha mask comes from the transparency channel, describing what is present. A luminance mask comes from brightness, describing what is light or dark. Keeping them apart prevents a common mistake. When you generate a PNG alpha mask, the values come from the fourth channel, not from the colors, so a bright white object and a black object with the same outline produce the same mask. If brightness is what should drive the mask, that is a different operation entirely.
Generate this mask
An alpha mask beside a luminance mask made from the same image's brightness
ImageSizeReducer

ImageSizeReducer

@imagesizereducer

Made in the browser

Masks are generated from production assets: character textures, product cut-outs, unreleased logos. Those files are frequently under wraps, and sending them elsewhere to have a channel extracted is unnecessary. The alpha is read and the mask exported on the device. There is no upload and no account, so the source artwork never leaves the machine.
Generate this mask
An alpha mask being generated from a PNG inside a browser window

How to Generate a PNG Alpha Mask

Four steps. The third is the one worth a close look, since the gray band at the edges is where a mask proves its quality.

Step 1

Upload the PNG

Use a version that retains its transparency, since the mask is built entirely from the alpha channel.

Step 2

Read the alpha

The tool inspects the fourth channel of every pixel and maps it into visible brightness.

Step 3

Check the edges

Look at the boundary of the mask: a sharp black and white cut means hard transparency, while a band of greys means the edge is soft.

Step 4

Download the mask PNG

Export the grayscale mask as its own file, keeping the original image exactly as it was.

Who Generates Alpha Masks

Four kinds of work where transparency has to become a usable file.

TA

3D artists

texture transparency

Foliage and decals need a transparency map alongside the color texture. Generating it from the artwork saves building one by hand.

GD

Game developers

sprites and shader masks

Shaders often expect a separate mask rather than an alpha channel. Having the grayscale version on hand keeps the pipeline consistent.

VE

Video editors

matte layers

A mask that matches the subject frame for frame is the base for an effect or a background replacement. Starting from the existing transparency saves a manual roto.

DE

Designers

compositing and blending

Confining an effect to one region is far easier with a mask. Keeping the mask as a reusable asset means the same shape can be applied across a whole set of images.

Frequently Asked Questions

What an alpha mask is, and how it is used once it has been generated.

Make the invisible layer visible

Upload a PNG, read its alpha channel, check the edges, and export the transparency as a reusable black and white mask.

Generate this mask
The Fourth Channel

Every PNG is carrying a second image nobody sees

Alongside the red, green, and blue that make up the picture, a PNG stores an alpha value for every pixel, and that value is the whole reason a cut-out can sit on a page without a box around it. The catch is that transparency can only be observed through its effect, never looked at directly, which is exactly the gap a mask fills: it copies those hidden values into brightness, so white shows what is present, black shows what is absent, and gray shows everything in between. Once that shape exists as its own file it becomes reusable, applied to other images, handed to another person, or fed into a game engine or a video pipeline that never wanted the color at all. Check the gray band at the edges, since that is where a soft cut-out proves itself, and remember that an alpha mask describes what is present rather than what is bright. Generate a PNG alpha mask and a hidden layer turns into an asset.

Smaller files, same picture.