Your computer houses a trove of personal data, from cherished photos to confidential documents. But what if you need to keep some files under lock and key, away from prying eyes? Worry not! In this guide, we’ll walk you through the simple steps to hide files and folders in Windows 11.
![How to hide files and folders in Windows](https://vpn.cboard.net/wp-content/uploads/2024/03/How-to-Hide-Files-and-Folders-in-Windows-11.jpg)
You can hide files using Windows Settings, through Command Line software, Indexing Options, and more. Let’s look at each method in detail.
Method 1: Conceal Files and Folders via Windows Settings
If you’re looking for a method to hide sensitive files and folders on a desktop running on Windows 11, the operating system offers a built-in solution through its Settings app. The simplest and quickest way to prevent them from appearing in the search results is by modifying the privacy configurations in Windows settings.
Step 1: Click the Windows icon. In the search box, type Settings and choose Open.
![Click the Windows icon type Settings and choose Open](https://vpn.cboard.net/wp-content/uploads/2024/03/How-to-Hide-Files-and-Folders-in-Windows-11.png)
![Click the Windows icon type Settings and choose Open](https://vpn.cboard.net/wp-content/uploads/2024/03/How-to-Hide-Files-and-Folders-in-Windows-11.png)
Step 2: Head to the Privacy & Security tab and click Searching Windows.
![Head to Privacy Security tab and click Searching Windows](https://vpn.cboard.net/wp-content/uploads/2024/03/1709924414_613_How-to-Hide-Files-and-Folders-in-Windows-11.png)
![Head to Privacy Security tab and click Searching Windows](https://vpn.cboard.net/wp-content/uploads/2024/03/1709924414_613_How-to-Hide-Files-and-Folders-in-Windows-11.png)
Step 3: Click on ‘Add an excluded folder’.
![Press Add an excluded folder](https://vpn.cboard.net/wp-content/uploads/2024/03/1709924414_553_How-to-Hide-Files-and-Folders-in-Windows-11.png)
![Press Add an excluded folder](https://vpn.cboard.net/wp-content/uploads/2024/03/1709924414_553_How-to-Hide-Files-and-Folders-in-Windows-11.png)
Step 4: Locate the folder you want to hide, and once done, click the Select Folder button.
![Locate the folder you want to hide and click the Select Folder button](https://vpn.cboard.net/wp-content/uploads/2024/03/1709924414_465_How-to-Hide-Files-and-Folders-in-Windows-11.png)
![Locate the folder you want to hide and click the Select Folder button](https://vpn.cboard.net/wp-content/uploads/2024/03/1709924414_465_How-to-Hide-Files-and-Folders-in-Windows-11.png)
Also Read: How to open the Settings app on Windows 11.
Method 2: Hide Files and Folders Using Windows Indexing Options
While not directly hiding files from view, Windows Indexing Options offers a method to prevent specific content from appearing in search results, effectively enhancing privacy. Follow the steps below to hide files and folders in Windows 11 using the Windows indexing options:
Step 1: Click on the Windows icon; in the search box, write Indexing options and hit Enter on your keyboard.
![Click the Windows icon write Indexing options and hit Enter](https://vpn.cboard.net/wp-content/uploads/2024/03/1709924415_151_How-to-Hide-Files-and-Folders-in-Windows-11.png)
![Click the Windows icon write Indexing options and hit Enter](https://vpn.cboard.net/wp-content/uploads/2024/03/1709924415_151_How-to-Hide-Files-and-Folders-in-Windows-11.png)
Step 2: Click on the Advanced button and click Yes when the pop-up appears.
![Press the Advanced button](https://vpn.cboard.net/wp-content/uploads/2024/03/1709924415_993_How-to-Hide-Files-and-Folders-in-Windows-11.png)
![Press the Advanced button](https://vpn.cboard.net/wp-content/uploads/2024/03/1709924415_993_How-to-Hide-Files-and-Folders-in-Windows-11.png)
Step 3: Go to the File Types tab and search for the file you want to hide. Once found, uncheck the box next to it and click OK.
![Go to the File Types tab uncheck the box next to the file you want to hide and click OK](https://vpn.cboard.net/wp-content/uploads/2024/03/1709924415_370_How-to-Hide-Files-and-Folders-in-Windows-11.png)
![Go to the File Types tab uncheck the box next to the file you want to hide and click OK](https://vpn.cboard.net/wp-content/uploads/2024/03/1709924415_370_How-to-Hide-Files-and-Folders-in-Windows-11.png)
Method 3: With the Help of File Explorer
File Explorer is a fundamental component of the Windows operating system that serves as a graphical user interface, allowing you to navigate and manage your files and folders. Additionally, hiding photos, videos, and other files in a folder using it is easy. Follow the steps below:
Step 1: Press Windows + S on your keyboard. Type This PC and click Open.
![Press the Windows S type This PC and click Open](https://vpn.cboard.net/wp-content/uploads/2024/03/1709735409_124_Windows-11에서-숨겨진-파일-및-폴더를-표시하는-방법.png)
![Press the Windows S type This PC and click Open](https://vpn.cboard.net/wp-content/uploads/2024/03/1709735409_124_Windows-11에서-숨겨진-파일-및-폴더를-표시하는-방법.png)
Step 2: Navigate to the file or folder you want to hide. Right-click on it and choose Properties.
![Right click on the file or folder you want to hide and choose Properties](https://vpn.cboard.net/wp-content/uploads/2024/03/1709924416_466_How-to-Hide-Files-and-Folders-in-Windows-11.png)
![Right click on the file or folder you want to hide and choose Properties](https://vpn.cboard.net/wp-content/uploads/2024/03/1709924416_466_How-to-Hide-Files-and-Folders-in-Windows-11.png)
Step 3: Ensure that you are in the General tab. Check the box next to Hidden and click Apply.
![Head to General tab check the box next to Hidden and click Apply](https://vpn.cboard.net/wp-content/uploads/2024/03/1709924416_747_How-to-Hide-Files-and-Folders-in-Windows-11.png)
![Head to General tab check the box next to Hidden and click Apply](https://vpn.cboard.net/wp-content/uploads/2024/03/1709924416_747_How-to-Hide-Files-and-Folders-in-Windows-11.png)
Step 4: If you’re trying to hide a folder, you may see a pop-up window. Pick any of the following: ‘Apply changes to this folder only’ or ‘Apply changes to this folder, subfolders, and files’, and select OK.
Note: If you hide a file, select Apply, followed by OK.
![When hiding a folder choose an attribute and click OK](https://vpn.cboard.net/wp-content/uploads/2024/03/1709924417_369_How-to-Hide-Files-and-Folders-in-Windows-11.png)
![When hiding a folder choose an attribute and click OK](https://vpn.cboard.net/wp-content/uploads/2024/03/1709924417_369_How-to-Hide-Files-and-Folders-in-Windows-11.png)
This should hide the files and folders on your computer. However, if they are still visible in a transparent view, the folder options in File Explorer might not be configured to show hidden files and folders. Don’t worry. Follow the quick steps below and make them invisible:
Step 1: Click the three-dot icon in the toolbar and select Options.
![Click the three dot icon in the toolbar and select Options](https://vpn.cboard.net/wp-content/uploads/2024/03/1709924417_805_How-to-Hide-Files-and-Folders-in-Windows-11.png)
![Click the three dot icon in the toolbar and select Options](https://vpn.cboard.net/wp-content/uploads/2024/03/1709924417_805_How-to-Hide-Files-and-Folders-in-Windows-11.png)
Step 2: Navigate to the View tab and ensure that the radio button next to ‘Don’t show hidden files, folders, or drives’ is selected. Once done, click Apply and press OK.
![Navigate to the View tab select Dont show hidden files folders or drives click Apply and then press OK](https://vpn.cboard.net/wp-content/uploads/2024/03/1709924417_153_How-to-Hide-Files-and-Folders-in-Windows-11.png)
![Navigate to the View tab select Dont show hidden files folders or drives click Apply and then press OK](https://vpn.cboard.net/wp-content/uploads/2024/03/1709924417_153_How-to-Hide-Files-and-Folders-in-Windows-11.png)
Also Read: How to fix File Explorer not working on Windows 11
Method 4: Using Command Prompt
Command Prompt is a text-based interface in Windows that allows you to interact with the system by entering commands. For advanced users, it offers a strong tool for several tasks, from system setups to basic file management. Adhere to the easy steps below to hide files and folders in Windows using CMD.
Step 1: Click the Windows icon. In the search box, type Command Prompt and select Run as administrator. Select Yes in the prompt box.
![Click the Start button search for Command Prompt and select Run as administrator](https://vpn.cboard.net/wp-content/uploads/2024/03/1709386209_812_Windows-11에서-작동하지-않는-Steam-가족-공유를-수정하는-10가지-방법.png)
![Click the Start button search for Command Prompt and select Run as administrator](https://vpn.cboard.net/wp-content/uploads/2024/03/1709386209_812_Windows-11에서-작동하지-않는-Steam-가족-공유를-수정하는-10가지-방법.png)
Step 2: Navigate to the folder containing the files or folders. Type the below command and hit Enter:
cd (file/folder path)
Note: Instead of (file/folder path), add the path. To find the file path, right-click on the file or folder you want to hide and click Copy as path. Now, paste it into the CMD window.
![Navigate to the folder](https://vpn.cboard.net/wp-content/uploads/2024/03/1709924418_626_How-to-Hide-Files-and-Folders-in-Windows-11.png)
![Navigate to the folder](https://vpn.cboard.net/wp-content/uploads/2024/03/1709924418_626_How-to-Hide-Files-and-Folders-in-Windows-11.png)
Step 3: To hide a file, enter the following command and press Enter:
attrib +h +s "filename.ext"
Note: Replace “filename.ext” with the name of the file you want to hide.
![Command to hide a file](https://vpn.cboard.net/wp-content/uploads/2024/03/1709924418_337_How-to-Hide-Files-and-Folders-in-Windows-11.png)
![Command to hide a file](https://vpn.cboard.net/wp-content/uploads/2024/03/1709924418_337_How-to-Hide-Files-and-Folders-in-Windows-11.png)
Step 4: To hide a folder, write the following command and press Enter.
attrib +h "folder name"
Note: Replace “folder name” with the name of the folder you want to hide.
![Command to hide a folder](https://vpn.cboard.net/wp-content/uploads/2024/03/1709924418_372_How-to-Hide-Files-and-Folders-in-Windows-11.png)
![Command to hide a folder](https://vpn.cboard.net/wp-content/uploads/2024/03/1709924418_372_How-to-Hide-Files-and-Folders-in-Windows-11.png)
Step 5: To hide all subfolders and subfiles at once, navigate inside the folder you want to hide using the cd command.
Step 6: Type the following command and press Enter:
attrib +h /s /d *.
![Command to hide all subfolders and sub files at once](https://vpn.cboard.net/wp-content/uploads/2024/03/1709924418_269_How-to-Hide-Files-and-Folders-in-Windows-11.png)
![Command to hide all subfolders and sub files at once](https://vpn.cboard.net/wp-content/uploads/2024/03/1709924418_269_How-to-Hide-Files-and-Folders-in-Windows-11.png)
Also Read: How to open Command Prompt on Windows 11, 10, and earlier
Code Explanation
Here is what the commands above mean:
- cd stands for change directory.
- attrib is used to view and modify file attributes.
- The +h attribute sets the file or folder as hidden.
- The +s attribute makes it a system file, further obscuring it.
Method 5: Hide Files and Folders via PowerShell
PowerShell is a strong tool made by Microsoft for making tasks easier on your computer. It helps with organizing and managing settings. You can also use it to hide files and folders on your desktop.
Step 1: Press Windows + S on your keyboard. Type PowerShell and click Run as administrator. When prompted, select Yes.
![Click the Windows icon search for Windows PowerShell and run it as administrator](https://vpn.cboard.net/wp-content/uploads/2024/03/1709650828_126_Windows-11에서-설치-오류-0x80070103을-수정하는-8가지-방법.png)
![Click the Windows icon search for Windows PowerShell and run it as administrator](https://vpn.cboard.net/wp-content/uploads/2024/03/1709650828_126_Windows-11에서-설치-오류-0x80070103을-수정하는-8가지-방법.png)
Step 2: Type the command below and press Enter to hide a single file or folder.
attrib +h "file path"
Note: Replace “file path” with the exact path for the file you want to hide.
![Command to hide files in PowerShell](https://vpn.cboard.net/wp-content/uploads/2024/03/1709924418_471_How-to-Hide-Files-and-Folders-in-Windows-11.png)
![Command to hide files in PowerShell](https://vpn.cboard.net/wp-content/uploads/2024/03/1709924418_471_How-to-Hide-Files-and-Folders-in-Windows-11.png)
Step 3: Enter the following command and hit Enter to hide all files and subfolders within a directory.
attrib +h "folder path" /s /d
Note: Replace “folder path” with the exact path for the folder you want to hide. It hides all subfiles and subfolders.
![Command to hide folders in PowerShell](https://vpn.cboard.net/wp-content/uploads/2024/03/1709924418_937_How-to-Hide-Files-and-Folders-in-Windows-11.png)
![Command to hide folders in PowerShell](https://vpn.cboard.net/wp-content/uploads/2024/03/1709924418_937_How-to-Hide-Files-and-Folders-in-Windows-11.png)
Code Explanation
Here’s an explanation for the code above:
- /s: Applies the attribute to all files and subfolders within the directory.
- /d: Applies the attribute to directories themselves.
Also Read: How to fix PowerShell not opening on Windows 11
Method 6: Hide an Entire Drive
There are situations where you might want to keep certain data private, like family photos or sensitive work documents stored on a disk. Follow any of the three ways below to hide an entire drive on your Windows device.
Using the Registry Editor
Step 1: Press the Windows key on your keyboard. In the search box, type Registry Editor and select Run as administrator. When prompted, choose Yes from the pop-up.
![Open Registry Editor 7](https://vpn.cboard.net/wp-content/uploads/2024/03/1709924419_304_How-to-Hide-Files-and-Folders-in-Windows-11.png)
![Open Registry Editor 7](https://vpn.cboard.net/wp-content/uploads/2024/03/1709924419_304_How-to-Hide-Files-and-Folders-in-Windows-11.png)
Step 2: Paste the following path in the Registry Editor’s address bar and hit Enter.
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
![Go to Explore folder](https://vpn.cboard.net/wp-content/uploads/2024/03/1709924419_856_How-to-Hide-Files-and-Folders-in-Windows-11.png)
![Go to Explore folder](https://vpn.cboard.net/wp-content/uploads/2024/03/1709924419_856_How-to-Hide-Files-and-Folders-in-Windows-11.png)
Step 3: Ensure that Explorer is selected. Right-click on it and select New. Now, choose the DWORD (32-bit) Value from the options.
![Right click on Explore folder select New and choose the DWORD 32 bit Value](https://vpn.cboard.net/wp-content/uploads/2024/03/1709924419_818_How-to-Hide-Files-and-Folders-in-Windows-11.png)
![Right click on Explore folder select New and choose the DWORD 32 bit Value](https://vpn.cboard.net/wp-content/uploads/2024/03/1709924419_818_How-to-Hide-Files-and-Folders-in-Windows-11.png)
Step 4: Rename the file to NoDrives and press Enter to save it.
![Rename the file to NoDrives](https://vpn.cboard.net/wp-content/uploads/2024/03/1709924419_792_How-to-Hide-Files-and-Folders-in-Windows-11.png)
![Rename the file to NoDrives](https://vpn.cboard.net/wp-content/uploads/2024/03/1709924419_792_How-to-Hide-Files-and-Folders-in-Windows-11.png)
Step 5: Open the new NoDrives file by double-clicking on it. Under the Base section, choose Decimal. Now, use the table below to find the value, as it represents various drives with their values.
Drives | Value Data | Drives | Value Data |
A | 1 | N | 8192 |
B | 2 | O | 16384 |
C | 4 | P | 32768 |
D | 8 | Q | 65536 |
E | 16 | R | 131072 |
F | 32 | S | 262144 |
G | 64 | T | 524288 |
H | 128 | U | 1048576 |
I | 256 | V | 2097152 |
J | 512 | W | 4194304 |
K | 1024 | X | 8388608 |
L | 2048 | Y | 16777216 |
M | 4096 | Z | 33554432 |
Hide All | 67108863 | Show All | 0 |
Step 6: Depending on the drive you want to hide, enter a number in the Value box from the table above. Once done, click OK and restart your device.
![Double click on NoDrives file choose Decimal enter a number in the Value box and click OK](https://vpn.cboard.net/wp-content/uploads/2024/03/1709924419_635_How-to-Hide-Files-and-Folders-in-Windows-11.png)
![Double click on NoDrives file choose Decimal enter a number in the Value box and click OK](https://vpn.cboard.net/wp-content/uploads/2024/03/1709924419_635_How-to-Hide-Files-and-Folders-in-Windows-11.png)
Using the Disk Management Utility
Step 1: Right-click on the Windows icon and head to Disk Management from the options.
![Right click on the Windows icon and head to Disk Management](https://vpn.cboard.net/wp-content/uploads/2024/03/1709924419_230_How-to-Hide-Files-and-Folders-in-Windows-11.png)
![Right click on the Windows icon and head to Disk Management](https://vpn.cboard.net/wp-content/uploads/2024/03/1709924419_230_How-to-Hide-Files-and-Folders-in-Windows-11.png)
Step 2: Now, right-click on the driver you wish to hide and choose ‘Change Drive Letter and Paths’.
![Right click on the driver you wish to hide and choose Change Drive Letter and Paths](https://vpn.cboard.net/wp-content/uploads/2024/03/1709924419_276_How-to-Hide-Files-and-Folders-in-Windows-11.png)
![Right click on the driver you wish to hide and choose Change Drive Letter and Paths](https://vpn.cboard.net/wp-content/uploads/2024/03/1709924419_276_How-to-Hide-Files-and-Folders-in-Windows-11.png)
Step 3: Ensure that the driver letter is selected, and then press the Remove button.
![Press Remove button](https://vpn.cboard.net/wp-content/uploads/2024/03/1709924419_887_How-to-Hide-Files-and-Folders-in-Windows-11.png)
![Press Remove button](https://vpn.cboard.net/wp-content/uploads/2024/03/1709924419_887_How-to-Hide-Files-and-Folders-in-Windows-11.png)
Step 4: Confirm the change by clicking Yes on the pop-up window and select OK.
![Confirm the change by clicking Yes on the pop up window and select OK](https://vpn.cboard.net/wp-content/uploads/2024/03/1709924419_947_How-to-Hide-Files-and-Folders-in-Windows-11.png)
![Confirm the change by clicking Yes on the pop up window and select OK](https://vpn.cboard.net/wp-content/uploads/2024/03/1709924419_947_How-to-Hide-Files-and-Folders-in-Windows-11.png)
Also Read: How to fix Disk Management not loading on Windows
Hide Drives Via Command Prompt
Step 1: On your keyboard, press the Windows + S keys. Write Command Prompt in the search box and click Run as Administrator. When prompted, choose Yes.
![Click the Start button search for Command Prompt and select Run as administrator](https://vpn.cboard.net/wp-content/uploads/2024/03/1709386209_812_Windows-11에서-작동하지-않는-Steam-가족-공유를-수정하는-10가지-방법.png)
![Click the Start button search for Command Prompt and select Run as administrator](https://vpn.cboard.net/wp-content/uploads/2024/03/1709386209_812_Windows-11에서-작동하지-않는-Steam-가족-공유를-수정하는-10가지-방법.png)
Step 2: Enter the command below and hit Enter to head to the Disk Parts on the Windows device.
diskpart
![Head to the Disk Parts](https://vpn.cboard.net/wp-content/uploads/2024/03/1709924419_322_How-to-Hide-Files-and-Folders-in-Windows-11.png)
![Head to the Disk Parts](https://vpn.cboard.net/wp-content/uploads/2024/03/1709924419_322_How-to-Hide-Files-and-Folders-in-Windows-11.png)
Step 3: Now, type the following command and press Enter to check the available drives.
list volume
![Check the available drives](https://vpn.cboard.net/wp-content/uploads/2024/03/1709924419_991_How-to-Hide-Files-and-Folders-in-Windows-11.png)
![Check the available drives](https://vpn.cboard.net/wp-content/uploads/2024/03/1709924419_991_How-to-Hide-Files-and-Folders-in-Windows-11.png)
Step 4: Choose the disk you want to remove from the list and note the volume number of the disk. Once ready, type the following and hit Enter.
select volume (volume number)
Note: Replace the (volume number) with the number next to the drive you wish to hide.
![Choose the disk you want to remove](https://vpn.cboard.net/wp-content/uploads/2024/03/1709924419_548_How-to-Hide-Files-and-Folders-in-Windows-11.png)
![Choose the disk you want to remove](https://vpn.cboard.net/wp-content/uploads/2024/03/1709924419_548_How-to-Hide-Files-and-Folders-in-Windows-11.png)
Step 5: Finally, to hide the drive, enter the following command and press Enter.
remove letter=(letter denoting the drive you want to hide)
![Hide the drive](https://vpn.cboard.net/wp-content/uploads/2024/03/1709924419_139_How-to-Hide-Files-and-Folders-in-Windows-11.png)
![Hide the drive](https://vpn.cboard.net/wp-content/uploads/2024/03/1709924419_139_How-to-Hide-Files-and-Folders-in-Windows-11.png)
Also Read: How to fix to Command Prompt not working on Windows 11
FAQs on Hiding Files and Folders in Windows
It depends on the software you’re using. Some backup programs back up hidden files by default, while others need you to select them for inclusion manually. Check your backup software’s settings to see how hidden files are handled.
Yes, you can hide Windows system-protected files. However, we don’t recommend you to do so.
No, hiding files is not an effective security measure against malware or hackers.
No, you cannot hide a folder in Windows 11 with a password.
Files Secured
While hiding files and folders on your Windows 11 can offer protection, remember that it’s not foolproof. While it can deter casual users from accessing your data, more advanced users may still find a way to uncover hidden files. For enhanced security, especially when dealing with sensitive data, we advise you to lock your folders on Windows.