If you share your computer with others, you may want to hide certain files and folders so that people don't go nosing into your files. The main reason to hide a folder in Windows 10 is privacy. If you have sensitive data that you don't want anyone to see, hiding your files and folders is a great and easy option to boost your security.

Here's how you can hide any file or folder on Windows 10.

1. Hide Individual Files/Folders On Windows 10 Using the Command Line

A simple way to hide a file or folder is to change its attributes using the attrib command on the command line. Unsure about using the Windows 10 Command Prompt? Here are our top tips for getting started with the Command Prompt.

Let's say you want to hide the Sample.mp4 file in the ToHide folder, as shown below.

windows 10 sample files and folders

Open the Command Prompt by pressing Windows key + R to open the Run dialog box. Then, type cmd.exe in the Open box and click OK.

At the prompt, type the following command. Replace the path and file name with the path and file name for the file you want to hide.

        attrib C:\Users\[YOUR NAME]\Documents\ToHide\Sample.mp4 +s +h
    

The +s and +h are the attributes you set for the file. The +s attribute is the System file attribute and indicates the file is for use by the operating system and is not normally displayed in a directory listing. The +h is the Hidden file attribute and indicates the file will not be displayed in a directory listing by default.

The attributes in the command are not case sensitive, so you can use either lowercase or uppercase.

When you open the folder in File Explorer that contains the hidden file or folder, it will not be visible. Even going to View > Show/hide and check the Hidden items box will not show the hidden file or folder.

windows 10 show hide hidden items in explorer

You can also hide a folder using the attrib command in the following way. Again, replace the path and the folder name with your own.

        attrib C:\Users\[YOUR NAME]\Documents\ToHide\AnotherFolder +s +h
    

To unhide a file or folder, use the same attrib command, replacing the "+" with "-" in front of the "s" and "h" attributes.

        attrib C:\Users\[YOUR NAME]\Documents\ToHide\Sample.mp4 -s -h
    

To learn more about the attrib command, type attrib /? at the command prompt and press Enter.

2. Hide Windows 10 Folders Using File Explorer

Using File Explorer to hide a folder is like using the attrib command described in the previous section, but it's less secure.

Anyone who knows about showing and hiding hidden files in File Explorer can access your files. But if you're trying to hide data from other family members who are not as tech-savvy as you are, this can work just fine. Hiding files and folders isn't the only trick the File Explorer has up its sleeve, either. Check out the best File Explorer tricks and tips to take control of your file management.

You can set the Hidden attribute for the selected files or folder in File Explorer. But first, you need to ensure files and folders with the Hidden attribute do not show in File Explorer.

  1. To do this, go to View tab > Options and select Change folder and search options.
    windows 10 change folder and search options
  2. On the View tab, select Don't show hidden files, folders, or drives under Advanced settings and click OK.
    windows 10 dont show hidden files folders menu options

To hide one or more files or folders:

  1. Select the files or folders, right-click on them, and select Properties.
  2. On the General tab on the Properties dialog box, check the Hidden box in the Attributes section. To prevent the files or folders from appearing in Windows search results, click Advanced.
  3. Then, uncheck the boxes in the File attributes section of the Advanced Attributes dialog box and click OK.
windows 10 advanced folder attributes menu

To unhide the files or folder, go back to the Properties dialog box for the files or folders in question, and uncheck the Hidden box in the Attributes section.

3. Hide Entire Drives on Windows 10 Using the Registry Editor

This method hides an entire drive instead of just selected files or folders on the drive.

Please note that hiding an entire drive involves changing the Windows Registry. Before you begin, we strongly suggest you back up your Windows Registry. You should also check out our tips for not accidentally messing up the Windows Registry.

If you're uncomfortable using the Windows Registry or are unsure what the Windows Registry is, you can find another method for hiding an entire drive in the Hide Entire Drives Using the Disk Management Utility section below.

To begin:

  1. Open the Registry Editor by pressing Windows key + R to open the Run dialog box. Then, type regedit in the Open box and click OK.
  2. Navigate to the following key in the left pane. HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
  3. Right-click the Explorer key and go to New > DWORD (32-bit) Value. Name the new value NoDrives and then double-click on it.
    windows 10 registry editor new dword 32bit
  4. On the Edit DWORD (32-bit) Value dialog box, select Decimal as the Base. Then, enter a number corresponding to the drive or drives you want to hide. To determine which number to use, see the table in the next step.
    windows 10 registry editor edit dword values
  5. Find the letter for the drive you want to hide in the table below. Then, enter the number associated with that drive letter in the Value data box for the NoDrives value in the registry. In our example, I entered 64 to hide my G: drive. If you want to hide more than one drive, add the numbers for all the drive letters you want to hide and enter the total in the Value data box. For example, to hide your C and D drive, you would input 12 (4+8).

A: 1

B: 2

C: 4

D: 8

E: 16

F: 32

G: 64

H: 128

I: 256

J: 512

K: 1024

L: 2048

M: 4096

N: 8192

O: 16384

P: 32768

Q: 65536

R: 131072

S: 262144

T: 524288

U: 1048576

V: 2097152

W: 4194304

X: 8388608

Y: 16777216

Z: 33554432

All: 67108863

After you restart your computer, you will not see the drive in File Explorer.

To show the drive again, return to the Registry Editor and delete the NoDrives value under the HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer key and restart your computer again.

