Add a blank spacer to the Mac Dock
Dock spacers are invisible tiles that act as dividers, letting you group your icons visually — work apps on the left, personal in the middle, utilities near the Trash. macOS doesn't expose them in any settings panel, but a Terminal command adds them in seconds.
Add a regular spacer
Open Terminal (Applications → Utilities) and run:
# add a spacer tile to the left (apps) section of the Dock
defaults write com.apple.dock persistent-apps -array-add \
'{"tile-type"="spacer-tile";}'
killall Dock
The Dock restarts and a blank space appears at the far right end of the app section. Drag it to wherever you want the divider — between your browser and productivity apps, for example. You can run the command multiple times to add more than one spacer.
Add a spacer to the right section (folders and recent items)
The Dock has two sections divided by the vertical separator line: apps on the left, files/folders/Trash on the right. To add a spacer in the right section:
# add a spacer to the right (files/folders) section
defaults write com.apple.dock persistent-others -array-add \
'{"tile-type"="spacer-tile";}'
killall Dock
Add a flex spacer (stretches to fill space)
A flex spacer expands to fill available room, pushing icons to the edges of the Dock — useful for pinning a group of icons hard against the separator line.
# add a flexible spacer that stretches
defaults write com.apple.dock persistent-apps -array-add \
'{"tile-type"="flex-spacer-tile";}'
killall Dock
Flex spacers are less commonly used but can create a nice visual separation when you want icons pushed to opposite ends.
Remove a spacer
Removing a spacer works exactly like removing an app from the Dock:
- Right-click the spacer → Remove from Dock, or
- Click and drag it out of the Dock (hold for a moment until it detaches, then let go).
The spacer disappears with the usual "poof" animation.
Mainspring turns dozens of buried macOS settings into one-click toggles — Dock size, magnification, auto-hide, animation speed, and more — without Terminal commands.
Try Mainspring free →Signed & notarized by Apple · 1-day free trial · $29 once
Practical grouping ideas
A few setups that work well:
- Work / personal split: Browser and work apps on the left, Messages, Music, and personal apps on the right — separated by one spacer.
- By type: Browsers | Productivity (Notes, Calendar, Reminders) | Creative tools | Utilities. Three spacers, clean visual rhythm.
- Frequently used vs. reference: Apps you launch constantly on the left; apps you open occasionally but want visible on the right.
There's no right answer — it's about reducing the time you spend scanning the Dock. If you can read your app groups at a glance, spacers are doing their job.
Why macOS doesn't expose this in settings
Spacers have been a power-user trick since at least macOS Lion. Apple has never added them to any GUI — probably because they look odd when first explained and the Dock is already considered "configured enough" for most users. But for anyone who uses the Dock heavily, they're one of the most impactful quality-of-life improvements.