The same keys capture the menu bar, and Terminal’s screencapture command can leave out the shadow too. For a window on a background of your choosing, see the ClearShot section at the end.
Capture one window without its shadow
Press Shift-Command-4. The pointer turns into a crosshair.
Press the Space bar. The pointer changes to a camera.
Hold Option and click the window.
To cancel before clicking, press Esc. Clicking the menu bar instead of a window captures the menu bar.
Keep the shadow
Click the window without holding Option, and the screenshot includes the window’s shadow. Screenshot (Shift-Command-5) also has a tool for a single window: choose it, then click the window.
Copy a window instead of saving it
Hold Control with the shortcut: press Control-Shift-Command-4, then the Space bar, then click the window. The screenshot goes to the clipboard and no file is saved to the desktop.
Where the window screenshot goes
Like any screenshot taken with the keys, it is saved to the desktop as a PNG file whose name begins with “Screenshot” and includes the date and time. If the floating thumbnail appears in the corner, drag it straight into a document or an email, or click it to mark up the window.
To save window screenshots to another folder, see where screenshots are saved on a Mac; to add arrows, text or a filled shape, see how to annotate a screenshot on a Mac.
From Terminal
The screencapture command has an option that leaves out the shadow. In Terminal, run:
screencapture -i -w -o ~/Desktop/window.png
-i makes the capture interactive, -w allows only a window to be chosen, and -o leaves out the window’s shadow. Click the window to capture it, or press Esc to cancel. To send the window to the clipboard instead of a file, use -c in place of the file name:
screencapture -i -w -o -c
Add -x to either command to capture without playing a sound.
Windows that won’t capture
Some apps don’t allow screenshots of their windows. Apple names DVD Player and the Apple TV app as examples.
With ClearShot: a window on a clean background
ClearShot is a free, open-source screenshot app for macOS 27. Its Capture Window takes a window with or without its shadow and wallpaper. A window taken “With wallpaper” is saved as a document, the window plus the wallpaper behind it, so the background can be changed or removed later.
The Annotate editor’s background tool puts any capture on a gradient, a wallpaper, a colour or a picture of your own, with padding, a shadow and rounded corners, and the background stays editable after you’re done. Settings › Screenshots › Background preset can apply one to every new capture, with a separate preset for window screenshots; hold Shift as you click a window to skip it for that shot.
Screenshots and screen recordings from the menu bar, with nothing uploaded and no account.
Sources
- Take a screenshot on Mac · Apple Support
- Take screenshots or screen recordings on Mac · Mac User Guide, macOS 27
- The
screencapturemanual page · in Terminal,man screencapture(macOS 27.0.1) - ClearShot README: Annotate · GitHub