Quick Answer (BLUF)

To hide desktop icons on macOS, run defaults write com.apple.finder CreateDesktop false && killall Finder in Terminal. To restore them, replace false with true. For an instant one-click toggle without Terminal commands or window focus glitches, use a native menu bar utility like Curtain.

A cluttered Mac desktop looks unprofessional during screen shares, video calls, and client presentations. While macOS does not provide a default native menu toggle to hide desktop icons, you can conceal them instantly using either a built-in Terminal command, an Apple Shortcut, or a dedicated native menu bar utility.

Here is the complete step-by-step guide covering the Terminal method, its hidden side effects, and the modern one-click alternative.


Method 1: The Native macOS Terminal Command

The built-in method to hide desktop icons relies on modifying macOS Finder preferences via the command line.

Step 1: Open Terminal

Press Command (⌘) + Space to launch Spotlight, type Terminal, and press Return.

Step 2: Hide Desktop Icons

Copy and paste the following command into Terminal, then press Return:

bash
defaults write com.apple.finder CreateDesktop false && killall Finder

Your desktop icons will immediately vanish. Any files, folders, screenshots, and external drive icons stored on your Desktop will be invisible.

Step 3: Restore Desktop Icons

When your meeting or recording is finished, run this command to bring your icons back:

bash
defaults write com.apple.finder CreateDesktop true && killall Finder

How the Terminal Command Works Under the Hood

The command consists of two chained instructions:

  1. defaults write com.apple.finder CreateDesktop false: Updates the hidden CreateDesktop preference key in the macOS Finder property list (com.apple.finder.plist). Setting this flag to false instructs Finder not to render the desktop surface layer.
  2. killall Finder: Finder only reads this property on launch. Killing the process forces macOS to automatically respawn Finder with the updated preference flag applied.
Note

Your files are never deleted or moved. They remain completely safe in your ~/Desktop folder and can still be accessed at any time via Finder windows or Spotlight search.


The Hidden Drawbacks of the Terminal Method

While the Terminal command is free and built into every macOS version (from OS X Mavericks through macOS Sequoia), it has significant practical friction for daily use:

  1. Window Focus Stealing: When killall Finder executes, macOS restarts the desktop manager. If you were active in Zoom, Google Meet, Keynote, or Slack, focus may momentarily drop, or macOS may snap to a different Space/Display.
  2. Context Switching: Opening Terminal and remembering or pasting commands breaks your flow right before an important screen-sharing meeting.
  3. Stage Manager & Multi-Monitor Quirks: On multi-monitor setups running macOS Sonoma or Sequoia, killing Finder can cause brief flicker across secondary screens.

Method 2: Creating a macOS Shortcut (Automator / Shortcuts App)

If you prefer not to open Terminal every time, you can build a toggle workflow in Apple's Shortcuts app:

  1. Open the Shortcuts app on macOS (Sonoma / Sequoia).
  2. Click + to create a new Shortcut.
  3. Search for the action Run Shell Script.
  4. Paste the bash script into the text area (see script below).
  5. Assign a keyboard shortcut in the Shortcut Details sidebar.
bash
STATUS=$(defaults read com.apple.finder CreateDesktop 2>/dev/null)
if [ "$STATUS" = "false" ]; then
  defaults write com.apple.finder CreateDesktop true
else
  defaults write com.apple.finder CreateDesktop false
fi
killall Finder

Limitations: Shortcuts workflows can take 1–2 seconds to execute, show a menu bar spinning indicator, and still suffer from the Finder focus-switching issue when respawning.


Method 3: Instant Toggle with Curtain (One-Click Menu Bar Utility)

For professionals who frequently present, record screencasts, or need a clean workspace on demand, Curtain provides a seamless, zero-friction solution.

Curtain lives quietly in your macOS Menu Bar. Clicking the icon instantly conceals all desktop icons. Clicking it again restores them.

Recommended Native Utility

Curtain for macOS

Hide macOS desktop icons in one click. Lightweight, privacy-first, and native for Apple Silicon.

✓ macOS 14 Sonoma & 15 Sequoia ✓ Apple Silicon Native (M1–M4) ✓ Focus Preservation Engine ✓ 9.99€ One-Time Purchase

Why Curtain Is Different:

  • Intelligent Focus Preservation: Curtain monitors the active frontmost application before triggering Finder. When Finder restarts, Curtain immediately restores focus back to your presentation, video call, or active window without Space jumping.
  • Custom Global Hotkeys: Set a system-wide hotkey (such as + Shift + D) to toggle desktop icons without taking your hands off the keyboard.
  • Zero Permissions & 100% Offline: Curtain does not require Screen Recording, Accessibility, or Full Disk Access permissions. It operates strictly locally with zero telemetry and zero network activity.
  • Ultra-Lightweight Footprint: Native Swift/SwiftUI binary consuming less than 15MB of RAM and 0% idle CPU.

Feature & Workflow Comparison Matrix

Feature / AttributeTerminal CommandmacOS Shortcuts AppCurtain (Menu Bar App)
Trigger SpeedManual command typing~1.5 secondsInstant (1-click / Hotkey)
Window Focus Preservation No (Can lose focus) No Yes (Smart Restoration)
Global Keyboard Shortcut No⚠️ Complex setup Native Hotkey Support
System Permissions RequiredNoneNoneNone (Sandboxed & Private)
RAM Footprint0 MB (On-demand)0 MB (On-demand)< 15 MB (Apple Silicon)
Ease of UseLow (Terminal commands)MediumHigh (Frictionless GUI)
CostFreeFree9.99€ (One-time, no sub)

Frequently Asked Questions (FAQ)

Will hiding desktop icons affect my open applications?

No. Hiding desktop icons only affects the Finder canvas layer behind your open windows. Applications like Zoom, Keynote, VS Code, and Chrome continue running with zero interruption.

Can I still drag and drop files onto the Desktop when hidden?

When desktop icons are hidden, Finder will not display dropped files on the wallpaper surface. However, files dropped into the Desktop folder via the Finder sidebar or open Finder windows are saved normally.

What macOS versions support these methods?

Both the defaults write com.apple.finder CreateDesktop command and Curtain are fully compatible with modern macOS versions including macOS 13 Ventura, macOS 14 Sonoma, and macOS 15 Sequoia (as well as upcoming releases).