Last Updated: May 2026  |  Editorial Review Board Approved
By the Editorial Team 15 min read

How to Lock a Folder on Mac: Complete Guide

Whether you want to hide tax documents, password protect a folder on a MacBook Air, or secure an external hard drive, macOS offers a mix of built-in tools and third-party solutions. Here is the independent guide to securing your data.

Quick Answer: Can you lock a folder on Mac?

Yes. To lock a folder using built-in tools, use Disk Utility to convert the folder into a password-protected `.dmg` disk image. For a true "lock in place" solution that doesn't require duplicating files into image archives, you will need a third-party app like Folder Lock 10 or similar file-vault utilities.

Why You Need Mac Folder Encryption

macOS is inherently secure, primarily relying on user account passwords to keep data separated. However, if you share your Mac desktop, hand your MacBook Pro to a colleague, or use an external hard drive, your account password isn't enough. Anyone who has access to your unlocked screen has access to your files.

In our experience, users generally look for three distinct outcomes when trying to secure folders:

  • Hiding: Making the folder invisible to casual observers.
  • Locking: Requiring a password to open the folder (without changing its format).
  • Encrypting: Scrambling the data with military-grade algorithms (like AES-256) so it cannot be read even if the drive is stolen.

We've tested the primary approaches available to Mac users today, and we've broken down the exact methods below.

Methods: How to Password Protect a Folder on Mac

Method 1: Using Disk Utility (Built-in)

Difficulty: Medium

Apple does not provide a native "right-click to lock" feature for folders. Instead, the official workaround is to use Disk Utility to convert your folder into an encrypted disk image (a `.dmg` file).

How to lock folder on Mac without Disk Utility?

If you don't want to use Disk Utility, you must either use the Terminal (to hide) or use third-party Mac folder encryption software. But if you want a free, secure method, Disk Utility is your best built-in choice.

Step-by-Step Instructions:

  1. Open Disk Utility (found in Applications > Utilities).
  2. In the top menu bar, click File > New Image > Image from Folder.
  3. Select the folder you want to protect and click Choose.
  4. Change the Encryption dropdown to 128-bit or 256-bit AES encryption.
  5. Enter and verify your new password.
  6. Set the Image Format to read/write (so you can add files later).
  7. Click Save.

What it's best for:

Free, highly secure, native archiving of sensitive files.

Limitations:

It creates a duplicate file. You must manually delete the original unsecured folder afterward. Opening it mounts it like a flash drive, which feels clunky for daily use.

Method 2: The Terminal "Hide" Command

Difficulty: High

If you want to know how to hide a folder on Mac rather than encrypting it, you can use a native Terminal command. This makes the folder invisible to standard Finder searches.

Step-by-Step Instructions:

  1. Open the Terminal app.
  2. Type chflags hidden (make sure to leave a space at the end).
  3. Drag your folder from Finder into the Terminal window (this pastes the file path).
  4. Press Return. The folder will vanish from Finder.
  5. To unhide it later, use chflags nohidden followed by the folder path.

What it's best for:

Keeping folders out of sight from casual shouldersurfers.

Limitations:

Zero actual security. Anyone who knows the shortcut (Cmd + Shift + Period) to show hidden files can instantly access it. No password is required.

Method 3: Third-Party Folder Lock Software

Difficulty: Easy

Because Apple's built-in methods are either clunky (Disk Utility) or insecure (Terminal), third-party developers have built dedicated apps. The best folder lock software for Mac allows you to simply right-click a folder to lock it in place, using AES 256-bit encryption on-the-fly.

We'll review specific tools below, but generally, these applications create a master-password-protected "locker" or integrate directly with Finder via kernel-level drivers to completely hide and lock data from unauthorized users.

What it's best for:

Daily convenience, seamless syncing, and true password protection without creating duplicate `.dmg` files.

Limitations:

Requires downloading external software; premium features usually require a paid license.

Methods Comparison Overview

Method Difficulty Security Level Cost Best For
Disk Utility Image Medium High (AES-256) Free Archiving old sensitive files securely.
Terminal (chflags) High None (Just hides) Free Keeping a messy desktop clean.
FileVault Low High (Disk-wide) Free Protecting the entire Mac if stolen.
Third-Party App
(e.g., Folder Lock 10)
Very Low High (AES-256) Free / Paid Daily access to secure files without hassle.
Editorial Verdict: If you rarely access the data, use Disk Utility. If you need to open and edit secure files daily, invest in a dedicated Mac folder lock app.

