Updated
How to Change the Spacing of Menu Bar Icons on Mac
By Sindre Sorhus, who makes the Menu Bar Spacing app
With Menu Bar Spacing
On macOS 26 and earlier:
The setting stays, also after a restart, so you can quit the app, or even delete it. To go back to the normal spacing, open the app, and click “Reset”.
Get Menu Bar Spacing
Customize the gap between menu bar items
Free
- Requires
- macOS 26 or later
- Privacy
- No data collected
- Updated
- February 2026
Without an app
Menu Bar Spacing changes two hidden settings of macOS, and you can set them in the Terminal app too. On macOS 26 and earlier, run:
defaults -currentHost write -globalDomain NSStatusItemSpacing -int 8
defaults -currentHost write -globalDomain NSStatusItemSelectionPadding -int 6
Then log out and log in again. Smaller numbers give a smaller gap. To go back to the normal spacing:
defaults -currentHost delete -globalDomain NSStatusItemSpacing
defaults -currentHost delete -globalDomain NSStatusItemSelectionPadding
The app does the same with a slider, and shows the result at once.
On macOS 27
macOS 27 has no setting for the spacing, hidden or not, so the app and the commands do nothing. To get more space, remove the icons that you do not need: open “System Settings Menu Bar”, and turn off the items and the apps that you do not use. To keep related icons together, see how to group menu bar icons.
