Create layer masks for all detected objects in a layer

Last updated on Oct 27, 2025

Learn how to use Mask All Objects to automatically generate masks for every detected object in a layer and apply targeted edits in Adobe Photoshop.

Create layer masks for all detected objects

Select a single layer in the Layers panel.

Select Layer > Mask All Objects.

Add an adjustment or filter to a masked object

In the Layers panel, locate the layer mask group for the object you want to edit.

Select the layer mask group.

Apply your chosen adjustment or filter. For example, select Layer > New Adjustment Layer > Hue/Saturation, then adjust the color slider to change the object’s color.

Tip

To view what is being masked on the canvas:

Cmd-click (macOS) or Ctrl-click (Windows) the layer mask thumbnail to view the selection as marching ants.

Select the Move tool, turn on Show Transform Controls in the Options bar, then select the layer mask to view the masked object.

Turn on Smart Guides by selecting View > Show > Smart Guides, select a layer, hold Cmd (macOS) or Ctrl (Windows), and the mask will be highlighted on canvas.

Remove empty layers

Select File > Scripts > Delete All Empty Layers after completing your masking edits.