MacBook Specifics & System Comparisons

How to lock a folder on MacBook Air vs MacBook Pro

Whether you are wondering how to lock a folder on MacBook Pro or an Air, the underlying operating system (macOS) is identical. The methods outlined above apply equally to desktop iMacs and portable MacBooks. However, on MacBooks equipped with Touch ID, some third-party applications allow you to unlock your secure folders using your fingerprint, adding a significant layer of convenience over typing long master passwords.

How to lock external hard drive on Mac

Securing an external USB drive requires a different approach. While you can format an entire drive as APFS (Encrypted) via Disk Utility, this locks the entire drive. If you only want to protect a specific folder on that external drive so you can safely transport secure data between computers, you need software capable of creating "Portable Lockers."

FileVault vs BitLocker: What's the Mac Equivalent?

Users coming from Windows often ask about Mac encryption software compared to BitLocker. Apple's equivalent is FileVault.

FileVault Mac encryption is excellent for full-disk encryption. However, it does not lock individual folders. Once you log into your Mac user account, FileVault automatically decrypts everything on the fly. Therefore, FileVault protects your data if your laptop is stolen and turned off, but it provides zero protection if you leave your laptop open on a coffee shop table.

Troubleshooting Common Issues

Can't open password protected folder on Mac

If you used Disk Utility to create a .dmg and it won't open, ensure you aren't trying to mount it while another instance is already mounted. Check your Finder sidebar under "Locations" to see if the image is already active.

Forgot password for encrypted Mac folder

