/
/

How to Enable or Disable Compact View in File Explorer in Windows 11

by Mikhail Blacer, IT Technical Writer
How to Enable or Disable Compact View in File Explorer in Windows 11 blog banner image
How to Enable or Disable Compact View in File Explorer in Windows 11 blog banner image

Key points

  • GUI methods (Command Bar’s View menu, or Folder Options > View tab) let individual users toggle Compact View in a few clicks — no admin rights needed.
  • Registry Editor and REG files control Compact View via the UseCompactMode DWORD value (1 = on, 0 = off) in HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced.
  • Command Prompt and PowerShell scripts set the same UseCompactMode value programmatically — ideal for IT admins deploying the setting across multiple machines.
  • Group Policy (“Turn off Compact View” under User Configuration > Administrative Templates > Windows Components > File Explorer) enforces the setting domain-wide on Pro, Enterprise, and Education editions.

Compact View in File Explorer reduces the spacing between items, allowing content to be visible at the same time. Using it might be preferable for some users and managed environments that want to maximize the details visbile in File Explorer and the information shown on screen. Moreover, it is helpful for users with smaller screens and touch devices because it improves workflows and overall accessibility.

By the end of this guide, you will learn how to enable or disable Compact View. We will cover GUI methods, as well as the Registry Editor, Command Prompt, PowerShell, and Group Policy.

Different ways to enable or disable Compact View in File Explorer

📌 Prerequisites:

  • Your computer needs to have Windows 11 updated to the latest version. Although these methods are available in all editions, note that Group Policy Editor is not present in Windows Home.
  • You will need administrative privileges to use tools such as PowerShell, Command Prompt, and the Group Policy Editor.

📌 Recommended deployment strategies:

Click to Choose a Method💻

Best for Individual Users

💻💻💻

Best for Enterprises

Method 1: File Explorer Command Bar✓
Method 2: Folder Options✓x
Method 3: Registry Editor✓✓
Method 4: Command Prompt✓✓
Method 5: PowerShell✓✓
Method 6: Group Policy Preferencesx✓

Method 1: How to tweak Compact View using File Explorer’s Command Bar

📌 Use Case:

  • This method is a great option for individual computers to make quick changes without diving deep into system settings or using code.

📌 Prerequisites:

  • Your device should be running Windows Version 21H2 (which supports Compact View) or later.
  • IT policies or third-party tools must not restrict File Explorer. To check, see if the View menu and Compact View options can appear in File Explorer. If these are grayed out, then restrictions are in effect.

Follow these steps to toggle Compact View via the File Explorer Command Bar:

  1. Open File Explorer via the Win + E shortcut. Also, you can click the folder icon on the taskbar.
  2. Click the View drop-down menu on the Command Bar.
  3. Next, hover your mouse over Show, and click Compact View to turn it on or off.

File Explorer Compact View

💡 Note: If Compact View is on, a check mark is beside it. Otherwise, the feature is off.

Method 2: How to use Folder Options to toggle Compact View

📌 Use Case:

  • Good for computers and everyday users who want a quick way to enable or disable Compact View.

📌 Prerequisites:

  • Your computer should have an updated version of Windows 11 installed.
  • You need to disable Tablet mode for this setting to work.
  • Group Policy adjustments should not block visual or layout optimizations.

Here is how you can make changes to Compact View through Folder Options:

  1. Open File Explorer via the Win + E shortcut or by clicking its icon on the taskbar.
  2. Click on the three dots in the Command Bar and pick Options to open Folder Options.
  3. Next, go to the View tab.
  4. Find and check/uncheck the “Decrease space between items (Compact View)” option.
  5. Click Apply, then OK.

Folder Options advanced settings

Method 3: How to utilize the Registry Editor to configure Compact View

📌 Use Cases:

  • Good for admins making tweaks to user profiles.
  • This method is a go-to option if Group Policy is unavailable in your system.
  • You can use this in systems where File Explorer settings are unavailable.

