Hidden folders in macOS let you tuck away files so they don’t clutter your Finder views or get accidentally moved or deleted. You can hide any folder by adding a single dot to its name, and you can reveal those folders anytime with a keyboard shortcut or a Terminal command. This guide shows you how to create, view, and use hidden folders on current versions of macOS (Ventura, Sonoma, and later).
What You’ll Need
- A Mac running macOS Ventura (13) or later — the steps are the same on older versions, but menu names may differ slightly.
- Administrator access to your Mac (you’ll use Terminal and may need to enter your password).
- No extra software — everything is built into macOS.
Step-by-Step
Part 1: Create a Hidden Folder
- Open Finder and navigate to the location where you want the hidden folder (for example, your Home folder or Desktop).
- Press Shift + Command + N to create a new folder. Name it with a dot at the beginning, like
.MySecretFolder. The dot is what tells macOS to hide it. - Press Return to save the name. The folder will disappear from Finder immediately — that’s normal.
- Move files into it by dragging them to the folder’s location in Terminal or by using the “Go to Folder� trick below.
Part 2: See Hidden Folders in Finder
- Open Finder and press Shift + Command + . (period). This toggles hidden files and folders on and off. You’ll see all dot‑folders appear in gray.
- To hide them again, press the same shortcut again.
- If the shortcut doesn’t work, make sure Finder is the active app (click on the desktop first).
Part 3: Go Directly to a Hidden Folder
- In Finder, press Shift + Command + G to open the “Go to Folder� dialog.
- Type the full path, including the dot, e.g.,
/Users/yourusername/.MySecretFolder. - Press Return. Finder will open that folder even though it’s hidden.
Part 4: Create a Hidden Folder Using Terminal
- Open Terminal (found in Applications → Utilities).
- Type
mkdir ~/.MySecretFolderand press Return. This creates a hidden folder in your home directory. - To move files into it, use
mv ~/Desktop/photo.jpg ~/.MySecretFolder/. - To see all hidden items in a directory, type
ls -laand press Return.
Part 5: Unhide a Folder
- Rename the folder to remove the dot at the beginning. You can do this in Terminal with
mv ~/.MySecretFolder ~/MySecretFolder. - Or, if you can see hidden files (Shift + Command + .), right‑click the folder and choose “Rename� to remove the dot.
Common Mistakes
- Naming a folder with a space before the dot — the dot must be the very first character.
My Folderis not hidden;.My Folderis. - Forgetting that hidden folders are still searchable — Spotlight can find files inside them. If you need privacy, consider using FileVault or an encrypted disk image instead.
- Using the shortcut in the wrong app — Shift + Command + . works only in Finder, not in Open/Save dialogs (though those have their own shortcut: press Command + Shift + . in most dialogs).
- Deleting a hidden folder without realizing it — because it’s invisible, you might forget it exists. Use Terminal’s
ls -lato check before cleaning up.
Tips
- Use hidden folders for configuration files, scripts, or personal notes that you don’t want cluttering your main folders.
- To make a hidden folder easily accessible, create an alias (right‑click → Make Alias) and place the alias on your Desktop. The alias works even when the original is hidden.
- If you need to hide a folder from other users on the same Mac, put it inside your Home folder and set the folder’s permissions to “No Access� for others (Get Info → Sharing & Permissions).
- For a more secure “hidden� folder, use Disk Utility to create an encrypted disk image. It appears as a single file and requires a password to open.
Troubleshooting
- Shift + Command + . doesn’t show hidden files — Make sure Finder is active. If it still doesn’t work, restart Finder: click the Apple menu → Force Quit → select Finder → Relaunch.
- I can’t create a folder with a dot at the beginning in Finder — Finder may complain about the name. Use Terminal instead:
mkdir ~/.foldername. - I moved a file into a hidden folder but can’t find it — Use the “Go to Folder� shortcut (Shift + Command + G) and type the full path. Or press Shift + Command + . to reveal hidden items.
- Hidden folders are visible after restart — The shortcut toggle is temporary. If you want hidden files always visible, run this in Terminal:
defaults write com.apple.finder AppleShowAllFiles true; killall Finder. To revert, changetruetofalse. - Terminal says “No such file or directory� — Double‑check the path. Use
pwdto see your current directory, andls -lato list hidden items.
Frequently Asked Questions
Can hidden folders be password protected?
No, a dot‑folder is only hidden, not encrypted. Anyone who knows the path or toggles hidden files can view it. For password protection, create an encrypted disk image via Disk Utility.
Will hidden folders appear in Time Machine backups?
Yes, Time Machine backs up hidden folders just like any other file. If you want to exclude them, add them to Time Machine’s exclusion list in System Settings → General → Time Machine → Options.
Can I hide a folder that already has files in it?
Yes. Rename the folder to start with a dot (using Terminal: mv ~/oldname ~/.newname). All contents stay intact.
Why does my hidden folder show up in Spotlight search?
Spotlight indexes all files unless you exclude them. To prevent a folder from appearing in Spotlight, add it to the Privacy tab in System Settings → Spotlight → Search Privacy.
Is there a way to hide a folder without changing its name?
You can use the chflags hidden command in Terminal: chflags hidden ~/MyFolder. This hides the folder without a dot. To unhide, use chflags nohidden. Note that this flag may not be respected by all apps.
Can I hide files on an external drive?
Yes, the same dot‑name method works on any drive formatted as APFS or Mac OS Extended. On FAT32 or exFAT drives, the dot may still hide the folder in Finder, but it won’t be hidden on other operating systems.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- Google Desktop Search Widget on Windows 11
- How to Build a Computer Stand (Saturday Workshop)
- Customize Touch Keyboard Themes in Windows 11
- Excel Pivot Table: Change Multiple Field Settings
- WhatsApp: How to Block Unknown Numbers
- How to Exit Vi in Linux: A Simple Guide