Hide Your Mac Files With 6 Simple Methods

Protecting important files with a password sounds like a great idea, but what if you could hide those files so no one knew they were there? We’ll show you how.
We receive compensation from the products and services mentioned in this story, but the opinions are the author's own. Compensation may impact where offers appear. We have not included all available products or offers. Learn more about how we make money and our editorial policies.

Whether you have nosy roommates or want extra privacy in a coworking space, there are ways to hide files on your Mac. These six methods include using the shortcut command, using a period, FileVault, Terminal, Library, and third-party apps.

You'll also need to secure your device to ensure those hidden files stay secure from hackers and other online criminals. It's worth taking seriously. According to our antivirus survey, only 34% of Mac users have antivirus software installed — leaving the majority without a critical layer of protection. 

We've broken down all your options here and provided recommendations for antivirus software to keep your system secure.

4.7
2026 Editors’ Choice
Best Antivirus for Safe Browsing
Antivirus Software
TotalAV
  • Real-time protection from viruses, malware, and malicious websites
  • Includes the #1 ad blocker and monitors for data breaches
  • Comes with a full suite of performance optimization tools to keep your device fast
Learn More

In this article
How to hide files on your Mac
Why should I hide files on my Mac?
Best antivirus software for protecting files
How to show hidden files
Bottom line
FAQs

How to hide files on your Mac

There are several ways to hide files on your Mac, ranging from a simple keyboard shortcut to more advanced options like Terminal commands and third-party apps. Here's a breakdown of each method so you can choose what works best for your situation.

1. Shortcut command

Keyboard shortcuts on a Mac are a piece of cake. To hide a file, you need only a short combination:

  1. Click the file's icon
  2. Simultaneously press Shift + Command + . (period)

To unhide the file, repeat the same process. Just know that anyone who knows how to do this can find your files. It's not the most secure method, but at least it's something.

2. FileVault

FileVault is a Mac feature that's more secure than the simple keyboard command. Since other Mac users can use the keyboard shortcut to find your hidden files, this is a better option if you need a password-protected file-hiding option.

  1. Go to System Settings in the Apple menu and select Privacy & Security.
  2. Select the FileVault tab, then click the lock icon to allow changes.
  3. Click Turn On FileVault.
  4. Choose the recovery method and click Continue.
  5. Click Continue to execute the setup process.
  6. Choose either iCloud recovery or passcode recovery.

It's very important to remember your password or recovery key for FileVault. If you forget your password or lose your recovery key, your files will be lost for good.

3. Terminal

Terminal is another native option that allows you to hide files and folders. To use Terminal, you just need to follow a few simple steps:

  1. Open Terminal by clicking Finder > Applications > Utilities > Terminal.
  2. Type the script "chflags hidden."
  3. Drop the file/folder into the Terminal window.
  4. Click Enter.

Terminal can be confusing if you aren't familiar with typing in lines of code. Use this only if you're comfortable with the commands.

4. Library

Library is Mac's default hidden folder. You can also use it to mask your own files by executing the following commands:

  1. In the Finder menu, click Go.
  2. Click Go to Folder.
  3. Type ~/Library and hit Enter.
  4. Create a new secret folder and drop it into the Library folder.

5. Rename with a period

If you want to bury a file in the annals of your Mac's storage, you can do so by starting the filename with a period so it doesn't appear in Finder. Be careful, however, because other people who know this trick may be able to figure it out. This strategy can be combined with other methods to make files even more difficult to locate.

6. Third-party apps

There are a variety of third-party apps that help you hide files on your Mac.

Some, like Funter, are free, while others, like Forklift and Parallels Toolbox, can be trialed for free but require purchase to continue.

Learn how to password-protect your files in our guide.

Why should I hide files on my Mac?

There are plenty of reasons you might want to hide files on your Mac. If you live with a roommate who loves to snoop, use a coworking space, have kids who may access the family Mac, or even share a computer with a parent, you may want to mask your files.

If you want to install security software and make it more difficult for a hacker to access or uninstall, hiding the file paths adds an extra layer of security. Your Mac also runs via key functions that you may want to protect from accidental deletion.

In addition to Apple's proprietary features, you can also use:

  • Password managers with file storage
  • Cloud vaults
  • Antivirus for additional security
  • Removable hard drives
  • Flash drives and other removable storage

If you want to save space, consider compressing large files for optimized storage. We explain how to compress and extract files on any operating system.

Best antivirus software for protecting files

If you're going to go to all the trouble of hiding your files, make sure you have antivirus software to protect your overall system. Macs have a reputation as being less susceptible to viruses, Trojans, and ransomware than PCs, but the data tells a different story. According to our independent research, 44% of Mac users say they've gotten a virus even with antivirus software installed — the highest rate among operating systems.

