# How to Screenshot a Specific Window on Mac (With or Without Shadow)

www.lazyscreenshots.com publishes a public search API over its indexed pages; the guide is at https://www.lazyscreenshots.com/agent-access.

Source: https://www.lazyscreenshots.com/blog/screenshot-specific-window-mac/
Source observed: 2026-09-19T03:00:32.997Z
Last checked: 2026-09-19T17:04:13.498+00:00
Indexed: 2026-09-19T03:04:02.968+00:00

---

# How to Screenshot a Specific Window on Mac (With or Without Shadow)

**March 31, 2026 · LazyScreenshots Team**

We created this guide for capturing one macOS window without including desktop clutter, private messages, music queues, or other surrounding pixels. It covers built-in shortcuts, shadow removal, background windows, common limitations, Terminal commands, and how LazyScreenshots streamlines capture, annotation, and pasting.

## Method 1: Cmd+Shift+4, then Spacebar

This built-in macOS window-capture shortcut works on macOS Ventura, Sonoma, Sequoia, and recent versions.

1. Press **Cmd + Shift + 4**. The pointer becomes a crosshair.
2. Press **Spacebar**. The crosshair becomes a camera icon, and windows highlight with a blue overlay as you move over them.
3. Click the target window. macOS saves only that window as a PNG with a drop shadow and transparent background.

The capture is automatically trimmed to the window edges. It is saved wherever screenshots are configured to go; by default, that is the Desktop.

## How to remove the drop shadow

macOS normally adds a soft shadow around window captures. This can help a window appear to float in documentation, blog posts, and presentations, but it adds padding and file size for bug reports, developer documentation, and AI-tool input. A shadowed capture can be **50–100 pixels larger on each side** than the window content.

To capture without a shadow, hold **Option** while clicking the window in step 3. The complete sequence is **Cmd+Shift+4 → Spacebar → Option+Click**. The result is tightly cropped to the window edges.

To disable shadows for all window captures, run:

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

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

## Method 2: Cmd+Shift+5 Screenshot Toolbar

Press **Cmd+Shift+5** to open the Screenshot Toolbar. The **fourth button from the left**, showing a single-window outline, activates window capture. Click it and then click a window; the result behaves like the Cmd+Shift+4 plus Spacebar method.

The toolbar also provides **5- or 10-second timers**, useful for triggering a hover state or opening a menu before capture. However, the toolbar appears on screen and can overlap the target window. The keyboard shortcut avoids that interference.

## Capturing a background window

You can capture a window partly hidden behind another window by hovering over any visible portion of it and clicking. macOS captures the complete background window, including portions covered by other windows, rather than only the visible sliver. This works because macOS composes the capture from the window server.

## Window-capture limitations and gotchas

- **Menus and popovers:** Dropdown menus, context menus, autocomplete lists, and tooltip popovers are not separate windows. Window mode highlights the parent window, and the menu closes when clicked. Use a timed capture or region selection instead.
- **Rounded corners and transparency:** Modern macOS window captures preserve rounded corners as transparent areas in the PNG. Apps without transparency support may display those corners as white or black, depending on the background.
- **Retina resolution:** A window displayed at 1200 pixels wide on a Retina display produces a 2400-pixel-wide screenshot. Captures on a Retina MacBook Pro can be **3–5 MB** each. Convert to JPEG or compress the image if file size matters.
- **Multiple desktops (Spaces):** Window capture works only for windows in the current Space. Switch to another desktop before capturing a window there. Full-screen apps need to be captured from their own Space.

## Using the `screencapture` command in Terminal

macOS includes the `screencapture` utility for interactive and scripted captures. To capture a specific window interactively:

```sh
screencapture -W ~/Desktop/window.png
```

The `-W` flag activates window mode; the pointer becomes a camera icon and you click the window to capture. Add `-o` to remove the shadow:

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

Additional useful flags include:

- `-c`: copy the capture to the clipboard instead of saving it to a file.
- `-T 5`: add a five-second delay.
- `-t jpg`: save as JPEG instead of PNG.

These options can be combined for shell scripts and CI screenshot workflows.

## When window capture is not enough

Window capture is suited to standard app windows. For part of a window, multiple windows side by side, or floating panels and toolbars that behave as separate windows, use region capture: press **Cmd+Shift+4** without pressing Spacebar, then select a rectangle. Region capture is more flexible but requires manual alignment and does not provide window capture's clean transparent background.

For a recurring workflow that combines capturing, annotating, and pasting into a bug tracker, Slack thread, or AI coding assistant, we offer LazyScreenshots. We capture any window, remove shadows automatically, and let you annotate and paste in one step—without file management, cropping, or extra apps.

