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
Upload a PNG.
- 2
Set the luminance threshold.
- 3
Click Download to save the mask.
Example
Before640 × 427

After640 × 427

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.
Related tools
Show Grayscale PixelsKeep only grayscale pixels visible.Generate Light Pixel MaskMask showing only light pixels.Show Color PixelsKeep only colored pixels visible.Generate HSL MaskMask pixels within a specific HSL range.Create Multi-Color MaskMask pixels matching specified colors.Create Popular Color MaskMask pixels near the most common color.Create Unique Color MaskKeep the rare colors that stand out from the rest.Create Outlier Color MaskMask pixels far from the average color.