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. 1

    Upload a PNG.

  2. 2

    Set the HSL range to keep.

  3. 3

    Click Download to save the mask.

Example

Before640 × 427

The example input

After640 × 427

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

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.