How to Deselect in Photoshop (Selections and Layers)

To deselect in Photoshop, press Ctrl+D on Windows or Cmd+D on a Mac, or choose Select > Deselect. The marching ants disappear and your brushes, fills and filters work on the whole layer again. Below you will also find how to deselect layers, remove only part of a selection, get a selection back, and what to check when Ctrl+D does nothing.

Updated November 12, 2026 · The shortcuts are the same in all recent Photoshop versions

Quick answer

  • Deselect: Ctrl+D (Windows) or Cmd+D (Mac), or Select > Deselect
  • Undo a deselect: Shift+Ctrl+D or Shift+Cmd+D, or Select > Reselect
  • Deselect layers: Select > Deselect Layers (Ctrl+D does not deselect layers)
  • Photoshop on iPad: tap Deselect in the selection bar at the bottom of the screen

Every Way to Deselect in Photoshop

An active selection is shown as a moving dashed outline, often called marching ants. Any of these clears it:

MethodWindowsMacGood to know
Keyboard shortcutCtrl+DCmd+DFastest. Works with any tool, except while you are typing text.
MenuSelect > DeselectSelect > DeselectGreyed out when nothing is selected.
Click outside the selectionOne click, no drag, with a Marquee or Lasso toolOnly in New Selection mode. Dragging inside the selection moves the outline instead.
Photoshop on iPadTap Deselect in the bar under the canvasThe bar appears as soon as you make a selection.
Select menu open with Deselect Ctrl+D highlighted over an elliptical selection around a coffee mug
The Select menu with Deselect (Ctrl+D), Reselect (Shift+Ctrl+D) and Inverse (Shift+Ctrl+I). Shown in PhotoQuill, which uses the same menu and shortcuts as Photoshop.

Want the background instead of the subject? Don't deselect and start over: press Shift+Ctrl+I (Shift+Cmd+I) or choose Select > Inverse to flip the selection. To soften the edge before you deselect, see how to feather a selection.

How to Deselect a Layer in Photoshop

Deselecting a selection and deselecting a layer are two different things. Ctrl+D clears the marching ants; it does not change which layers are highlighted in the Layers panel. To deselect layers:

  • All layers: choose Select > Deselect Layers. It has no shortcut by default; you can add one in Edit > Keyboard Shortcuts under Application Menus > Select.
  • One layer of several: Ctrl-click (Cmd-click) that layer in the Layers panel to remove it from the selection.
  • Click the empty area below the bottom layer in the Layers panel. In some recent versions a plain click there no longer works and you have to Ctrl-click (Cmd-click) it.

With no layer selected, the Move tool can't nudge a layer by accident. The opposite command, Select > All Layers, is Alt+Ctrl+A (Option+Cmd+A).

How to Deselect Part of a Selection

You don't have to clear everything to fix one corner. Subtract the part you don't want:

  • Hold Alt (Option on a Mac) and drag with the Marquee, Lasso or Quick Selection tool over the area to remove. A small minus sign appears next to the cursor.
  • Or click Subtract from selection in the options bar, then drag.
  • Hold Shift to add to the selection instead, or Shift+Alt (Shift+Option) to keep only the overlap.

For hair or soft edges, refine the outline in Select > Select and Mask, or press Q for Quick Mask and paint with black to remove areas, then press Q again.

How to Get a Selection Back After Deselecting

Spent ten minutes on a Lasso selection and pressed Ctrl+D by accident? It isn't lost:

  • Press Shift+Ctrl+D (Shift+Cmd+D) or choose Select > Reselect. Photoshop restores the last selection you cleared.
  • Or press Ctrl+Z (Cmd+Z) to undo the Deselect step. More on this in how to undo in Photoshop.
  • For a selection you will need again later, choose Select > Save Selection. Photoshop stores it as a channel in the document, and Select > Load Selection brings it back, even after you save and reopen the PSD.

How to Hide Marching Ants Without Deselecting

When you're judging a color change, the moving outline gets in the way. Press Ctrl+H (Cmd+H) to hide it. This toggles View > Extras, so guides and the grid hide too. The selection stays active, and adjustments still only apply inside it. Press the same keys to show it again.

