To hide all desktop icons on macOS, open Terminal and run defaults write com.apple.finder CreateDesktop -bool false; killall Finder. To show them again, run the same command with true instead of false. This works on macOS Ventura, Sonoma, and Sequoia, and the effect is immediate.
Why Hide Desktop Icons?
Many Mac users keep their desktop clean for aesthetic reasons, to reduce visual clutter, or to improve performance on older machines. A cluttered desktop can also make it harder to find files quickly, and some users prefer to rely entirely on the Dock, Launchpad, or Spotlight for file access. Hiding icons does not delete or move your files—they remain in the Desktop folder and are accessible via Finder.
Method 1: Using Terminal (The Classic Way)
The Terminal method is the most reliable and works across all recent macOS versions. Here’s how:
- Open Terminal (found in Applications > Utilities).
- Type or paste the following command and press Enter:
defaults write com.apple.finder CreateDesktop -bool false - Restart Finder by typing
killall Finderand pressing Enter. Your desktop icons will disappear instantly.
To bring them back, replace false with true in the same command and run killall Finder again. This method is safe; it only changes a Finder preference.
Method 2: Using a Keyboard Shortcut (macOS Sequoia and Later)
Starting with macOS Sequoia (2024), Apple added a built-in shortcut. Press Command + Shift + H to hide or show desktop icons. This is the quickest method if you’re on a recent system. If the shortcut doesn’t work, you’re likely on an older macOS and should use Terminal.
Method 3: Using Automator or Shortcuts (For a Toggle)
If you want a clickable menu bar button or a keyboard shortcut that toggles icons without opening Terminal, you can create a simple Automator workflow:
- Open Automator and create a new Quick Action.
- Add a Run Shell Script action.
- Paste the following script:
osascript -e 'tell application "Finder" to set visible of every desktop item to not visible' - Save it, then assign a keyboard shortcut in System Settings > Keyboard > Shortcuts > Services.
This script toggles visibility of desktop items (files, folders, and drives) but not the wallpaper or menu bar. It’s a handy alternative if you want a one-click solution.
Method 4: Hide Individual Icons (Not All)
If you only want to hide specific icons (like hard drives or external volumes) while keeping files and folders visible, use Finder’s settings:
- Open Finder and press Command + , (comma) to open Preferences.
- Go to the General tab.
- Under “Show these items on the desktop,” uncheck the items you want to hide (hard disks, external disks, CDs, and servers).
This doesn’t hide files or folders you’ve placed on the desktop—only system volumes and connected drives.
Common Problems and Fixes
If Terminal commands don’t seem to work, try the following:
- Check for typos: The command must be exactly as shown, including the capital “D” in “CreateDesktop”.
- Restart Finder correctly: If
killall Finderdoesn’t work, you may need to log out and back in, or restart your Mac. - macOS updates: After a major macOS update, the setting may reset. Reapply the command.
- Third-party apps: Some apps like Desktop Curtain or hidden icon managers may conflict. Disable them temporarily to test.
Alternatives: Third-Party Apps and Folder Organization
If you prefer a graphical interface, several free apps offer a “hide desktop icons” toggle. However, most rely on the same Terminal command under the hood. A more permanent solution is to stop using the desktop for file storage altogether. Move frequently used files to the Documents folder and add it to the Finder sidebar for quick access. You can also use Stacks (right-click on desktop > Use Stacks) to group files neatly without hiding them entirely.
Frequently Asked Questions
Does hiding desktop icons free up memory or improve performance?
On modern Macs, the effect is negligible. However, on older machines with many desktop icons, hiding them can slightly reduce the load on the GPU and Finder, leading to a marginal speed improvement.
Will my files be deleted if I hide desktop icons?
No. Hiding icons only changes their visibility. Your files remain in the Desktop folder and are accessible via Finder, Spotlight, or any app that uses the file browser.
Can I hide desktop icons on macOS Monterey or Big Sur?
Yes. The Terminal method works on all macOS versions from at least macOS 10.15 Catalina up to the latest. The keyboard shortcut (Command + Shift + H) is only available on Sequoia and later.
How do I show desktop icons again after hiding them?
Run the same Terminal command with true instead of false, then run killall Finder. Or, if you’re on Sequoia, press Command + Shift + H again.
Why do my desktop icons reappear after restarting?
This can happen if you have a third-party app that resets Finder preferences, or if you didn’t fully quit Finder after applying the command. Make sure you run killall Finder and that the command was entered correctly.
Related
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.
More cards in this drawer
- Kick an Uma Codes? Meaning & Use
- Google Forms as Expense Tracker: Step-by-Step
- Wi-Fi Name Exposes More Info Than You Think?
- GBP to INR Business Payments: Bank vs Fintech vs FX Broker1,049,725.00 INR
- Evaluate Claude for Enterprise Workloads: Checklist
- Smart Lock Modules Worth Buying Early