Fix Mac Desktop Icon Layout, Resize, Spacing & Sorting
In this article
Yes, you can fix the Mac desktop icon layout, resize icons, change spacing, and sort files by using Finder’s View Options and a few keyboard shortcuts.
What You'll Need
- A Mac running macOS (any recent version supports these steps).
- A mouse or trackpad for clicking and dragging.
- Basic familiarity with Finder and the desktop.
Step-by-Step
- Open a Finder window and make sure the Desktop is the active view. You can do this by clicking the Desktop background or selecting Finder > Preferences, then checking the box for “Show these items on the desktop: Hard disks, External disks, etc.” if needed.
- With the Desktop visible, press Command + J (or choose View > Show View Options from the menu bar). This opens the View Options panel for the Desktop.
- In the View Options panel, locate the “Icon size” slider. Drag it left or right to set the desired size. The change is applied instantly, so you can see the result in real time.
- Below the size slider, adjust the “Grid spacing” slider to increase or decrease the amount of empty space between icons. Larger spacing makes the desktop look cleaner; smaller spacing lets you fit more icons on the screen.
- To change the alignment of icons on the grid, check or uncheck the “Snap to grid” option. When enabled, icons will automatically align to the invisible grid you just configured.
- If you want the icons to be sorted automatically, click the Desktop background to ensure no items are selected, then right‑click (or Control‑click) and choose Sort By. Options include Name, Kind, Date Modified, Date Created, Size, and Tags. Selecting one will rearrange all icons accordingly.
- For a custom sort order, first disable automatic sorting by selecting Sort By > None. Then, drag icons manually to the positions you prefer. macOS will remember this layout until you change the sorting setting again.
- To reset the Desktop layout to the default arrangement, open the View Options panel again (Command + J) and click the “Reset” button at the bottom. This restores the original icon size, spacing, and grid alignment.
- If you notice icons overlapping after a recent macOS update, repeat steps 2‑4 to re‑apply your preferred size and spacing. The update may have overridden the previous settings.
- For a quick way to increase icon size without opening the View Options panel, hold the Option key and scroll up or down with two fingers on the trackpad, or use the mouse wheel while the Desktop is active.
- To hide all icons temporarily (useful for screenshots), press Command + Option + H. This hides desktop items without moving them. Press the same combination again to reveal them.
- When you add new files to the Desktop, they will follow the current sorting rule. If you prefer new items to appear at the top, set Sort By > Date Modified and ensure “Keep arranged by” is set to “Date Modified”.
Common Mistakes
- Changing the icon size in a Finder window instead of the Desktop view. The Command + J shortcut works for the active view only, so be sure the Desktop is selected first.
- Turning off “Snap to grid” unintentionally, which can make icons appear scattered and hard to keep tidy.
- Using the “Sort By” menu while some icons are selected. macOS will only sort the selected items, leaving the rest unchanged. Deselect everything before choosing a sort option.
- Forgetting to click “Reset” after a major system change. The reset button restores the default layout, preventing mismatched spacing after an OS upgrade.
Tips
- Use Stacks (right‑click the Desktop and choose Use Stacks) to automatically group files by kind, date, or tags. This reduces clutter without manual sorting.
- Combine “Sort By” with Stacks for a layered organization: first sort by Name, then enable Stacks to keep similar items together.
- If you frequently change icon sizes, create a Keyboard Maestro macro or an Automator service that runs the AppleScript command
tell application "Finder" to set icon size of desktop view options to 64(replace 64 with your preferred size). - Keep your Desktop clean by moving older files to a dedicated folder on your Documents or iCloud Drive. A tidy Desktop improves performance on older Macs.
Troubleshooting
- Icons are not moving after dragging. Ensure that “Snap to grid” is enabled, then try dragging again. If the problem persists, restart Finder by holding Option, right‑clicking the Finder icon in the Dock, and choosing Relaunch.
- Changes to size or spacing revert after a restart. This can happen if a third‑party desktop‑customization app is overriding settings. Quit any such apps (e.g., Desktop Curtain, LiteIcon) and repeat the steps.
- The “Reset” button is greyed out. This indicates that the Desktop view options are locked by a profile or managed setting. Open System Settings > Privacy & Security > Profiles and remove any profile that controls Desktop preferences.
- Sorting does not work for certain files. Files with custom Finder tags may appear out of order. Remove tags via the file’s Get Info window or by right‑clicking and selecting Tags > None.
- Desktop icons disappear completely. Press Command + Option + H to toggle visibility. If they remain hidden, open a Terminal window and run
defaults delete com.apple.finder DesktopViewSettings, then relaunch Finder.
Frequently Asked Questions
Can I set a custom grid size that isn’t offered by the slider?
No. macOS only provides the slider for grid spacing. For finer control you would need a third‑party utility, which is not officially supported.
Do these changes affect other Finder windows?
No. The View Options you adjust with Command + J apply only to the Desktop view. Other Finder windows have independent settings.
How do I make the Desktop icons larger on a Retina display?
Increase the “Icon size” slider in the Desktop View Options. Retina displays render larger icons more sharply, so you can go up to 128 px without loss of quality.
Why does my Desktop become slow after adding many icons?
Each icon requires the system to generate a thumbnail. Keeping the number of items low, using Stacks, or moving files to folders reduces the load and improves responsiveness.
Can I hide the Desktop icons automatically when I connect an external monitor?
macOS does not provide a built‑in rule for that. You would need a script or third‑party app to toggle visibility based on display changes.
Is there a way to lock the Desktop layout so it can’t be rearranged accidentally?
macOS does not include a native lock for the Desktop. The closest workaround is to enable “Snap to grid”, keep “Sort By” set to a fixed option, and avoid selecting “None”.