4. Hide Entire Drives Using the Disk Management Utility

If you'd rather not edit the registry, you can hide an entire drive using the Disk Management utility. This utility shows you all the internal and external drives connected to your computer.

  1. Press Windows key + R to open the Run dialog box. Then, type diskmgmt.msc in the Open box and click OK.
  2. Right-click the drive you want to hide (in the top or bottom section) and select Change Drive Letter and Paths.
    windows disk management change drive path option
  3. On the Change Drive Letter and Paths dialog box, select the drive letter, click Remove, and then click OK.
  4. A warning dialog box will appear and inform you that some programs rely on drive letters and may not work if you remove the drive letter. If you're sure you want to hide the drive, click Yes to remove the drive letter.
    windows disk management drive change warning message
  5. The letter is removed from the drive in the Disk Management Utility. Once you close and reopen File Explorer, the drive will not be visible and will not be included in Windows search results.

But what happens when you want to make the drive visible again?

  1. To make the drive visible again, go back into the Disk Management utility and open the Change Drive Letter and Paths dialog box for the hidden drive. Then, click Add.
  2. Make sure Assign the following drive letter is selected (it should be by default). Next, select the drive letter you want to assign to it from the dropdown list, and click OK.
  3. You must close and reopen File Explorer to see the drive again.

5. Hide Folders in Windows 10 Using Third-Party Software

All the methods mentioned above are not as secure as hiding and password-protecting files and folders. Here are some Windows 10 file-hiding software options for you to consider.

FileFriend

filefriend hide files inside jpeg tool

In FileFriend, use the JPK tab to hide files or folders in a JPEG image and add a password to protect the hidden files. FileFriend also allows you to enter text that you want to hide in the image directly in the program without creating a text file to hide in the image (using the JTX tab).

Other features of FileFriend include splitting or joining files and encrypting files and folders.

Download: FileFriend for Windows (Free)

Easy File Locker

easy file locker file list and status

Easy File Locker is an easy-to-use freeware utility that allows you to hide and lock files and folders from other people and programs. The locked files and folders are protected from opening, modifying, deleting, moving, renaming, or copying. In addition, all files and subfolders in a locked folder are protected.

Set a password to open the program by going to System > Set Password. You don't have to set a password, but if you don't, anyone can open the program, turn off the protection for your files and folders, and access them.

Use the Add File and Add Folder buttons to add files and folders to Easy File Locker. Double-click on a file or folder in the list to change its permissions (Accessible, Writable, Deletable, Visible).

Protect the selected files and folders using the Start Protection button. Then, make the files and folder visible again by clicking the Stop Protection button.

Download: Easy File Locker for Windows (Free)

Wise Folder Hider

More Operation Options to Protect File in Wise Folder Hider Software

Wise Folder Hider is a great freemium tool that makes it easy to password-protect and hide your files and folders. It has a clean and intuitive UI, and you'll only need to learn a few buttons to control your folders and secure your data.

To hide your files and folders, it's as simple as opening Wise Folder Hider, browsing to the file or folder you want to hide and protect, and selecting it.

Download: Wise Folder Hider for Windows (Free, in-app purchases available)

Windows 10 File Hiding Methods That Didn't Work

In addition to the methods covered above, we tried the two methods below—and failed to get them to work. For the sake of completeness, you can check them out below.

Hide Windows 10 Files/Folders in a JPEG Image

We tested the method of hiding files in a JPEG image using the command line and found success when adding a RAR file to a JPEG image using the following command:

        copy /b C:\Path\To\File\OriginalImage.jpg + FilesToHide.rar C:\Path\To\File\NewImageWithHiddenFiles.jpg
    

However, we could not extract the files once they were added to the JPEG image file, even using a variety of file extraction programs, such as 7-Zip, WinRAR, and PeaZip, and changing the file extension of the output file.

Hide Folders in Windows 10 by Redirecting to the Control Panel

There is another method you can try that attempts to hide a folder by redirecting it to the Control Panel. You create two batch files, one that locks the folder and one that unlocks it. When the folder is locked, opening it takes you to the Control Panel.

However, I tested this on Windows 7, 8, and 10 and could not get it to work. The lock batch file successfully renamed the folder. But I could open it and view the contents anyway.

If you want to test it yourself, create a folder called Users or Fonts (or something else related to the Control Panel) and put the files you want to hide into it. Then, create a new text file and copy and paste the following line into it.

Replace Users with the name of your folder. Save this file as lock.bat.

        ren Users Users.{21EC2020-3AEA-1069-A2DD-08002B30309D}
    

Then, create another new text file and copy and paste the following line into it. Again, replace Users with the name of your folder. Save this file as key.bat.

        ren Users.{21EC2020-3AEA-1069-A2DD-08002B30309D} Users
    

Both batch files should be in the same folder you're hiding (not in the folder). Double-click the lock.bat file to redirect the folder to the Control Panel, hiding the contents of the folder. To unlock the folder, double-click the key.bat file. You should not leave the key.bat file with the folder you're hiding. Only copy it there to unlock the folder. Then, remove it.

Please let us know if this works for you in the comments below.

You Can Hide Any File or Folder In Windows 10

Hiding files and folderwithoutno password protection should not lull you into a false sense of security. You should not use these methods (except the third-party tools with password protection) to protect very private and sensitive files and folders.

These methods are ways to make your information not obvious to anyone looking over your shoulder or briefly using your computer while you watch.