If you used native Apple tools and forgot the password (and didn't save it to your Keychain), the data is permanently lost. AES-256 encryption is mathematically impossible to brute-force in a standard lifetime. Always use a secure password manager.

Disk Utility image from folder is read-only

When creating the image, you must select "read/write" from the Image Format dropdown. If you selected "compressed" or "read-only", you will not be able to add new files to the secure folder later.

Tools We Tested and Reviewed

Because Apple lacks a simple "right-click to lock" native feature, we tested several third-party applications. To evaluate the best folder lock software for Mac, we looked at encryption strength, ease of daily use, and synchronization capabilities. Here is what we found.

Folder Lock 10 Logo

Our Top Pick: Folder Lock 10

Editor's Choice

Trusted by millions of users globally, Folder Lock 10 bypasses the clunky workflow of Disk Utility. It utilizes military-grade AES 256-bit encryption on-the-fly.

What sets it apart in our testing is its kernel-level driver that completely hides and locks folders from the OS, keeping them invisible even if the Mac is booted in Safe Mode. It genuinely feels designed natively for macOS, shedding the clunky interface issues found in cross-platform ports.

Best for: Users who want seamless, highly secure daily file protection and multi-device sync. Not ideal for: Users who only need to secure a single text file once a year (use Disk Utility instead).
Folder Lock 10 App Icon

Folder Lock 10 Mac Interface

A Closer Look at Capabilities

Encrypt Folders
Encrypt Folders

Unlike macOS's native tools which require clunky disk images, this encrypts and decrypts files instantly with a single click, completely removing them from Finder's visibility.

Secure Notes
Encrypted Digital Vault

Beyond standard files, we found its secure notes feature highly useful for locking down financial details, creative project notes, and passwords away from native keychains.

Military Grade Encryption
Military-Grade Security

Secures your files with AES 256-bit encryption on-the-fly, ensuring your data remains unreadable even if your physical drive is stolen or compromised.

Cloud Integration
Cloud-Agnostic Integration

Integrates seamlessly with Dropbox, Google Drive, and OneDrive. Crucially, it encrypts your files before they upload, ensuring zero-knowledge privacy.

Cross Platform Sync
Cross-Platform Sync

Your secure vaults sync flawlessly across multiple devices, meaning your protected data is accessible securely whether you are on Mac, iOS, Android, or Windows.

Designed for macOS
Native macOS Feel

Built to feel like a native macOS application. It blends perfectly with the minimalist design and intuitive interface Mac users expect, without confusing menus.

Other Notable Alternatives

MacPaw Hider 2: A decent alternative if you only care about hiding files, but it focuses less on deep AES encryption and more on visual organization.

VeraCrypt: An open-source powerhouse for advanced users. It is highly secure but lacks a user-friendly interface and requires significant technical knowledge to compile and mount volumes properly.

How to make a password protected folder on Mac using Folder Lock 10

If you decide to go with our recommended tool, the process is significantly streamlined compared to the native Disk Utility method.

1

Choose Your Locker Type

Open the application and select whether you want a local Desktop Locker, or a cloud-specific vault (Dropbox, Google Drive, or OneDrive Locker).

2

Set the Master Password

Assign a strong password. Because there are no backdoors, ensure you do not lose this password.

3

Drag and Drop Files

Simply drag your sensitive folders from the macOS Finder directly into the open Locker window. They are encrypted instantly.

4

Close the Locker

When you click close, the Locker becomes invisible to the operating system and is locked down with AES-256 encryption.

Folder Lock 10 Pricing: Free vs Pro Comparison

We've broken down exactly what you get between the trial version and the fully unlocked Pro subscription.

Free Version

Basic protection for casual home users.

$0
  • 1 GB maximum encrypted storage
  • Sync across up to 2 devices
  • Standard AES encryption
Download Free Version
Editor's Pick

Pro Subscription

Comprehensive security for sensitive data.

$39.95 / Year
  • Unlimited locker storage size
  • Sync across up to 5 devices
  • Secure sharing & encrypted notes
Buy Pro License

Already a customer? Click here to retrieve Lost Registration

Detailed Feature Breakdown Free Version Pro Version
Desktop Locker (Local) 1 GB Limit Unlimited
Dropbox Locker 1 GB Limit Unlimited
Google Drive Locker 1 GB Limit Unlimited
OneDrive Locker 1 GB Limit Unlimited
Synced Devices Allowed Up to 2 Devices Up to 5 Devices
Secure File Sharing (Users)
Secure Notes & Secrets
Windows / Mac Apps
iOS / Android Apps

Is it worth it? If you manage financial records, client data, or sensitive intellectual property, the yearly cost of Pro is negligible compared to the potential cost of a data breach. The free version is perfectly sufficient for casual home users looking to secure less than 1GB of data.

Which method is right for you?

Choosing the right folder lock Mac OS X / macOS tool depends on your daily workflow.

The Casual Home User

You just want to hide some tax returns from a shared family account.

Recommendation: Built-in Disk Utility. It's free and handles occasional access perfectly.

The Traveling Professional

You carry sensitive client data on your laptop and access it daily from coffee shops.

Recommendation: Folder Lock 10. You need on-the-fly encryption and cloud sync without friction.

The Developer / IT Pro

You want complete open-source control over partitioning and mounting.

Recommendation: VeraCrypt. Folder Lock might be too automated for your specific CLI needs.

The Physical Security Worrier

You are worried about the laptop physically being stolen from your car.

Recommendation: Apple FileVault + Folder Lock 10. Use both for hardware and user-level security.

Section 12

Explore the Wider Security Ecosystem

If your privacy requirements extend beyond standard directory encryption, the developers behind our top pick offer a comprehensive suite of specialized protective applications.

Your Questions Answered

how to lock a folder in Mac OS X (older versions)?
The Disk Utility method outlined above has remained largely unchanged since OS X Mavericks. For older systems, you still navigate to File > New Image > Image from Folder. Third-party apps like Folder Lock 10 also maintain backward compatibility for several older macOS versions.
how to password protect files on Mac without a folder?
Certain Apple apps allow native file locking. For example, in Preview (for PDFs) or Pages/Numbers/Keynote, you can go to File > Set Password. However, if you are working with generic formats like .mp4 or .jpg, you must place them in a protected folder or use encryption software.
Does FileVault password protect folders?
No. FileVault encrypts your entire hard drive at rest. Once you type in your Mac user password to log in, everything is decrypted for your active session. It will not prompt you for a password when clicking on individual folders.
Is folder lock Mac software safe to use?
Yes, provided you use reputable software. Tools like Folder Lock 10 use industry-standard AES-256 encryption. Crucially, they do not have "backdoors"—meaning the developers do not store your master password. If you lose it, the data is unrecoverable, which is the hallmark of true security.

Our Verdict & Bottom Line

Securing your digital life on macOS requires stepping beyond the default user-account password. Throughout our tests, we found that while Apple's Disk Utility is functional for archiving old files, it creates friction for daily tasks due to the need to mount and unmount disk images.

For the vast majority of users who need to reliably hide, lock, and edit files on a daily basis, a dedicated third-party utility is the superior choice. Folder Lock 10 stands out as our recommended tool because it combines kernel-level hiding capabilities with robust AES-256 encryption and cross-platform cloud syncing.