Tighten menu-bar icon spacing on Mac
By default macOS leaves generous padding between every status-bar icon. If you run a lot of menu-bar apps — Things, Bartender, CleanMyMac, weather widgets — that space adds up and items start disappearing under the notch or the clock. You can tighten it in one Terminal command.
What controls the spacing
Two hidden user-defaults keys govern how much room macOS gives each menu-bar item:
NSStatusItemSpacing— the gap between icons (default: 16 px)NSStatusItemMinimumSpacing— the minimum gap when space is tight (default: 8 px)
There is no slider for these in System Settings. You set them through the defaults command and restart SystemUIServer.
The Terminal command
Open Terminal (Applications → Utilities) and run both lines together:
# set both spacing keys to 6 px (tight but readable)
defaults -currentHost write -globalDomain NSStatusItemSpacing -int 6
defaults -currentHost write -globalDomain NSStatusItemMinimumSpacing -int 6
# restart the menu-bar process to apply
killall SystemUIServer
The menu bar flickers for a moment and comes back with noticeably tighter spacing. You can use any integer — 4 is very tight, 12 is only slightly snugger than the default.
How to undo it
To revert to macOS defaults, delete both keys and restart again:
defaults -currentHost delete -globalDomain NSStatusItemSpacing
defaults -currentHost delete -globalDomain NSStatusItemMinimumSpacing
killall SystemUIServer
Mainspring includes a Tighten menu-bar spacing toggle that sets these two keys for you and restarts SystemUIServer automatically. Flip it on, and flip it back just as easily — no Terminal, nothing to memorize.
Try Mainspring free →Signed & notarized by Apple · 1-day free trial · $29 once
Choosing the right value
A value of 6 works well for most setups — icons are still easy to click and clearly separated. If you have very few menu-bar items you may not notice much difference; the payoff is biggest when you have eight or more. If anything feels cramped, try 8 or 10 instead.
Does this affect every macOS version?
These keys work on macOS 13 Ventura, 14 Sonoma, and 15 Sequoia. On Macs with a notch (MacBook Pro 2021 and later) tighter spacing is especially useful because the notch itself consumes menu-bar real estate, pushing items toward the edges. A tighter spacing can recover a couple of extra icon slots.