There are many ways you can hide files on Mac to prevent sensitive data from being seen by others who may have access to your computer. Alternatively, we can use MacKeeper’s Safe Cleanup to permanently delete sensitive system files that you no longer need so that others cannot find them.
Here’s one of the simplest ways to hide files on Mac:
Locate the file you want to hide in Finder.
Right-click the files, then choose Rename.
Add a period (.) to the beginning of the file name, then press Enter to save it.
Why you might want to hide files on Mac
We find that most users who are looking to make files invisible on Mac want to protect confidential documents, images, or other data from being seen by others. Another good reason to hide important files is to prevent them from being deleted accidentally.
A note from our experts:
Did you know that temporary system files created by macOS, such as logs and caches, can contain sensitive personal information? We’ve found the quickest and most effective way to remove them from your machine is with MacKeeper’s Safe Cleanup.
The easiest way to hide files on Mac is to add a period to their file name, like so:
Select the file you want to hide.
Press Enter to rename, then add a period to the beginning of its name.
Press Enter to save the change.
Step 1. Select the file, then press enter to rename itStep 2. Add a period, then press enter to save
Other ways we can make files invisible on MacBook are:
Using Terminal commands to make files invisible
Hide files on Mac with shortcuts
Make files invisible on Mac with FileVault
Setting up user accounts and permissions
Using third-party apps for file hiding
1. Using Terminal to make files invisible
When you don’t want to delete a file on Mac but you do want to make it invisible so that others can’t see it, you can use a simple Terminal command. Try this:
Open Terminal from the Applications > Utilities folder.
Type the chflags hidden command, then press space.
Drag the file or folder you want to hide into Terminal, then press Enter to hide it.
Step 1. Launch Terminal from the Utilities folderStep 2. Enter chflags hidden, then press spaceStep 3. Drag in a file, then press enter
Important advice from our team: Although this trick should hide your file immediately, we’ve noticed a Finder restart is sometimes required for the change to take effect. Our quick tip for restarting Finder is to hold down Option + Command, then click the Finder icon in the Dock.
2. Hide files on Mac with shortcuts
By default, Apple makes it so that hidden files are not visible in macOS, however, if you can still see them, our recommendation is to use this keyboard shortcut to toggle hidden files on and off:
Open Finder.
Press Shift + Command + period (.) on your keyboard.
Files and folders that you’ve previously made invisible should now disappear. By the way, you can use the same keyboard shortcut again to show the files again, which is handy if you want to know how to view hidden files on an SD card on Mac.
3. Make files invisible on Mac with FileVault
Every Mac comes with FileVault, a feature that encrypts all the data on your machine. FileVault can’t make files invisible to those who use the same account on your MacBook, but it’s incredibly effective at ensuring no one else can access your data without your login credentials.
Here’s how to enable it:
Open System Settings, select Privacy & Security, then click FileVault.
Select Turn On.
Enter your Mac’s password, then choose Unlock.
Choose whether you want to use your iCloud account to unlock the disk drive, then click Continue.
Step 1. In Privacy & Security, click FileVaultStep 2. Click Turn OnStep 3. Enter your password and click UnlockStep 4. Choose whether you want to use iCloud > click Continue
With FileVault enabled, all data on your Mac is encrypted. Even if someone else gets hold of your machine, they won’t be able to extract or recover any files or information from it without your username and password, so this is perfect if you want to password protect a folder on Mac.
4. Setting up user accounts and permissions
If you share a Mac with others, our recommendation is to make sure everyone has their own user account. This gives you a personal space where any files and folders you save are hidden from others.
Here’s how to set up user accounts and permissions:
In System Settings, select Users & Groups.
Click Add User then enter your Mac’s password to start creating an account for someone else.
Enter the necessary information for the new user, such as their name and account password, then click Create User.
Step 1. In Users & Groups, click Add UserStep 2. Enter the user's info, then click Create User
Now, when your MacBook starts or you log out, you’ll see the new user on the Lock Screen. Other accounts will not have access to the files you have saved to your user, but they might be able to access some of your software, so it’s a good idea to familiarize yourself with how to hide apps on Mac.
5. Using third-party apps for file hiding
If you’re struggling to manually make files invisible on Mac, our tip is to use third-party apps for file hiding instead. These take care of the hard work for you, so you don’t have to mess around with changing file names or using Terminal commands. Parallels is one great option for this, but others are available.
Before using third-party software, however, we advise you to check how the app hides your files, as not all work in the same way. While apps like Parallels hide files without moving them—in much the same way macOS hides them—others transfer the files into a separate “vault” that may be encrypted.
Conclusion
If you’re trying to protect your most important files and folders, or prevent others from seeing them on your Mac, there are many easy ways you can hide them. In addition to simply changing their file name, you can use Terminal commands, third-party apps and other tricks.
To remove system junk that can contain a wealth of personal information, use MacKeeper’s Safe Cleanup. It safely gets rid of old logs, caches, and Trash files that may include confidential data—and it can also delete things like unused language packs and Mail attachments to free up space.
We respect your privacy and
use cookies
for the best site experience.
Privacy Preferences Center
We use cookies along with other tools to give you the best possible experience while using the
MacKeeper website. Cookies are small text files that help the website load faster. The cookies we
use don’t contain any type of personal data meaning they never store information such as your
location, email address, or IP address.
Help us improve how you interact with our website by accepting the use of cookies. You can change
your privacy settings whenever you like.
Manage consent
All cookies
These cookies are strictly necessary for enabling basic website functionality (including page
navigation, form submission, language detection, post commenting), downloading and purchasing
software. The website might malfunction without these cookies.