Change Desktop Icon Spacing in Windows via Regedit
Adjusting the desktop icon spacing in Windows allows you to customize the horizontal and vertical grid layout to fit more icons or create a cleaner, more spaced-out appearance. While Windows does not provide a direct slider in the standard settings menu for this, you can achieve precise control over both horizontal and vertical icon spacing by modifying specific values in the Windows Registry Editor (Regedit).
Step 1: Open the Registry Editor
- Press
Windows Key + Rto open the Run dialog box. - Type
regeditand press Enter (or click OK). - If prompted by User Account Control (UAC), click Yes to grant administrative permissions.
Step 2: Navigate to the WindowMetrics Key
In the Registry Editor’s left sidebar, navigate to the following path:
HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics
Alternatively, you can copy and paste the entire path into the address bar at the top of the Registry Editor window and press Enter.
Step 3: Modify Horizontal and Vertical Spacing
Within the WindowMetrics folder, locate the two string
values responsible for icon spacing:
- IconSpacing: Controls the horizontal space between desktop icons.
- IconVerticalSpacing: Controls the vertical space between desktop icons.
To modify the values:
- Double-click IconSpacing to change horizontal spacing.
- In the Value data field, enter your desired number and click OK.
- Double-click IconVerticalSpacing to change vertical spacing.
- In the Value data field, enter your desired number and click OK.
Understanding the Spacing Values
- Default Value:
-1125 - Allowed Range:
-480(minimum spacing / closest together) to-2730(maximum spacing / furthest apart). - Note: The values are represented as negative numbers
calculated in twips (
-15multiplied by the spacing in pixels). To reduce spacing, enter a number closer to-480(e.g.,-900). To increase spacing, enter a number with a higher negative absolute value (e.g.,-1500).
Step 4: Apply the Changes
Registry modifications to icon metrics do not take effect immediately. To apply your new configuration:
- Close the Registry Editor.
- Save your open work.
- Sign out of your Windows account and sign back in, or restart your computer.
Once signed back in, your desktop icons will automatically snap to
the newly defined horizontal and vertical grid dimensions. If you ever
want to revert the changes, repeat the steps above and set both
IconSpacing and IconVerticalSpacing
back to the default value of -1125.