Generate Dark Pixel Mask

Create a mask showing only dark pixels from a PNG.

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.

  2. 2

    Set the luminance threshold.

  3. 3

    Click Download to save the mask.

Example

Before640 × 427

The example input

After640 × 427

The example result
Generate Dark Pixel Mask on a sample photo, with the default settings.

Frequently asked questions

What counts as a dark pixel?

Any pixel with luminance below the threshold.

About this tool

Generate Dark Pixel Mask produces a black-on-transparent mask where only pixels below a luminance threshold are kept. Use it to isolate shadows, dark text, or dark patterns. All processing runs locally in your browser. Your image is never uploaded to a server.