Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Hide Files and Folders in Windows: 7 Ways

· 5 min read · Home Tech

In this article
  1. Why Hide Files and Folders?
  2. Method 1: File Explorer's Hidden Items Toggle
  3. Method 2: The attrib Command (Command Prompt)
  4. Method 3: Folder Options (Control Panel)
  5. How to Unhide Files and Folders
  6. Common Problems and Misconceptions
  7. Alternatives: Encryption and Third-Party Tools
  8. Frequently Asked Questions

To hide files and folders in Windows, use File Explorer's built-in "Hidden items" toggle, the Properties dialog, or the attrib command—each method is reversible and keeps your data on the same drive. This guide covers all native Windows hiding techniques, including how to make hidden items truly invisible, how to unhide them, and when you should use encryption instead of simple hiding.

Why Hide Files and Folders?

People hide files for a variety of reasons: to reduce visual clutter, to protect sensitive documents from casual glances, to keep system files from being accidentally modified, or to organize a shared computer. Windows has offered hidden-file functionality since the early days of the operating system, and the core mechanism has remained consistent even as the user interface evolved.

It's important to understand what hiding does not do. Hidden files are not encrypted, not password-protected, and not deleted. Anyone who knows how to reveal hidden items—or who has basic command-line knowledge—can view them. Hiding is a convenience and a light deterrent, not a security measure.

Method 1: File Explorer's Hidden Items Toggle

The quickest way to hide a file or folder is through its Properties dialog:

  1. Right-click the file or folder and select Properties.
  2. On the General tab, check the Hidden box at the bottom.
  3. Click OK. If you're hiding a folder, Windows will ask whether to apply the change to just the folder or to the folder and all subfolders/files. Choose the option that fits your needs.

To view hidden items, open File Explorer (Win + E), go to the View tab, and check the Hidden items box in the Show/hide group. Hidden files and folders will appear with a slightly faded icon. To hide them again, uncheck the box.

Method 2: The attrib Command (Command Prompt)

For those comfortable with the command line, the attrib command provides a fast, scriptable way to hide files:

  1. Open Command Prompt (Win + R, type cmd, press Enter).
  2. Navigate to the folder containing the file using cd (e.g., cd C:\Users\YourName\Documents).
  3. Type attrib +h "filename.ext" and press Enter. For a folder, use attrib +h "foldername".

To unhide, replace +h with -h. The command works on both files and folders, and you can use wildcards (e.g., attrib +h *.jpg) to hide multiple items at once.

Method 3: Folder Options (Control Panel)

If you want to hide all hidden files system-wide, you can disable their display entirely:

  1. Open Control Panel and go to File Explorer Options (or Folder Options in older Windows versions).
  2. Switch to the View tab.
  3. Under Advanced settings, select Don't show hidden files, folders, or drives.
  4. Click OK.

This setting overrides the per-folder toggle. Even if you have the Hidden items box checked in File Explorer, this option will force hidden items to stay invisible. To reverse, select Show hidden files, folders, and drives.

How to Unhide Files and Folders

Unhiding is just as easy as hiding. If you used the Properties method, right-click the hidden item, uncheck Hidden, and click OK. If you used attrib, run attrib -h "filename". If you can't see the item at all, make sure the Hidden items toggle is on, or that Folder Options is set to show hidden files.

Sometimes a file may appear hidden even after you unhide it. This can happen if the file has both the Hidden and System attributes set (common for certain system files). To remove both, use attrib -h -s "filename" in Command Prompt.

Common Problems and Misconceptions

  • Hidden files still show up in search: Windows Search indexes hidden files by default. To exclude them, you need to modify indexing options or move the files to a folder that isn't indexed.
  • Hiding doesn't protect against malware or other users: Any user with administrative rights can unhide files. For real protection, use encryption (see below).
  • Some files are hidden by default: System files (like desktop.ini and pagefile.sys) are hidden to prevent accidental deletion. Don't unhide them unless you know what you're doing.
  • Hidden files can still be copied or moved: Hiding only affects visibility in File Explorer; the files remain accessible to any program that knows their path.

Alternatives: Encryption and Third-Party Tools

If you need actual security, hiding is not enough. Windows offers built-in encryption via the Encrypting File System (EFS), available on Pro, Enterprise, and Education editions. To encrypt a file or folder, right-click it, select Properties > Advanced, and check Encrypt contents to secure data. This ties the file to your Windows user account; other accounts won't be able to open it.

For password-protected archives, you can create a ZIP file with 7-Zip or WinRAR and set a password. This is portable and works across devices, but the archive itself is visible unless you also hide it.

Third-party tools like Folder Lock or VeraCrypt offer more advanced features, but they are not needed for most users. Windows' built-in methods are sufficient for casual privacy.

Frequently Asked Questions

Can I hide a file without it showing up in File Explorer at all?

Yes, if you set Folder Options to "Don't show hidden files," hidden items won't appear in File Explorer. However, they can still be accessed via the command line or by typing the full path in the address bar.

How do I hide a folder on Windows 11?

Windows 11 works the same way as Windows 10: right-click the folder, select Properties, check Hidden, and apply. The View tab in File Explorer has the Hidden items toggle.

Why can't I see hidden files even after checking "Hidden items"?

This usually happens if the file has the System attribute set, or if Folder Options is set to not show hidden files. Check both settings, and use attrib to see the attributes.

Is there a way to password-protect a hidden folder?

Not natively. Windows doesn't provide password protection for folders. Use EFS encryption or a third-party tool like VeraCrypt for password-based protection.

Does hiding files free up disk space?

No. Hiding only changes the visibility flag; the file remains on the disk and takes up the same amount of space.

Can hidden files be found by other users on the same PC?

Yes, if they know how to enable hidden items or use the command line. Hiding is not a security boundary.