Generate HSL Mask
Create a mask from pixels within a specific HSL range.
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 HSL range to keep.
- 3
Click Download to save the mask.
Example
Before640 × 427

After640 × 427

Frequently asked questions
How do I isolate red pixels?
Set hue range to 0–30 and 330–360, with saturation min around 50%.
About this tool
Generate HSL Mask keeps only pixels whose hue, saturation, and lightness fall within the specified ranges, making all other pixels transparent. Use it to isolate specific colors or tones. All processing runs locally in your browser. Your image is never uploaded to a server.
Related tools
Generate Light Pixel MaskMask showing only light pixels.Create Multi-Color MaskMask pixels matching specified colors.Generate Dark Pixel MaskMask showing only dark pixels.Create Popular Color MaskMask pixels near the most common color.Show Grayscale PixelsKeep only grayscale pixels visible.Create Unique Color MaskKeep the rare colors that stand out from the rest.Show Color PixelsKeep only colored pixels visible.Create Outlier Color MaskMask pixels far from the average color.