How do I hide folders on Mac search?

Who wants to see everything everywhere all the time? On a Mac, you don’t have to hide folders inside other folders, though. Find out here how to hide a folder on a Mac right in place (say, the desktop) instead, and how you can still open hidden folders.

First, It’s 1973, and Files Are Showing Up Everywhere

The file system for the Unix operating system had just learned a hierarchy, and two files were created to help navigation:

  • . lets you refer to the current directory and
  • .. to the one that is its parent.

As useful as they were, their showing up everywhere annoyed Unix’s creators—so they quickly hid all files starting with a dot.

That, for what it’s worth, is the story one of the collaborators then, Rob Pike, tells, and it is why you can still hide files and folders with dots on macOS—a distant descendant of Unix—today:

How to Hide a Folder on a Mac

Time needed: 3 minutes.

To hide an existing folder on your Mac (so it does not appear in macOS Finder):

  1. In Finder, click on the folder you want to hide with the right mouse button.
  2. Select New Terminal at Folder from the context menu that has appeared.
  3. Type cd .. (two dots) at the command prompt.

    Why: This command takes us to the encompassing folder, which will let us modify the current one.

  4. Press Enter.
  5. Now type mv . (a dot directly in front of the folder name), replacing with the name of the folder to be hidden in Finder.

    Example: To hide the folder called “Hidden”, type mv Hidden .Hidden.
    Less typing: Profit from folder name auto-completion.
    1. Type mv .
    2. Type the start of the folder’s name.
    3. Press Tab to auto-complete it.
    4. Repeat the previous two steps to quickly get to mv followed by the folder name twice.
    5. Press Esc B (this jumps to the beginning of the last word; if your folder name includes whitespace, repeat until you are at the beginning of the folder name).
    6. Add the . (dot).

  6. Hit Enter.
  7. Watch the folder disappear in Finder.

    Accessing hidden folders: You can still open hidden folders in Finder—though you cannot normally see them.
    Folder flag alternative: Renaming the folder to start with . will hide it both in Finder and in Terminal; you can also hide the folder only in Finder using an attribute; see below.

Hide a Folder from Mac Finder Using an Attribute

To make a folder disappear from Finder without renaming it:

  1. Open Terminal.
  2. Type chflags hidden .
  3. Drag and drop the folder you want to hide from Finder into the Terminal window.
    Example: After dropping the ~/Documents/Hidden folder, the command line will read chflags hidden ~/Documents/Hidden.
  4. Press Enter.
  5. Watch the folder disappear from Finder (but not from the ls command in Terminal, for instance).
    Open hidden folder: Here, too, you can still open the hidden folder in Finder if you type its full path.

How to Hide Folders on a Mac: FAQ

How do I unhide a folder?

To make a folder visible again:

  1. Reverse the process used to hide it.
    Example: Type and run mv .Hidden Hidden to unhide the Hidden folder.

To reveal a folder hidden with the attribute:

  1. Run chflags nohidden followed by the folder to unhide in Terminal.
    Example: Use chflags nohidden ~/Docments/Hidden to unhide the Hidden folder.

Can I hide a folder on the Mac Desktop?

Yes. The default path to your Mac Desktop is “~/Desktop”, and you can hide folders on it.

Can I hide a folder (or create a hidden folder) in Finder?

No.

Find will not let you rename a folder to a name that starts with a dot, and it will not create folder so named.

Are there any other ways to hide folders on a Mac?

Yes, you can employ a number of third-party tools to hide folders.

(How to hide a folder on a Mac tested with macOS Monterey 12.3, Big Sur 11.0 and Catalina 10.15; updated September 2022)

Home » Mac Tips and Resources » How to Hide a Folder on a Mac

Why you may want to hide your files

There are different reasons why you can decide to hide your files. Here are two key reasons;

  1. To prevent accidental deletion of system files: Protected system files are crucial to the booting and operation of your computer. Deleting such files intentionally or accidentally may result in boot-up or operation problems on your Mac. Hence, the need to hide them.
  2. To keep your files private: Like any other computer user, you are likely to save your confidential information on your desktop. Such practices can compromise the safety of your information. In worse situations, the intruder can mess with the information.

Regardless of the reason for hiding your files on your Mac, there are different ways of doing it, including the use of keyboard shortcuts and Parallel's Toolbox.

How to hide files on Mac

Using keyboard shortcuts

If you like playing with keyboard shortcuts and commands, here is a simple procedure to help you hide the files:

  1. Locate the files you want to hide. For easy access to these files, use the Finder feature on your Mac.
  2. Simultaneously, press Shift+CMD+Period (.) to hide the files. This procedure will not only hide your files, but it is also helpful when you want to access hidden files. Repeat the sequence of pressing the three keys to unhide hidden files.

This procedure only works on the latest version of macOS.

Activate FileVault on your Mac

FileVault is a feature on your Mac computer that restricts access to the hard drive unless you have the access password. The vault keeps your files away from prying eyes. Here are easy steps to follow:

Step 1: Locate the Apple icon on the far left corner of your computer screen and click it.

Step 2: Select the System Preference option on the drop-down menu and click on the "Security & Privacy" option.

Step 5: Select the FileVault tab, which is next to the general tab. To turn on FileVault, you must click the padlock icon and log in with your details.

Step 6: Choose your recovery method by either choosing the iCloud option or generating a local key. If you opt to generate a local key, note the key in a safe place.

Step 7: Click on the continue button, and the setup process will be complete.

How long your computer will take to hide the files depends on the number of files you are hiding.

Use third-party applications

Third-party applications like Parallels Toolbox will reliably help you hide critical files from other users of your Mac. Third-party apps have different procedures that you can use to hide files on Mac.

Parallels Toolbox has a variety of tools for you and other Mac users. For instance, you can hide your files and folders from your desktop by clicking on the Hide Desktop icon in the Parallels Toolbox. Using this tool offers the easiest way of hiding files on your Mac.

How to hide hidden files on Mac

You can hide hidden files and make them no longer visible by navigating anywhere in Mac Finder and hitting Command + Shift + Period. This will hide the invisible files. But you can also use Parallels tool to hide hidden files. In which case, you'll need to find the Hidden Files icon on the Parallels Toolbox and click it. You can click the tool again if you want to view hidden files on your Mac.

Bottom line

While the above ways of hiding files on a Mac computer are efficient, using Parallels Toolbox will give you an easy time to accomplish your goals. Download it today to secure your files and folders from unintended audiences.

How to hide files on Mac.
Locate the files you want to hide. For easy access to these files, use the Finder feature on your Mac..
Simultaneously, press Shift+CMD+Period (.) to hide the files. This procedure will not only hide your files, but it is also helpful when you want to access hidden files..

How do I hide folders from search results?

To hide one or more files or folders, select the files or folders, right-click on them, and select Properties. On the General tab on the Properties dialog box, check the Hidden box in the Attributes section. To prevent the files or folders from appearing in Windows search results, click Advanced.

How do I find Hidden folders on my Mac?

The first and easiest method is using Mac Finder to show hidden files: Open the folder where you want to search for hidden files. Press the “Command” + “Shift” + “.” (period) keys at the same time. The hidden files will show up as translucent in the folder.

How do I hide folders in Spotlight Mac?

Privacy options. Locations on your Mac excluded from Spotlight searches. To exclude a location from Spotlight searches, click the Add button , then select a folder or disk. You can also drag folders or disks into the list.