📌 Prerequisites:

  • This method needs administrator privileges.
  • You need full access to File Explorer.

Here’s how to use the Registry Editor to turn Compact View on or off:

  1. Press Windows key + R, type regedit, and press Enter to open the Registry Editor. 
  2. On the left pane, locate and go to this key: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced.
  3. In the right pane, locate the UseCompactMode value.
  4. Double-click UseCompactMode and set its value (Decimal) accordingly:
    1. 1 = activates Compact View
    2. 0 = deactivates Compact View
  5. Click OK, then close the Registry Editor.

⚠️ Warning: Modifying the Registry may cause some issues. To avoid such cases, back up the Windows Registry beforehand.

Method 4: How to use the Command Prompt to turn Compact View on or off

📌 Use Cases:

  • This method is useful for users who want a quick, scriptable method.
  • Best for applying the change across multiple machines or via deployment tools.

📌 Prerequisites:

  • Requires administrator privileges to implement.
  • No tools or third-party settings should override layout settings.

Here are the steps to turning Compact View on or off via the Command Prompt:

  1. Open the Command Prompt (Administrator).
  2. Execute this command to enable Compact View:

reg add"HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced"/v UseCompactMode /t REG_DWORD /d1/f

  1. To disable Compact View, run this command:

reg add"HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced"/v UseCompactMode /t REG_DWORD /d0/f

  1. Close the Command Prompt and check File Explorer to see if the changes have occurred.

Method 5: How to use PowerShell to modify Compact View on File Explorer

📌 Use Cases:

  • You can use this for remote management and login scripts.
  • Useful for power users and IT admins who are responsible for deployment scripts and managing multiple machines simultaneously.

📌 Prerequisites:

  • You will need administrator privileges to use this method.
  • Be sure you are running PowerShell as the same user account whose settings you want to change.

Here’s how to use PowerShell to tweak Compact View settings:

  1. Open PowerShell (Administrator).
  2. Execute this command to enable Compact View:

Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "UseCompactMode" -Value 1

  1. You can disable Compact View with this command:

Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "UseCompactMode" -Value 0

  1. Close PowerShell, then open File Explorer to see if the changes have been applied.

💡Note: These scripts only work if the UseCompactMode value already exists. Otherwise, add this at the end of the script.

-PropertyType DWord -Force

 

Method 6: How to use Group Policy Editor to enable or disable Compact View

📌 Use Cases:

  • This method is ideal if you are managing an environment that uses Microsoft Enterprise or Education.
  • Ideal for domain-linked devices managed through Active Directory.

📌 Prerequisites:

  • Unavailable in Windows Home; must have Pro, Enterprise, or Education editions to work.
  • You must have admin privileges to access and modify Group Policy.

Here is how you can use the Group Policy Editor to manage Compact View:

  1. Open the Group Policy Editor. Press Win + R, type gpedit.msc, and press Enter.
  2. Navigate to: User Configuration > Administrative Templates > Windows Components > File Explorer.
  3. Locate “Turn off Compact View.”
  4. Double-click the policy and set it accordingly:
    1. Enabled to disable Compact View
    2. Disabled or Not Configured to allow Compact View.
  5. Click Apply, then OK.

💡Note: You can immediately check File Explorer to see if changes are in effect. You can restart File Explorer via the Task Manager or force update Group Policy if they are not visible.

Method 7: How to use REG files to enable or disable Compact View

📌 Use Cases:

  • This method is most preferred for users who wish to change the DWORD value without using the Registry Editor.

Here is how you can use REG files to manage Compact View:

  1. Open Notepad, and copy-paste one of the following:
    1. To enable Compact View:

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]

“UseCompactMode”=dword:00000001

  1. To disable Compact View:

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]

“UseCompactMode”=dword:00000000

  1. Save it as a .reg file, then double-click it to merge it. Click Run or Yes when prompted.