On a Mac: Cmd+H normally hides the whole app. The first time you press it, Photoshop asks whether to hide Photoshop or hide extras; choose Hide Extras. To hide only the selection outline, use View > Show > Selection Edges.

A hidden selection is easy to forget, and it's a common reason a brush seems to stop working. Press Ctrl+D when you're done.

Ctrl+D Not Working? 7 Things to Check

  1. The selection is there but you can't see it. It may be a tiny selection, off the visible part of the canvas, or hidden with Ctrl+H. If your brush paints nothing, press Ctrl+D anyway, then try again.
  2. You're editing text. While the text cursor is blinking in a type layer, menu shortcuts like Ctrl+D don't reach the Select menu. Commit the text first with Ctrl+Enter (Cmd+Return) or the check mark in the options bar.
  3. A transform or crop is still open. Press Enter to apply it or Esc to cancel, then deselect.
  4. Quick Mask mode is on. The image shows a red overlay instead of marching ants, and the document tab says Quick Mask. Press Q to turn it into a normal selection, then press Ctrl+D.
  5. It's a path, not a selection. Pen tool paths are thin solid lines, not moving dashes. Click an empty area of the Paths panel to hide the path, or press Shift+Ctrl+H (Shift+Cmd+H).
  6. It's a bounding box, not a selection. A box with square handles around a layer comes from Show Transform Controls in the Move tool's options bar. Turn that option off. Thin outlines around every layer come from View > Show > Layer Edges.
  7. The shortcut was changed. Open Edit > Keyboard Shortcuts and check that Select > Deselect is still Ctrl+D, or pick Photoshop Defaults in the Set menu.

Step by Step: Deselect and Bring It Back

1

Check that a selection is active

Look for the moving dashed outline on the canvas. A red overlay instead means Quick Mask mode is on; press Q to leave it first.

2

Press Ctrl+D or Cmd+D

Or choose Select > Deselect. The outline disappears and edits apply to the whole layer again.

3

Bring it back if needed

If you deselected by mistake, press Shift+Ctrl+D (Shift+Cmd+D) or choose Select > Reselect.

4

Deselect layers instead

To clear the highlighted layers in the Layers panel rather than the marching ants, choose Select > Deselect Layers.

Deselect in PhotoQuill (Free, in Your Browser)

No Photoshop subscription? PhotoQuill is a free editor that runs in your browser with Photoshop's Select menu and shortcuts, so everything above works the same way:

  • Ctrl+D (Cmd+D) or Select > Deselect clears the selection.
  • One click outside the selection with a Marquee or Lasso tool also clears it.
  • Shift+Ctrl+D reselects, Shift+Ctrl+I inverts, and Select > Deselect Layers, Save Selection and Load Selection are in the same menu.
  • One difference: PhotoQuill has no Extras toggle, so Ctrl+H does not hide the marching ants.

It opens PSD files with their layers and saves them back as PSDs, with no download and no account.

Frequently Asked Questions

What is the shortcut to deselect in Photoshop?
Press Ctrl+D on Windows or Cmd+D on a Mac. You can also choose Select > Deselect from the menu bar.
How do I deselect a layer in Photoshop?
Choose Select > Deselect Layers. Ctrl+D does not do this, because it clears the pixel selection, not the layer selection. To drop one layer from a multi-layer selection, Ctrl-click it (Cmd-click on a Mac) in the Layers panel.
How do I undo a deselect in Photoshop?
Press Shift+Ctrl+D (Shift+Cmd+D on a Mac) or choose Select > Reselect to bring back the last selection. Ctrl+Z (Cmd+Z) also undoes the Deselect step.
Why can't I paint after making a selection?
While a selection is active, brushes, fills and filters only change the pixels inside it. If you see no marching ants, the selection may be tiny, outside the visible area or hidden with Ctrl+H. Press Ctrl+D (Cmd+D) and try again.
Does deselecting delete anything?
No. Deselecting only removes the selection outline; your pixels and layers stay as they are. Pressing Delete or Backspace is what erases the selected area.
How do I deselect in Photoshop on the iPad?
After you make a selection, a bar of selection options appears at the bottom of the screen. Tap Deselect in that bar.