GiliSoft File Lock Pro

Hide files and folders completely - invisible in File Explorer, Windows search, and even Safe Mode, with a password to bring them back.

  • Hide files, folders, and whole drives in one click
  • Invisible in Explorer, search, and Safe Mode
  • Lock, protect, and encrypt in the same tool
GiliSoft File Lock Pro hiding files and folders
File & Folder Hiding Guide

How to Hide Files and Folders on Windows and Mac

No matter what type of content you have on your computer, you may need to hide specific files and folders for certain reasons - protecting system files from accidental deletion, or keeping personal files out of sight on a shared PC. Here is every practical way to do it on Windows 10/11 and Mac, compared honestly.

1-click hide toolFile Explorerattrib commandMac shortcutsFileVault
Quick answer

For casual hiding on Windows, right-click the item, open Properties, and check Hidden - it vanishes until anyone ticks "Show hidden items". For real invisibility in Explorer, search, and Safe Mode, hide the files with GiliSoft File Lock Pro, where only your master password can reveal them again.

Why Hide Files or Folders

You may have some protected operating system files on your computer that need to be hidden to prevent accidental deletion, which could cause boot problems. Or perhaps you have some personal and private files or folders that are not convenient to expose to others and need to be hidden.

Whatever the reason, on Windows 10 or the new Windows 11, you can quickly hide files or folders in different ways, including using a 1-click file hide tool, File Explorer, or the attrib command lines in CMD. We will also walk you through simple steps to hide files and folders on Mac.

Compare the Ways to Hide Files and Folders

MethodHidden from browsing?Hidden from search?Survives "Show hidden items"?Best fit
File Lock Pro Hiding File Most privateYes, even Safe ModeYes, completelyYes - password requiredGenuinely private files
File Explorer hidden attributeYes, by defaultYes, by defaultNo - one checkbox reveals allCasual, everyday hiding
attrib +s +h commandYes, deeper levelYesPartly - needs two settings offPower users, stubborn files
Mac Cmd+Shift+Period / dot renameYes, in FinderPartiallySame shortcut reveals allCasual hiding on Mac
Mac FileVaultWhole disk encryptedN/AYes - login requiredProtecting the entire Mac
1

Hide Files or Folders Using a 1-Click File Hide Tool

The graphical, foolproof way - files become completely invisible to anyone or any program, even in Windows Safe Mode.

GiliSoft File Lock Pro is a user-friendly file lock tool with a graphical user interface. This software can hide your files or folders from a local disk or an external (USB) disk on Windows 10/11, making the files completely invisible. What's more, this tool can make your private data unsearchable - hidden files will not be displayed in the search results.

Run GiliSoft File Lock Pro, set your master password and recovery email, then select Hiding File under the Local Disk module.

Click Hide Files/Folders or Hide Drive to select the file, folder, or drive you want to hide. They will be added to the list, and you can add as many as you want.

Confirm the list and apply. The hiding process starts immediately - browse the parent folder and search the file name to verify they are gone.

To use the files again, open File Lock Pro, enter the password, and unhide them from the same list.

Hide files or folders on the internal disk with GiliSoft File Lock Pro
Local Disk > Hiding File: add files, folders, or whole drives to the hide list in one click.
Bonus: the same tool can lock files and folders with a password. After password-protecting a folder or file, it cannot be modified, deleted (even Shift+Delete), or renamed without the password - hidden or not.
2

Hide a File in Windows 10/11 Using File Explorer

The built-in way - free, instant, and fine for everyday clutter, but trivially easy for anyone to reverse.

Press Win+E to open File Explorer.

Find the file or folder you want to hide. Right-click it and choose Properties.

On the General tab, under Attributes, check Hidden.

Click Apply and OK. If you are hiding a folder with files and subfolders, choose Apply changes to this folder, subfolders, and files.

Hide files in File Explorer with the hidden attribute
Check Hidden in Properties to make the item invisible by default.
Show hidden items in File Explorer
View > Show > Hidden items brings everything back - one checkbox for anyone.

To view hidden files again

Per Microsoft's documentation: on Windows 11, open File Explorer and select View > Show > Hidden items. On Windows 10, select View > Options > Change folder and search options, then on the View tab choose Show hidden files, folders, and drives and OK.

3

Hide Files or Folders Using the Attrib Command

The command-line way - adding the system attribute on top of hidden makes files survive even the "Show hidden items" setting.

Type cmd in the search bar, right-click Command Prompt from the results, and choose Run as administrator.

