How to hide files and folders in Windows 10 and 11

Windows 10 and 11 include a built-in option to hide any file or folder in File Explorer. For stronger privacy, Command Prompt can lock files out of search results entirely.

For the highest level of privacy, you can hide files inside a playable music track using a tool called DeepSound. This page covers that method too, plus how to unhide your files when you need them back.

ADVERTISEMENT
Method Security level Hidden from search? Best for
File Explorer properties Basic No Quickly hiding files from casual viewers
CMD / Terminal (attrib) Medium Yes Hiding folders even when "Show hidden items" is ON
DeepSound Steganography High (AES-256) Yes Hiding encrypted files inside a music file

Hide files and folders in Windows using File Explorer

File Explorer has a built-in "Hidden" checkbox. Check it and the file disappears from normal folder view.

  1. Open File Explorer.
  2. In File Explorer, go to the file or folder you want to hide.
  3. Right-click the item and select Properties.
  4. Under the General tab, check the box next to Hidden.
  5. Click Apply.
  6. If hiding a folder, select Apply changes to this folder, subfolders, and files and click OK.
  7. Click OK to close Properties.
How to hide a file or folder in Windows File Explorer
ADVERTISEMENT

Hide files deeply using Command Prompt (attrib)

Files hidden with the File Explorer checkbox reappear when someone turns on "Show hidden items." The attrib +s +h command adds a system flag that keeps the file hidden even with that setting on.

  1. Right-click the Start button (Windows logo) on the taskbar.
  2. Click Command Prompt (Windows 10) or Terminal (Windows 11).
  3. Type the following command:
    attrib +s +h "C:\Path\To\Your\Folder"
  4. Press the Enter key on your keyboard.
How to hide a file or folder in Windows using CMD

To make the file or folder visible again in the future, run the reverse command:

attrib -s -h "C:\Path\To\Your\Folder"
How to unhide a file or folder in Windows using CMD

View and unhide hidden files in Windows 10 and 11

On Windows 11:

  1. Open File Explorer.
  2. In File Explorer, click View in the top toolbar > hover over Show > click Hidden items.
  3. Right-click the hidden file, select Properties, uncheck Hidden, and click Apply.
View and unhide hidden files in Windows 11 File Explorer

On Windows 10:

  1. Open File Explorer.
  2. In File Explorer, click the View tab in the top ribbon menu.
  3. Check the box next to Hidden items.
  4. Right-click the translucent file, select Properties, uncheck Hidden, and click Apply.

Hide files inside a music track using DeepSound

DeepSound is a free tool that hides files inside a music file (like an MP3). It locks the hidden files with a password so only you can pull them back out.

  1. Open DeepSound.
  2. Click Open carrier files.
    DeepSound Open carrier files button
  3. In the file picker, choose the music file you want to use as the container.
  4. Click Open.
    Select an Audio file in DeepSound
  5. Click Add secret files.
    DeepSound Add secret files button
  6. In the file picker, select the files or folders you want to hide.
  7. Click Open.
    Select files in DeepSound

At Free space for secret files, you can see how much data (in MB) you can hide in the audio file.

DeepSound Free space for secret files bar
  1. Click Encode secret files.
    DeepSound Encode secret files button
  2. In the output window, pick an audio format from the Output format dropdown.
  3. At Output directory, change where DeepSound saves the new music file.
  4. To add a password, check Encrypt secret files (AES 256). To skip the password, leave it unchecked and go to the last step.
  5. Type your password twice.
    DeepSound Encode secret files window
  6. Click the Encode secret files button at the bottom of the window.

The new music file now contains your hidden files. Play it and it sounds the same.

To pull your files back out: click Open carrier files, choose the music file, click Open, type your password, click OK, then click Extract secret files.

ADVERTISEMENT

Related:

How to password protect a PDF offline (free, no Adobe)

How to Zip, RAR, and password protect files in Windows 11


Windows