How to Hide Files in Windows 10/11: Explorer, Search, Permissions, and NTFS Streams

The Practical Guide to Hiding Files on Windows 10/11 (and How to Unhide Them)



If you just want a file to disappear from casual view, Windows gives you a few handy levers, from a quick "Hidden" flag to deeper tricks like NTFS alternate data streams. In this first post of a 3‑part series, I’ll cover simple, reliable ways to hide a file from File Explorer, Search, or other local users, and how to reverse every change. We’ll also call out what each method does (and doesn’t) hide.


Before you start: how to see hidden things again

Show hidden files:

  • Windows 11: File Explorer > View > Show > Hidden items
  • Windows 10: File Explorer > View tab > check "Hidden items"

Show "protected OS files" (super-hidden):
File Explorer > Options > View tab > uncheck "Hide protected operating system files (Recommended)"

Tip: Remember to turn these off again if you don’t want hidden items visible afterward.




Way 01: Quick and simple (the Hidden attribute)

What it hides from: File Explorer when “Hidden items” is off. Most casual users won’t see it.

GUI: Right-click the file > Properties > check “Hidden” > OK

Command Prompt:

Hide: attrib +h "D:\hide\file.txt"
Unhide: attrib -h "D:\hide\file.txt"

PowerShell:

# Hide
$path = 'D:\hide\file.txt'
$item = Get-Item $path
$item.Attributes = $item.Attributes -bor [IO.FileAttributes]::Hidden

# Unhide $item = Get-Item 'D:\hide\file.txt'
$item.Attributes = $item.Attributes -band (-bnot [IO.FileAttributes]::Hidden)

Gotcha: Anyone who enables “Hidden items” in Explorer will see it. This is for obscurity, not protection.




Way 02 - Super-hidden (mark it as System + Hidden)

What it hides from: File Explorer even when “Hidden items” are shown, as long as “Hide protected operating system files” remains enabled (which is the default on most PCs).

Command Prompt:

Hide: attrib +s +h "D:\hide\file.txt"
Unhide: attrib -s -h "D:\hide\file.txt"

Reveal in Explorer: open Folder Options (File Explorer > Options) > View > uncheck “Hide protected operating system files (Recommended)”.

Notes:

  • This is more camouflaged than plain Hidden.
  • Don’t mark whole folders System unless you really mean it—backup/sync tools can behave differently with system files.



What it hides from: Start/Explorer search results that rely on the index.

Best method: exclude the containing folder—reliable and easy to reverse.

  1. Go to Control Panel > Indexing Options > Modify
  2. Click Modify
  3. Uncheck the folder you want excluded (or check only what you want included)
  4. Click OK and give the index a minute to update

Per-file attribute (less visible, less reliable):
Not content indexed (prevents indexing of file contents; the name may still be searchable)

Hide: attrib +i "D:\hide\file.txt"
Unhide: attrib -i "D:\hide\file.txt"

Tips:

  • Search can still find non-indexed items during on-demand scans, especially by file name. Excluding the entire folder is more consistent than toggling single files.
  • If Windows Search is set to Enhanced (index entire PC), double check your exclusions.



Way 04: Hide from other local users with permissions (ACLs)

What it hides from: Other standard users browsing your folders. They won’t be able to list or open your private location. Administrators can still take ownership.

Best practice: put the file in a private folder and restrict the folder’s permissions (folder ACLs control directory listing).

Create a private folder, move your file into it (example: D:\hide)

Lock down the folder via Command Prompt (run as Administrator if needed):

# Stops inheriting permissions from the parent 
icacls "D:\hide" /inheritance:r
# Removes broad groups (Users, Authenticated Users) 
icacls "D:\hide" /remove:g Users "Authenticated Users"
# Grants you full control, and ensures files and subfolders inherit it 
icacls "D:\hide" /grant:r "<YOUR_USERNAME>:(OI)(CI)F"

Don’t know your exact username? Run whoami in the console.

#To revert: Re-enable inheritance (and reapply parent permissions) 
icacls "D:\hide" /inheritance:e

Note: If you also need to restore group access explicitly, add them back with icacls /grant.




Way 05: Bonus (advanced) - hide data inside an NTFS Alternate Data Stream

What it hides from: File Explorer, most casual browsing, and many basic tools. Your data is stored “inside” another file and doesn’t show up as a separate file. Works on NTFS volumes.

Example (Command Prompt):

# Create a carrier file (any file will do)
echo placeholder>"D:\hide\carrier.txt"

# Write a secret stream echo my secret note>"D:\hide\carrier.txt:secret.txt" # Open it in Notepad notepad "D:\hide\carrier.txt:secret.txt" # Read it in the console
more < "D:\hide\carrier.txt:secret.txt"

PowerShell (Windows 10/11):

# List streams
Get-Item -Path 'D:\hide\carrier.txt' -Stream *

# Write / read / remove a stream Set-Content -Path 'D:\hide\carrier.txt' -Stream 'secret' -Value 'my secret note' Get-Content -Path 'D:\hide\carrier.txt' -Stream 'secret'
Remove-Item -Path 'D:\hide\carrier.txt' -Stream 'secret'

To delete all streams, delete the carrier file. Caution: Some tools (certain backup, AV, or sync apps) may strip or miss ADS data; test before relying on it.




Which method should you pick?

  • Quick “don’t look at this”: Hidden or Super-hidden
  • Keep it out of Start/Explorer search: exclude the folder in Indexing Options
  • Keep other local users out: move the file into a locked-down folder (ACLs)
  • Tuck data away inside another file: NTFS ADS (advanced, NTFS-only)

Important: hiding ≠ protecting

If confidentiality matters, use encryption:

  • EFS (Encrypting File System): right-click file/folder > Properties > Advanced > Encrypt contents to secure data. Great for single-user devices. Back up your EFS certificate!
  • BitLocker: full-drive encryption. Ideal for laptops and shared devices. Protects everything at rest.

Wrap up (and what’s next)

You’ve got a toolkit to make a file vanish from Explorer or search—and to bring it back just as easily. Keep notes of any attributes or ACLs you change so you can undo them later, and remember: these tricks are for convenience and privacy, not foolproof security. In the next post, we’ll scale up to entire folders - how to hide directories (and their contents), manage indexing globally, leverage permissions safely, and add a few UI camouflage tricks.