Hide desktop icons before taking a screenshot
A screenshot of your desktop shows the world your file names — and "Tax_2023_FINAL_v4.pdf" is rarely what you want in a wallpaper showcase or a support ticket. macOS gives you no toggle for this in System Settings, but one Terminal command hides every icon so the shot captures nothing but the wallpaper, and a second command puts them all back afterward.
Hide the icons, then shoot
Launch Terminal from Applications → Utilities (or Spotlight), and run the two lines below. The desktop empties the instant Finder relaunches.
# Hide all desktop icons
defaults write com.apple.finder CreateDesktop -bool false
killall Finder
Now take your screenshot the usual way:
- Shift+Cmd+3 captures the entire screen — ideal for a full wallpaper shot.
- Shift+Cmd+4 lets you drag a selection, so you can grab just a corner of the desktop.
- Shift+Cmd+5 opens the capture toolbar with timing and save-location options.
Because the icons are gone, there's no cropping or blurring to do later — the file lands clean straight out of the capture.
Put every icon back exactly where it was
When the shot is safely saved, reverse the setting. Icons return to their original positions, so a carefully arranged desktop stays arranged.
# Show the desktop icons again
defaults write com.apple.finder CreateDesktop -bool true
killall Finder
Writing -bool true and running defaults delete com.apple.finder CreateDesktop reach the same result; use whichever you'll remember. The behaviour is identical on macOS Ventura, Sonoma, and Sequoia, and nothing about your files or their arrangement changes.
Why this beats hiding icons by hand
You could drag every file into a folder, take the shot, and drag them back — but that scrambles positions and risks a leftover icon sneaking into the frame. The CreateDesktop switch tells Finder to stop drawing the desktop entirely, so the capture is guaranteed empty. Your files never move; they stay in the Desktop folder, reachable any time from a Finder window's sidebar. If you're capturing to show off a wallpaper, this also means the shot is pixel-for-pixel the wallpaper with no icon shadows or label text softening the image.
Great for a pixel-perfect wallpaper shot
If the reason you're clearing the desktop is to capture the wallpaper itself — for a theme gallery, a forum post, or your own reference — hiding icons gives you the image exactly as macOS renders it, with no icon shadows or label text softening the edges. On a Retina display, a full-screen grab captures at the panel's native resolution, so the wallpaper comes out crisp enough to reuse. Two things worth knowing: the hide setting persists until you reverse it, so you won't have to redo it before the next shot, and on an empty desktop a plain Shift+Cmd+4 drag is all you need to grab a clean region — no window-picker mode required.
Hiding desktop icons is a Terminal-only tweak — Apple never gave it a settings toggle. Mainspring makes it a single labelled switch you flip before a screenshot and flip back after, one of 90+ hidden macOS settings it turns into reversible toggles.
Try Mainspring free →Signed & notarized by Apple · 1-day free trial · $29 once
Cleaner captures, start to finish
If the screenshots are for documentation or a bug report, a shadow-free window often looks tidier than a full-screen grab — see how to take a screenshot without the window shadow on Mac.