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

  1. Press Windows Key + R to open the Run dialog box.
  2. Type regedit and press Enter (or click OK).
  3. 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:

To modify the values:

  1. Double-click IconSpacing to change horizontal spacing.
  2. In the Value data field, enter your desired number and click OK.
  3. Double-click IconVerticalSpacing to change vertical spacing.
  4. In the Value data field, enter your desired number and click OK.

Understanding the Spacing Values

Step 4: Apply the Changes

Registry modifications to icon metrics do not take effect immediately. To apply your new configuration:

  1. Close the Registry Editor.
  2. Save your open work.
  3. 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.