Skip to content
Vaultdit
Download

Guide

How to hide files and folders on Mac

macOS can hide a file or folder from Finder with one Terminal command. It’s a good way to tidy things up, but it isn’t privacy: anyone can show hidden files with a keyboard shortcut. Here’s how hiding works, and what to do when you need more.

Hide a file or folder

  • Open Terminal (in Applications › Utilities).
  • Type chflags hidden with a space at the end, drag the file or folder into the Terminal window, and press Return.

The item disappears from Finder. To make it visible again, run the same command with nohidden:

chflags nohidden ~/Documents/Private

Show hidden files

In any Finder window or Open dialog, press Command–Shift–Period (⌘⇧.). Hidden files and folders appear, slightly dimmed. Press it again to hide them.

That shortcut is the catch: it works for anyone using your Mac. Hidden files also still show up in Terminal and can turn up in search, and the files themselves are completely readable. Hiding stops a glance, not a look.

When you need files to be private

Encrypt them. An encrypted disk image keeps files unreadable without a password, however someone finds the image. When it’s locked, not even the file names are visible.

Vaultdit keeps your private files in encrypted vaults. Each vault is a standard macOS encrypted disk image (AES-256) that unlocks with your password or Touch ID and locks itself when you step away. Even while it’s unlocked, the vault is mounted hidden from Finder and marked to be skipped by Spotlight.

Prefer a free, built-in method? See how to password-protect a folder on Mac with Disk Utility.

Hiding vs. encrypting

Can someone…If the file is only hidden
See it in Finder?Yes, after pressing ⌘⇧.
Read it while using your Mac?Yes
Read it if your Mac or drive is stolen?Yes, unless that disk is encrypted and the Mac is off
Open it without a password?Yes

With an encrypted vault, the answer to every one of those is no while it’s locked.

Try Vaultdit free for 14 days

Move private files into a vault that locks itself. No account and no card. US$9.90 once for all your Macs.

Download for Mac

macOS 26 Tahoe or later · Apple silicon and Intel