Why full-screen captures waste your time

You want a screenshot of one window. Instead, you capture the entire screen — your cluttered Desktop, the Slack DM you forgot to close, the Spotify queue you'd rather keep private. Now you have to crop out everything except the window you actually needed. If you're pasting into a bug report or AI coding assistant, the extra pixels are pure noise.

macOS has a built-in way to capture a single window cleanly, with a transparent background and no surrounding clutter. Most people never discover it because the shortcut isn't obvious. Here's every method, from zero-install to pro workflow.

Method 1: Cmd+Shift+4, then Spacebar

This is the built-in window capture shortcut that ships with every Mac. It works on macOS Ventura, Sonoma, Sequoia, and every recent version.

Step 1: Press Cmd + Shift + 4. Your cursor turns into a crosshair, as if you're about to select a region.

Step 2: Press Spacebar. The crosshair turns into a camera icon. As you move the camera over different windows, each one highlights with a blue overlay.

Step 3: Click the window you want to capture. macOS saves a screenshot of just that window, with a drop shadow on a transparent background.

The result is a clean PNG of the window, automatically trimmed to its edges. No cropping needed. The file lands wherever your screenshots are configured to save — by default, your Desktop.

How to remove the drop shadow

By default, macOS adds a soft drop shadow around every window capture. For documentation, blog posts, and clean presentations, that shadow is useful — it makes the window look like it's floating on whatever background you place it on.

But for bug reports, developer documentation, and pasting into AI tools, the shadow adds unnecessary padding and file size. A window screenshot with shadow can be 50–100 pixels larger on each side than the actual window content.

To capture without shadow: Hold Option while clicking the window in Step 3. So the full sequence is Cmd+Shift+4, Spacebar, then Option+Click on the window. The screenshot saves without any drop shadow, tightly cropped to the window edges.

If you want to remove shadows permanently for all window captures, run this Terminal command:

defaults write com.apple.screencapture disable-shadow -bool true
killall SystemUIServer

To restore shadows later, change true to false and run the killall command again.

Method 2: Cmd+Shift+5 Screenshot Toolbar

The Screenshot Toolbar (Cmd+Shift+5) gives you a visual interface with capture mode buttons at the bottom of the screen. The fourth button from the left — the one showing a single window outline — activates window capture mode.

Click that button, then click any window. The behavior is identical to the Cmd+Shift+4+Space method, but some people prefer having the visual toolbar for discoverability. The toolbar also lets you set a timer (5 or 10 seconds), which is useful if you need to trigger a hover state or open a menu before capturing.

One downside: the toolbar itself appears on screen and can interfere with the capture if it overlaps the target window. The keyboard shortcut method avoids this issue entirely.

Capturing a background window

The default behavior captures the frontmost window under your cursor. But sometimes you need to capture a window that's partially behind another one — a Terminal behind your browser, or a settings panel behind your editor.

With the built-in method, you can hover over any visible portion of a background window and click it. macOS captures the entire window, including the parts hidden behind other windows. The result shows the full window as if nothing were covering it.

This works because macOS composes window screenshots from the window server, not from what's physically visible on screen. Even if only a sliver of the window is showing, you get the complete window capture.

Window capture gotchas developers hit

Menus and popovers aren't windows. Dropdown menus, context menus, autocomplete lists, and tooltip popovers are not treated as separate windows by macOS. When you try to capture them with window mode, the camera icon highlights the parent window instead. The menu closes when you click. For these elements, use a timed capture or a region selection instead.

Rounded corners and transparency. Modern macOS windows have rounded corners. Window captures preserve this — the corners are transparent in the PNG. If you paste the image into an app that doesn't support transparency (like some email clients), the corners show as white or black depending on the app's background.

Retina resolution doubles the file size. A window that looks 1200 pixels wide on your Retina display produces a 2400-pixel-wide screenshot. This is great for clarity but means window captures on a Retina MacBook Pro can easily be 3–5 MB each. If file size matters, convert to JPEG or compress after capture.

Multiple desktops (Spaces). Window capture only works on windows in your current Space. You can't capture a window that's on a different desktop without switching to it first. Full-screen apps also behave differently — they need to be captured from their own Space.

Using the screencapture command in Terminal

For developers who prefer the command line or want to script their captures, macOS provides the screencapture utility. To capture a specific window interactively:

screencapture -W ~/Desktop/window.png

The -W flag activates window capture mode. Your cursor turns into the camera icon, and you click the window you want. Add -o to remove the shadow:

screencapture -W -o ~/Desktop/window-no-shadow.png

You can combine this with other flags: -c copies to clipboard instead of saving to a file, -T 5 adds a five-second delay, and -t jpg saves as JPEG instead of PNG. This is powerful for automating screenshot workflows in shell scripts or CI pipelines.

When window capture isn't enough

Window capture works perfectly for standard app windows. But developer workflows often involve capturing parts of windows, multiple windows side by side, or windows with floating panels and toolbars that are technically separate windows.

For these cases, region capture (Cmd+Shift+4 without pressing Spacebar) gives you a crosshair to select any rectangular area on screen. It's more flexible but requires manual alignment and doesn't get the clean transparent background of window capture.

If you regularly need to capture a window, annotate it, and paste it into a conversation — a bug tracker, a Slack thread, an AI coding assistant — a dedicated screenshot tool can collapse those steps into a single shortcut.

LazyScreenshots captures any window, removes shadows automatically, and lets you annotate and paste in one step. One keyboard shortcut from capture to paste — no file management, no cropping, no extra apps.

Try LazyScreenshots — $29 one-time