sodcalculator

10 Tech How-To

Add Spaces to Organize Apps in the Mac Dock

Guide 10-39579 · Updated · Step by step

Adding visual spaces to the Mac Dock can separate groups of apps, making a crowded Dock easier to scan. macOS does not provide a built-in Dock spacer button, but you can add blank spacer tiles with a Terminal command, move them into place, and remove them whenever you like. You need an administrator account to run the command; no extra app is required.

What You’ll Need

  • A Mac with access to Terminal and an administrator account.
  • A moment to save any open work. The command restarts the Dock, which may briefly disappear and return.

Step-by-Step

  1. Decide where a spacer will help. Look at the app icons in your Dock and choose a boundary between groups—for example, between work apps and personal apps. A spacer occupies Dock space like an icon, so plan to use only as many as you need.
  2. Open Terminal. Open Finder, choose Applications, open Utilities, then open Terminal. You can also use Spotlight: press Command-Space, type “Terminal,” and press Return.
  3. Enter the spacer command. Copy and paste this command as one line, then press Return:
    defaults write com.apple.dock persistent-apps -array-add '{"tile-type"="spacer-tile";}'
    This adds one blank spacer to the app section of the Dock. It does not delete or rearrange your apps.
  4. Restart the Dock to show it. In Terminal, enter killall Dock and press Return. The Dock will briefly quit and relaunch. A blank tile should appear at the end of the app icons, before the divider and the section containing recent apps, minimized windows, folders, and the Trash.
  5. Move the spacer into position. Click and drag the blank tile along the Dock to the boundary you chose. Drag slowly and watch for the other icons to shift. Release when the spacer sits between the desired app groups. If it is difficult to grab, move the pointer over the blank area and drag from its center.
  6. Add more spacers if needed. Repeat the command in step 3, then run killall Dock again. Each run creates one spacer at the end of the app section. Drag each new tile into place. Add them one at a time so you can see where each one lands and avoid filling the Dock with unnecessary gaps.
  7. Check the result. Click a few apps from each group to confirm the icons remain accessible and the gaps are useful. If the Dock is set to hide, move the pointer to the screen edge where it appears. The spacer is only a visual divider; it does not create a separate Dock or change which apps are open.

Common Mistakes

  • Expecting a menu option. macOS does not include a standard “Add Spacer” control in Dock settings. The Terminal method creates a blank tile instead.
  • Running only the first command. The spacer may not appear until you restart the Dock with killall Dock. Run that command after adding the tile.
  • Typing the command instead of copying it. Quotes, braces, and punctuation matter. Copy the full line exactly. Do not add quotation marks around the entire command.
  • Confusing Dock sections. The command adds a spacer to the app-icons section. It does not insert a spacer among the items on the other side of the Dock divider.
  • Adding too many gaps. Spacers take up room and can push icons out of sight on a small display. Start with one, then add another only if the groups still need separation.

Tips

  • Arrange the apps first: drag icons into the order you want, then add spacers at group boundaries.
  • Use one gap between clearly different groups. Multiple adjacent spacers make a larger blank area but are harder to manage.
  • To make a wider gap, add another spacer and place it next to the first. To make the gap smaller, remove one of the adjacent spacer tiles.
  • For ordinary Dock organization, you can also move app icons by dragging them, remove an app by dragging it away until “Remove” appears, and change Dock behavior in System Settings. Removing an app from the Dock does not uninstall it.
  • Keep the command available if you may want to add the spacer again. A macOS update or resetting Dock preferences can change custom Dock items, so check your arrangement afterward.

Troubleshooting

No spacer appears: Confirm that Terminal accepted the first command without reporting an error, then run killall Dock. Check the end of the app-icons section, just before the Dock divider. If the Dock has not refreshed, close and reopen System Settings or restart the Mac and check again.

Terminal says permission is denied: Make sure you are signed in to an administrator account. If macOS asks you to authenticate, follow the on-screen prompt. Do not add sudo by default; this Dock preference command normally does not require it.

The blank tile is hard to see or drag: A spacer is intentionally empty, so it may be subtle. Increase the Dock size temporarily in System Settings, then drag from the center of the blank tile. You can reduce the size afterward.

The spacer is in the wrong place: Drag it to the desired location. If dragging does not work, remove it as described below and create a fresh one.

You want to remove a spacer: Drag the blank tile out of the Dock and release when the “Remove” label appears, just as you would remove an app shortcut. Alternatively, Control-click the spacer if a contextual menu is available and choose the removal option. This removes the Dock tile, not an application.

Frequently Asked Questions

Can I add spaces to the Dock without Terminal?
macOS does not offer a built-in spacer button in Dock settings. You can rearrange or remove icons normally, but creating a blank spacer tile requires a command or a third-party utility.

Does this work on current versions of macOS?
The Dock preference command is a commonly used approach on macOS, but Apple can change behavior in future releases. If it stops working after an update, check the Dock’s current behavior before repeating commands or changing other preferences.

Can I put a spacer after the Trash?
The command adds a spacer to the app section, before the divider. The Trash and other items on the opposite side of the divider cannot be organized as part of the app section.

Will the spacer remain after restarting my Mac?
Dock items normally persist across restarts. If the spacer disappears, run the add command again and refresh the Dock.

Can I use a spacer to group minimized windows or folders?
This command adds a tile to the app-icons section, not to the section for folders, minimized windows, or the Trash. You can still organize items in the other section by dragging them where macOS allows.

Does removing the spacer uninstall an app?
No. A spacer is a blank Dock tile, not an application. Removing it only changes the Dock layout.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →