Sub topic 1
What a selection is and how to clear or reuse it
A selection in Photoshop is a boundary that limits where your edits apply. This chapter covers how a selection works internally, how to make, move, and clear one, and how to bring it back after you have lost it. Later chapters build on these basics.
Prerequisites
This chapter assumes you can already do the following:
- Find the toolbar, the Options bar, and the Layers panel in the Photoshop workspace.
- Tell a regular layer from the Background layer, and know which layer is active.
- Hold modifier keys such as Shift, Alt (Option on Mac), and Ctrl (Cmd on Mac) while you click or drag.
You do not need any experience with the selection tools themselves.
What a selection is
A selection is a region of the canvas that Photoshop treats as editable. Everything outside the region is protected. If you paint, fill, apply a filter, adjust color, or press Delete, the change touches only the selected area of the active layer.
On screen, an active selection appears as "marching ants", a moving dashed line along its edge. The ants only mark where the selection's boundary sits. They are not part of your image and never print or export.
Three points are easy to miss:
- A selection is not a layer. It is a separate piece of document state. It does not change your pixels until you apply an edit.
- Edits affect only the active layer. The selection can cover pixels on many layers, but a brush stroke or Delete press changes only the layer you have targeted in the Layers panel. If nothing seems to happen, check which layer is active first.
- A selection can be partial. Each pixel has a selection strength from 0% (not selected) to 100% (fully selected). Soft or feathered edges use values in between. The next chapter sections cover how edges produce those in-between values.
The selection as a grayscale map
Internally, Photoshop stores a selection as a grayscale map the size of the canvas. White means fully selected, black means not selected, and gray means partially selected. You can see this map directly if you save a selection to a channel or turn it into a mask, which a later chapter covers. Thinking of a selection as a grayscale map explains behaviors such as why a feathered edge only partly changes the pixels along the boundary.
Making a basic selection
The simplest selections come from the marquee tools. They share a toolbar slot, so press M to switch to the Marquee group, then press Shift+M to cycle through its tools.
| Tool | Shape it selects |
|---|---|
| Rectangular Marquee | Rectangles |
| Elliptical Marquee | Ellipses and circles |
| Single Row Marquee | A one-pixel-tall row across the canvas |
| Single Column Marquee | A one-pixel-wide column down the canvas |
Drag on the canvas to create the selection. While you drag, two modifier keys change the result:
- Hold Shift to constrain the shape to a square or circle. Release Shift after you begin the drag, or the shape stays constrained.
- Hold Alt (Option on Mac) to draw from the center outward instead of from a corner.
You can hold both together. Press them after you start dragging, because pressing Shift before you click switches to the Add mode, which the next chapter explains.
The Options bar for a marquee tool also has a Style menu. Normal lets you drag freely. Fixed Ratio keeps a width-to-height ratio such as 16:9. Fixed Size creates a selection of exact pixel dimensions with a single click.
Selecting by layer content
You can select the pixels of a layer without tracing anything. Hold Ctrl (Cmd on Mac) and click the layer's thumbnail in the Layers panel. Photoshop loads the layer's non-transparent pixels as a selection. This is a quick way to select a cutout object that already lives on its own layer. Partly transparent pixels are loaded as partial selection.
Selecting everything
Choose Select > All (Ctrl/Cmd+A) to select the entire canvas. This is useful for copying a whole layer, or as a starting point before you subtract from the selection.
Moving a selection
You can move a selection boundary without moving any pixels. This is a common point of confusion.
- Pick any marquee or lasso tool.
- Place the pointer inside the existing selection. The pointer changes to an arrow with a small dotted box.
- Drag. The ants move and the pixels stay put.
If you press an arrow key while a selection tool is active, the boundary moves one pixel. Shift plus an arrow moves it ten pixels.
Compare this with the Move tool (V). With the Move tool active, dragging inside a selection lifts the selected pixels of the active layer and moves them, leaving a hole behind on a regular layer. Use a selection tool to move the boundary and the Move tool to move the content.
Transforming the boundary only
To resize or rotate the boundary without touching pixels, choose Select > Transform Selection. Handles appear around the selection, and you can scale, rotate, or skew it. Press Enter to commit it. This differs from Edit > Free Transform (Ctrl/Cmd+T), which transforms the pixels themselves.
Clearing a selection
Removing a selection is called deselecting. Pick whichever method suits your workflow:
- Select > Deselect, or press Ctrl/Cmd+D. This is the usual method.
- Click once with a marquee tool in an empty area of the canvas when its mode is set to New selection. In current versions this click clears the selection.
- Press Esc while you are still dragging a selection to cancel it.
Deselecting does not undo the edit you made inside it. It only removes the boundary.
Why deselecting matters
A forgotten selection is one of the most common sources of confusing results. These symptoms usually point to it:
- A brush stroke only appears in part of the canvas.
- A filter or adjustment affects a small region.
- A tool seems to do nothing, because you are working outside the selection.
- Copy and paste produces a smaller piece than expected.
Whenever an edit behaves oddly, look for marching ants and press Ctrl/Cmd+D.
Reusing a selection
Deselecting is not permanent. Photoshop gives you several ways to get a selection back.
Reselect
Choose Select > Reselect (Ctrl/Cmd+Shift+D) right after you deselect. Photoshop restores the most recent selection. This only works for the last selection, and it is lost if you close the document.
Undo and History
Ctrl/Cmd+Z undoes one step, including a deselect. For further back, open Window > History. Each selection and each deselect is a state in the list. Click an earlier state to return to the moment when the selection existed. Be aware that stepping back also undoes the edits made after that state, and that the History panel keeps a limited number of states (50 by default).
Inverse
Select > Inverse (Ctrl/Cmd+Shift+I) flips the selection so that the previously protected area becomes selected and the old selection becomes protected. A common workflow is to select a simple background, invert, and so end up with the subject selected.
Saving a selection
For anything you need later, save it. Choose Select > Save Selection, give it a name, and click OK. Photoshop stores the selection as an alpha channel in the document. It appears in the Channels panel, and it survives closing and reopening the file as long as you save in a format that keeps channels, such as PSD or TIFF. To bring it back, choose Select > Load Selection and pick the channel from the menu.
A later chapter covers saved selections and layer masks in detail. For now, remember the rule: Reselect is for the last few seconds, and Save Selection is for anything you need tomorrow.
| Need | Best method | Lasts until |
|---|---|---|
| Undo an accidental deselect | Ctrl/Cmd+Z | The next edit that replaces that history state |
| Bring back the last selection | Select > Reselect | You make a new selection or close the file |
| Revisit a selection from several steps ago | History panel | The state falls out of the history limit or you close the file |
| Keep a selection for later sessions | Select > Save Selection | You delete the channel |
Working with a selection in practice
This short walkthrough ties the ideas together. Use any photo with a clear background.
- Open the image and press M to choose the Rectangular Marquee tool.
- Drag a rectangle over part of the photo.
- Create a new empty layer with Layer > New > Layer, and keep it active.
- Choose Edit > Fill, set Contents to Color or Foreground Color, and click OK. The color fills only the rectangle on the new layer.
- Press Ctrl/Cmd+D to deselect. The marching ants disappear, but the filled rectangle stays.
- Press Ctrl/Cmd+Shift+D to reselect. The same rectangle appears again.
- Press Ctrl/Cmd+Shift+I to invert. The area outside the rectangle is now selected.
- Hide or delete the filled layer, then press Delete on the photo layer. This removes the pixels outside the rectangle, which is only advisable on a duplicate layer.
Step 8 shows the weakness of working this way: deleting pixels is permanent. Later chapters show how to use masks so that the original pixels remain recoverable.
Common errors
- Edits seem to do nothing. The active layer may be empty, locked, or hidden, or the selection may be on a different area than you are working on. Check the Layers panel.
- The Delete key fills with a color instead of making transparency. You are on the Background layer, which cannot hold transparency. Double-click it in the Layers panel to convert it to a regular layer first.
- Reselect is grayed out. No previous selection exists in this session, or you made a new selection after the one you wanted.
- A dragged selection moves pixels. You had the Move tool active. Switch to a selection tool before you drag the boundary.
- Ants vanish but the edit still looks limited. A layer mask or a clipping setup may be hiding part of the layer. Check for a mask thumbnail next to the layer.
Key points
- A selection is a grayscale map that limits edits to the active layer's selected area.
- Marquee tools make basic selections, and Shift and Alt change how they are drawn.
- Selection tools move the boundary. The Move tool moves the pixels.
- Deselect with Ctrl/Cmd+D, recover with Reselect or the History panel, and keep long-term selections with Save Selection.
Exercise
You select a rectangle, fill it with a color on a new layer, and press Ctrl/Cmd+D. You then realize you need the same rectangle for a second fill. What is the fastest way to get it back, and what would you do if you needed it again in tomorrow's session?
Show answer
Press Ctrl/Cmd+Shift+D (Select > Reselect) to restore the most recent selection right away. For use in a later session, choose Select > Save Selection before closing, save the file as a PSD or TIFF so the alpha channel is kept, and later use Select > Load Selection to bring it back.
Exercise
You drag inside an active selection and the image content moves, leaving a colored hole behind. Which tool was active, and which tool should you use if you only want to move the marching ants?
Show answer
The Move tool (V) was active, because it moves the selected pixels. To move only the boundary, switch to a marquee or lasso tool, place the pointer inside the selection, and drag. To resize or rotate only the boundary, use Select > Transform Selection.
Exercise
A brush stroke only shows up in a small part of the canvas, and no marching ants seem visible because the selection edge is off screen. What two checks would you make?
Show answer
First, press Ctrl/Cmd+D to deselect, or zoom out and look for the ants, because a leftover selection limits the stroke. Second, if the stroke still does not appear, check that the correct, visible, unlocked layer is active in the Layers panel, and that no layer mask hides the area.