⚠️ Things to look out for

RisksPotential ConsequencesReversals
Configuring the wrong registry keyCompact View may not be applied. Plus, this could break system-related behavior.Make sure you’re following the correct Registry key. If necessary, backup and restore the Registry.
Typos in the Command Prompt or PowerShellThe command will fail or modify the wrong key.Re-enter the commands listed above carefully.
Using Hex instead of Decimal in the Registry EditorCompact View will not be applied and may behave unpredictably.Ensure you’ve selected DWORD (32-bit) Decimal when setting the Registry value.

Additional considerations when tweaking Windows 11 File Explorer Compact View

For users who manage numerous folders and prefer a denser layout

Users who would benefit most from Compact View are those who manage many files and directories. Thanks to its denser layout, this setting will let them easily navigate the many folders in File Explorer.

Consider touch devices when managing Compact View

When managing a fleet of computers, consider users utilizing touch-enabled devices. The default spacing may improve usability for some Windows tablet users whose workflows involve dragging and dropping files and folders.

Modifications should comply with organizational standards

When implementing Compact View in an enterprise setting, be sure to check if this aligns with organizational standards.

Troubleshooting common Compact View issues

Changes are not taking effect

If they fail to occur, you can restart File Explorer via the Task Manager. Here’s how:

  1. Open Task Manager using the CTRL + Shift + Esc shortcut.
  2. Locate or search for Windows Explorer.
  3. Right-click Windows Explorer and select Restart.

Alternatively, you can also restart your computer.

The Registry value is missing

If you are using Windows Registry to toggle Compact View, and if the UseCompactMode key does not exist, you can create it using these steps:

  1. Open the Registry Editor and head to this key: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced.
  2. Right-click and select New > DWORD (32-bit) Value.
  3. Name it UseCompactMode.
  4. When setting the value, make sure it is in Decimal. 

Group Policy tweaks are not taking effect.

If you choose the Group Policy Editor method to enable or disable Compact View, you can run the gpupdate /force command in the Command Prompt to force update Group Policy.

Set Compact View to meet user needs and standards

Managing Compact View in Windows 11 File Explorer enables IT admins to review its settings and the user interface to meet organizational needs and user preferences.

Several straightforward methods exist to accomplish this, from PowerShell and Command Prompt codes to GUI-based changes. For those implementing this across a large fleet of computers, Group Policy and the Registry provide deeper control.

Related topics:

FAQs

Compact View is a File Explorer display setting in Windows 11 that decreases the spacing between files and folders, letting you see more items on screen at once. It’s especially useful for users managing large numbers of files or working on smaller screens.

The quickest way is to open File Explorer, click View on the Command Bar, hover over Show, and select Compact View. You can also enable it through Folder Options by checking “Decrease space between items (Compact View)” under the View tab.

In Command Prompt, run reg add “HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced” /v UseCompactMode /t REG_DWORD /d 1 /f. In PowerShell, run Set-ItemProperty -Path “HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced” -Name “UseCompactMode” -Value 1. Both set the same registry value and are ideal for scripted or remote deployment.

Changes usually require restarting File Explorer to take effect. — You can do this via Task Manager (Ctrl + Shift + Esc > Windows Explorer > Restart) or by restarting your PC. Also check that Tablet Mode is off and that no Group Policy setting is blocking the change.

Yes. IT admins managing multiple devices can use Group Policy (User Configuration > Administrative Templates > Windows Components > File Explorer > “Turn off Compact View”) or push the UseCompactMode registry value via script. Both methods work across domain-joined machines.

No. Despite early plans to add it, Compact View was never officially rolled out to Windows 10 File Explorer and remains exclusive to Windows 11.

The default Windows 11 layout adds extra padding between items for touch-friendly navigation, while Compact View removes that padding to show more files in the same space, — similar to the denser layout used in Windows 10.

You might also like

Ready to simplify the hardest parts of IT?