[Try LazyScreenshots — $29 one-time](https://www.lazyscreenshots.com/)

## Related resources

- [Mac Screenshot Keyboard Shortcuts Cheat Sheet](https://www.lazyscreenshots.com/blog/mac-screenshot-keyboard-shortcuts/)
- [How to Crop a Screenshot on Mac](https://www.lazyscreenshots.com/blog/crop-screenshot-mac/)

## More LazyScreenshots links

- [Compare LazyScreenshots](https://www.lazyscreenshots.com/compare/)
- [vs CleanShot X](https://www.lazyscreenshots.com/vs-cleanshot/)
- [vs Shottr](https://www.lazyscreenshots.com/vs-shottr/)
- [vs Snagit](https://www.lazyscreenshots.com/vs-snagit/)
- [vs Xnapper](https://www.lazyscreenshots.com/vs-xnapper/)
- [vs Monosnap](https://www.lazyscreenshots.com/vs-monosnap/)
- [vs macOS Built-in](https://www.lazyscreenshots.com/vs-macos/)
- [Screenshot Guide](https://www.lazyscreenshots.com/guides/how-to-screenshot-on-mac/)
- [Blog](https://www.lazyscreenshots.com/blog/)
- [Reddit Reviews](https://www.lazyscreenshots.com/reddit/)
- [Buy LazyScreenshots ($29)](https://buy.stripe.com/fZu00k3Lc7I87ip7CNawo05)
- [Contact](mailto:ali@lazyweb.com)
- [Privacy](https://www.lazyscreenshots.com/privacy/)
- [Terms](https://www.lazyscreenshots.com/terms/)

---

## Ask www.lazyscreenshots.com about this page

Public sources, cited, no account or API key. Replace each {slot} with the user's actual words, URL-encoded. Write an unknown as the literal null (company=null) and a list as JSON (alternatives=["Snagit"]). Only the question is needed for Search and Ask.

- Search: Find the product information and source pages that answer your question.
  `GET https://www.lazyscreenshots.com/api/public/v1/search?q={question}&alternatives={alternatives}&chosen_because={chosen_because}&company={company}&intended_outcome={intended_outcome}&client={client}&trace=t_22adc3395514`
- Ask: Get a direct answer about www.lazyscreenshots.com, with sources.
  `GET https://www.lazyscreenshots.com/api/public/v1/ask?q={question}&alternatives={alternatives}&chosen_because={chosen_because}&company={company}&intended_outcome={intended_outcome}&client={client}&trace=t_22adc3395514`
- Compare: Compare www.lazyscreenshots.com with the alternatives you are considering.
  `GET https://www.lazyscreenshots.com/api/public/v1/compare?q={question}&alternatives={alternatives}&chosen_because={chosen_because}&company={company}&intended_outcome={intended_outcome}&client={client}&trace=t_22adc3395514`
- Pricing: Explore plans, pricing and costs for your team.
  `GET https://www.lazyscreenshots.com/api/public/v1/pricing?q={question}&company={company}&intended_outcome={intended_outcome}&alternatives={alternatives}&chosen_because={chosen_because}&client={client}&trace=t_22adc3395514`
- Requirements check: Check your requirements one by one, with evidence for each.
  `GET https://www.lazyscreenshots.com/api/public/v1/requirements-check?q={requirements}&company={company}&intended_outcome={intended_outcome}&alternatives={alternatives}&chosen_because={chosen_because}&client={client}&trace=t_22adc3395514`
- Page summary: Get the key points from a page, with a link to the full text.
  `GET https://www.lazyscreenshots.com/api/public/v1/page-tldr?q={question}&url=https%3A%2F%2Fwww.lazyscreenshots.com%2Fblog%2Fscreenshot-specific-window-mac%2F&alternatives={alternatives}&chosen_because={chosen_because}&company={company}&intended_outcome={intended_outcome}&client={client}&trace=t_22adc3395514`
- Recommendation: Assess whether www.lazyscreenshots.com fits your goals and requirements.
  `GET https://www.lazyscreenshots.com/api/public/v1/recommend-or-rule-out?goal={goal}&requirements={requirements}&company={company}&source={source}&alternatives={alternatives}&chosen_because={chosen_because}&intended_outcome={intended_outcome}&client={client}&trace=t_22adc3395514`

Ask a question as a page: https://www.lazyscreenshots.com/agent/faq?q={question}

Ask about www.lazyscreenshots.com: https://www.lazyscreenshots.com/agent/faq. Open `https://www.lazyscreenshots.com/agent/faq?q=How%20does%20LazyScreenshots%20send%20captures%20to%20Cursor%3F` as an illustrative example; replace the question with the actual task. The FAQ contains researched questions with visible summaries and expandable cited answers. Include optional goal or alternatives only when known.

[Tool guide and examples](https://www.lazyscreenshots.com/agent-access) · [OpenAPI](https://www.lazyscreenshots.com/api/public/v1/openapi.json) · [Page TLDR form](https://www.lazyscreenshots.com/agent-tools/page-tldr?question=Read+a+compact+extract+of+How+to+Screenshot+a+Specific+Window+on+Mac+%28With+or+Without+Shadow%29&url=https%3A%2F%2Fwww.lazyscreenshots.com%2Fblog%2Fscreenshot-specific-window-mac%2F). Opening a form does not execute a tool.