Type the following command and press Enter, replacing the path with your own:

attrib "C:\Users\Owner\Desktop\Private" +s +h
Hide files with the attrib command in CMD
+s marks the item as a system file and +h sets the hidden attribute - together they hide files from normal directory listings even when hidden items are shown.

The +s attribute indicates the file is for use by the operating system and is not normally shown in the directory listing. The +h attribute means the file does not show up in the directory list by default.

To recover hidden files using the attrib command

attrib -h -r -s /s /d "C:\Private"

Replace the path with the folder where you hid files. The -h, -r, and -s flags remove the hidden, read-only, and system attributes from the folder and everything inside it.

Handle with care: never run attrib with wildcards on a whole drive (for example C:\*.*) - you will strip attributes from thousands of files, including system files Windows needs to boot.

How to Hide Files or Folders on Mac

Two ways to hide files or folders on Mac are displayed in the following.

1. Use Keyboard Shortcuts to Hide a File on Mac

Go to Finder and open the file or folder you want to hide.

Press Cmd+Shift+Period (".") to show hidden files, and press the same keys again to hide them. To mark your own file as hidden, rename it with a leading dot, such as .private-notes.txt.

Hide files on Mac with keyboard shortcuts
Cmd+Shift+Period toggles hidden files in Finder - quick, but anyone who knows the shortcut sees everything.

2. Enable FileVault to Protect the Whole Mac

FileVault encrypts the entire startup disk, so nothing on it can be read without your login password. Here is how to use it:

Go to the Apple Menu.

Click System Settings (or System Preferences), then choose Privacy & Security.

Click the FileVault tab, click the padlock to log in with your credentials, and then turn on FileVault.

Choose a recovery method - iCloud account or a generated local recovery key - and click Continue to finish.

Security and privacy settings on Mac
FileVault protects the whole disk at rest; it complements, but does not replace, hiding individual files.

Hiding Tricks That Do Not Really Work

Deep folder nesting

Burying a file ten folders deep only slows down browsing. Search and indexing still find it instantly.

Renaming with a dot on Windows

A leading dot hides files on Mac and Linux, but on Windows it means nothing - the file stays fully visible.

Changing the file extension

Renaming photo.jpg to system.dll fools no one who opens it, and Windows still indexes the content by type.

Hiding without locking

A hidden folder can still be opened by anyone who finds it. For sensitive content, hide and password-protect together.

File-Hiding Checklist

Verify the hide worked

Browse the parent folder and search the file name after hiding. Both should return nothing before you trust the method.

Never hide what you cannot find again

With attrib +s +h or a hide tool, note the exact path and keep the recovery command or master password safe.

Hide and lock for real privacy

Hiding controls visibility; locking controls access. Use both on files that would hurt you if opened.

Keep a backup anyway

A hidden file can still be lost to drive failure or an over-aggressive attrib command. A separate backup is the last line of defense.

Frequently Asked Questions

How do I hide a file or folder in Windows 10/11?

Right-click it, choose Properties, and check Hidden on the General tab, then Apply. The item disappears as long as File Explorer is set to "Don't show hidden files, folders, or drives".

How do I view hidden files again?

On Windows 11, open File Explorer and select View > Show > Hidden items. On Windows 10, select View > Options > Change folder and search options, then on the View tab choose "Show hidden files, folders, and drives".

What does the attrib +s +h command do?

The +h flag sets the hidden attribute and +s marks the item as a system file, so it stays invisible even when "Show hidden items" is enabled - unless "Hide protected operating system files" is also turned off.

Can hidden files still be found with Windows Search?

With default settings, hidden files do not appear in search results. But anyone who enables "Show hidden items" will see and be able to search them again. More on hiding from Windows Search.

Is hiding a folder the same as locking it?

No. Hiding only controls visibility - anyone who finds the folder can still open it. File Lock Pro can hide and password-protect at the same time.

How do I hide files on a Mac without extra software?

Press Cmd+Shift+Period in Finder to toggle hidden files, or rename the item with a leading dot to mark it as hidden on macOS.

Sources and Further Reading

Hidden-items settings paths follow Microsoft's File Explorer documentation above. Product steps refer to GiliSoft File Lock Pro 13.5 on Windows 11/10/8/7.

Hide Files in One Click - Reveal Them Only with Your Password

Use GiliSoft File Lock Pro to make files and folders completely invisible in Explorer, search, and Safe Mode on Windows 11/10/8/7.