happytails.ai

Image transparency mask editor

Paint a soft-edged transparency mask over an image to hide or bring back areas, then download the masked PNG and the mask itself as an editable grayscale PNG.

No files selected

Accepted files: .png,.jpg,.jpeg,.webp. Choose one file. Up to 20 MiB in total.

Your result

Report a problem or share an idea.

How to use Image transparency mask editor
  1. Choose an image and run the tool once to open the painter.
  2. Pick erase or paint, set the brush radius and feather, and drag over the preview.
  3. Use Undo or Redo as needed, then choose Apply strokes.
  4. Check the mask and changed-pixel count, then download the masked PNG and the mask PNG.

Useful next steps

How the mask works

The mask is a layer mask from 0 (hidden) to 255 (visible). The new alpha of each pixel is the original alpha x mask / 255, so existing transparency is kept and only reduced or restored by your strokes. Start fully visible to erase areas away, or fully hidden to paint areas in.

Brush and feather

Each stroke is a round brush dragged along straight segments between the points you paint. Inside the radius minus the feather the brush is solid; across the feather it fades along a Gaussian curve to exactly zero at the radius, so pixels outside every brush radius keep their transparency byte for byte. Strength scales the whole stroke.

Strokes and undo

Strokes are stored as a short JSON list of points, not as copies of the image, so undo never uses much memory. Points are in image pixels, where 0,0 is the center of the top-left pixel. The painter preview is approximate; Apply strokes recomputes the exact mask. You can save the strokes text from the report and paste it back later to repeat an edit.