It goes to show that not all antivirus software is created equal, which is why we test software before making recommendations. Our top antivirus picks for macOS include TotalAV, MacKeeper, and Avast. We recommend TotalAV because it bundles a secure password manager and an affordable cloud storage solution for ultimate privacy.

4.7
2026 Editors’ Choice
Best Antivirus for Safe Browsing
Antivirus Software
TotalAV
  • Real-time protection from viruses, malware, and malicious websites
  • Includes the #1 ad blocker and monitors for data breaches
  • Comes with a full suite of performance optimization tools to keep your device fast
Learn More

4.6
2026 Editors’ Choice
Best Mac Antivirus
Antivirus Software
MacKeeper
  • Clean and easy-to-use antivirus built for macOS
  • Easy, fast, knowledgeable customer support
  • Comes equipped with helpful extras, like junk cleanup and a VPN
Learn More

5.0
2026 Editors’ Choice
Best Antivirus for Beginners
Antivirus Software
Avast
  • Consistently perfect third-party test results, verifying comprehensive antivirus, ransomware, and malware protection
  • Includes advanced security features like a VPN, firewall, data breach alerts, privacy tools, device optimization, and more
  • Maintains a full suite of features for Mac users, unlike many other antivirus options
Learn More

How to show hidden files

Once you've hidden your files, you'll need to be able to access them again. Here's how to access each method we suggested above to show your hidden Mac files.

  1. If you use the keyboard shortcut, just enter it again to reveal the hidden file.
  2. For FileVault users, enter your iCloud password or your recovery key.
  3. In Terminal, open the "chflags hidden" folder and access files.
  4. You can access the Library folder the same way you did to hide the files, so you can access the hidden folder you created.
  5. If you renamed the file with a period, type the exact file name in Finder with the period at the start.
  6. If you used a third-party app, review its documentation for instructions on hiding and retrieving files.

Bottom line

The shortcut command is a quick fix that may be great if you need to step away from your computer for a moment. FileVault is a built-in security feature for additional protection. Terminal lets you access your Mac from a different perspective, which is especially great if you're comfortable with code. Library access buries your files in your Mac's system, and third-party apps offer additional security from the outside.

We recommend checking out top antivirus solutions that include a secure password manager for ultimate privacy and security.

Antivirus
TotalAV

Aura Antivirus

Norton 360

Surfshark Antivirus
Best for Best web protection Best online identity protection Best overall antivirus software Best value
Starting price $19.00/first yr $35.99/first yr $29.99/first yr $2.08/mo
Features Zero-day scans, anti-phishing, ransomware protection, password manager, ad blocker, TotalVPN Antivirus protection, VPN, password manager, security for multiple devices Antivirus, malware, ransomware, and hacking protection, cloud backup, password manager, Norton Secure VPN Antivirus protection, Surfshark VPN, private search engine, data leak alerts, ad blocker
Learn more Get TotalAV Get Aura Get Norton360 Antivirus Get Surfshark Antivirus

FAQs

How do I make hidden files visible?

Depending on your method, you’ll either need to reenter a command, enter your password, or reaccess the hidden section of your Mac to access the file. It’s important that you completely understand what you’re doing when you hide the file so you can open it again later. Hiding files is different from password-protecting files or PDFs, so make sure you know the difference before you enable changes.

How do I hide desktop icons?

To hide the desktop icons on your Mac, follow these steps:

  1. Click Finder to open the dropdown menu.
  2. Choose Preferences.
  3. Click the General tab.
  4. Under the "Show these items on desktop" section, you'll see all the files on your desktop.
  5. Uncheck all boxes, and all the desktop folders will instantly disappear.

Can I hide photos on my iPhone?

Yes, your iPhone has a hidden folder where you can store photos and videos. To hide these media types, follow these steps:

  1. Locate the photo or video you want to hide.
  2. Tap the three dots located in the circle in the upper-right corner of the photo.
  3. Click Hide.

Now, these media items will appear only in the hidden folder on your iPhone. Afterward, clear your iPhone’s cache just for good measure.

Protect Every Aspect of Your Digital Life — Even Your Time
4.7
Editorial Rating
See Price
On TotalAV's website
2026 Editors’ Choice
Best Antivirus for Safe Browsing
Antivirus Software
TotalAV
  • Real-time protection from viruses, malware, and malicious websites
  • Includes the #1 ad blocker and monitors for data breaches
  • Comes with a full suite of performance optimization tools to keep your device fast

Author Details
Mary is a seasoned cybersecurity writer with over seven years of experience. With a B.S. in Liberal Arts from Clarion University and an M.F.A. in Creative Writing from Point Park University, she educates audiences on scams, antivirus software, and more. Her passion lies in educating audiences on helpful ways to protect their data.
Kate is a Senior Editor at All About Cookies. She has a decade of digital publishing experience and a background in EdTech. As a digital security expert, she leverages her passion for helping people to create authentic, well-researched content on a wide-range of digital privacy and security topics.