How to Deselect in Photoshop

Active selections confine all brushwork and adjustments inside their borders. Here is how to clear marching ants selections in Photoshop and PhotoQuill using keyboard shortcuts and mouse clicks.

How to deselect in Photoshop and PhotoQuill
Practice Selections Free in Your Browser →

Why Marching Ants Block Normal Editing

In digital photo editing, an active selection is indicated by animated black-and-white dashed borders commonly referred to as "marching ants." While a selection is active, Photoshop creates an invisible mask across the rest of the canvas: only pixels inside the dashed boundary can be painted, erased, copied, or filtered.

Beginners often panic when their Brush tool stops laying down paint, or when an adjustment filter seems broken. In nearly every case, a tiny accidental 1-pixel selection is active somewhere in the corner of the document. Deselecting releases this constraint, allowing edits to apply across your entire layer canvas once again.

To soften selections before applying edits or clearing them, check out our guide on feathering selection edges.

Three Ways to Clear an Active Selection

Photoshop and PhotoQuill provide multiple quick pathways to clear selections depending on whether your hands are on the keyboard or mouse.

Shortcut & Menu Overview

Selection Control Methods

Method Windows Command macOS Command Speed & Convenience
Universal Hotkey Ctrl + D Cmd + D Fastest (Industry Standard)
Top Application Menu Select > Deselect Select > Deselect Mouse-accessible dropdown
Canvas Click Single left-click with Marquee (M) Single click with Marquee (M) Quick mouse gesture on empty area

If your goal is selecting the background instead of the subject, you do not need to deselect and redraw. Instead, press Shift+Ctrl+I (Shift+Cmd+I on Mac) to run Select > Inverse. If you are experimenting with color contrasts on selections, you can also invert colors directly on the active area.

Recovering Lost Selections and Hiding Marching Ants

If you spent ten minutes carefully cutting out a complex subject with the Lasso tool and accidentally pressed Ctrl+D, do not panic. Photoshop remembers your previous selection coordinates in memory.

Press Shift+Ctrl+D (Shift+Cmd+D on Mac) or choose Select > Reselect. Your exact marching ants boundary reappears instantly.

Hiding Ants Without Deselecting: When retouching skin tones or fine-tuning color grades, the flickering animated dashed line makes it difficult to assess subtle color transitions. Press Ctrl+H (Cmd+H on Mac) to hide the selection border. The mask remains 100% active, but the distracting lines disappear. Press Ctrl+H again when you are ready to reveal the boundary.

Step-by-Step: How to Deselect in PhotoQuill

1

Confirm the Active Selection

Look at your canvas for the flickering dashed outline around an object or region.

2

Press the Deselect Shortcut

Press Ctrl+D on your keyboard (or Cmd+D if working on a Mac). The dashed outline immediately dissolves.

3

Alternative: Select from the Top Menu

If you prefer mouse navigation, click Select in the top menu bar, then click Deselect.

4

Alternative: Click with Marquee Tool

Press M to select the Rectangular Marquee Tool. Click once anywhere on the canvas away from your selection to clear it.

5

Restore with Reselect If Needed

If you cleared the selection by accident, immediately press Shift+Ctrl+D to restore the marching ants outline.

Open PhotoQuill Editor →

Frequently Asked Questions

What is the shortcut to deselect in Photoshop?
Press Ctrl+D on Windows or Cmd+D on Mac. This immediately clears any active selection border on the canvas.
Why can't I draw or paint outside the dotted lines?
Active selections restrict all painting, fills, and adjustments strictly inside their perimeter. Until you press Ctrl+D to deselect, pixels outside the border remain locked.
How do I bring back a selection I accidentally deselected?
Press Shift+Ctrl+D on Windows (Shift+Cmd+D on Mac) or go to Select > Reselect. This restores your previous selection with identical coordinates.
How do I invert a selection instead of clearing it?
Press Shift+Ctrl+I on Windows (Shift+Cmd+I on Mac) or click Select > Inverse. This selects everything on canvas except the current subject.
How do I hide marching ants without deselecting?
Press Ctrl+H (Cmd+H on Mac) to toggle selection visibility. The selection remains active underneath so filters apply, but the distracting dashed lines disappear.
Master Selections Free in PhotoQuill →