How to Encrypt a Drive on Mac: Full Guide
In this article
To encrypt a drive on a Mac, use FileVault for your startup disk or Disk Utility's Erase function with encryption for external drives. FileVault is built into macOS and encrypts your entire system drive, while Disk Utility can encrypt external drives with a password. You need an administrator account and, for external drives, the drive must be reformatted, which erases its data.
What You'll Need
- An administrator account on your Mac (you'll need to enter your password).
- For external drives: the drive itself and a backup of any data on it, because encryption requires erasing the drive first.
- A stable power connection (for laptops, plug in the charger) during the initial encryption process.
Step-by-Step
Encrypt Your Startup Disk with FileVault
- Open System Settings (or System Preferences on older macOS versions) from the Apple menu > System Settings.
- Click Privacy & Security in the sidebar.
- Scroll down and click Turn On next to FileVault. If you see a lock icon, click it and enter your administrator password.
- Choose how you want to unlock your disk if you forget your password: Use your iCloud account or Create a recovery key. If you choose iCloud, you can reset your password using your Apple ID. If you choose a recovery key, write it down and store it somewhere safe — you'll need it if you forget your login password.
- Click Continue, then Restart. Your Mac will restart and begin encrypting your drive. You can keep using your Mac while encryption runs in the background.
- To check progress, go back to System Settings > Privacy & Security > FileVault. It will show “FileVault is turned on” and a progress bar (if still encrypting).
Encrypt an External Drive (USB, SSD, HDD) with Disk Utility
- Back up any data on the external drive. This process erases everything on it.
- Connect the external drive to your Mac.
- Open Disk Utility (found in Applications > Utilities, or search with Spotlight).
- In the sidebar, select the external drive (the top-level item, not the volume below it). If you don't see it, click View in the toolbar and choose Show All Devices.
- Click Erase in the toolbar.
- In the dialog that appears:
- Name: Type a name for the drive.
- Format: Choose APFS (Encrypted) for most modern Macs (macOS 10.13 or later). For older Macs or if you need compatibility with older macOS, choose Mac OS Extended (Journaled, Encrypted).
- Scheme: Leave as GUID Partition Map (default).
- Click Erase. A prompt will ask you to create a password and a password hint. Enter a strong password (not the same as your login password) and a hint that only you understand. Write down the password somewhere safe — if you lose it, the data cannot be recovered.
- Click Choose, then Erase again to confirm. Disk Utility will format the drive with encryption. This may take a few minutes.
- Once done, the drive will appear in Finder. When you disconnect and reconnect it, macOS will ask for the password to unlock it. You can also choose to remember the password in your Keychain.
Common Mistakes
- Forgetting the recovery key or password: If you lose both your login password and the recovery key (or don't set up iCloud recovery), your data is permanently inaccessible. There is no backdoor.
- Erasing the wrong drive: Double-check the drive name in Disk Utility before clicking Erase. Formatting the wrong drive destroys its data.
- Using FileVault on an external drive: FileVault only encrypts your startup disk. For external drives, you must use Disk Utility's encryption option.
- Not waiting for encryption to finish: If you turn off your Mac mid-encryption, it will resume later, but it's safer to let it complete uninterrupted.
- Choosing a weak password: Encryption is only as strong as your password. Use a long passphrase, not a simple word.
Tips
- For external drives, consider using APFS (Encrypted) if you only use the drive with your Mac. If you need to share it with Windows or older Macs, use ExFAT (but ExFAT cannot be encrypted with Disk Utility — you'd need a third-party tool, which is not recommended).
- Keep a copy of your recovery key in a safe place, like a password manager or a printed note in a secure location.
- If you use iCloud recovery, make sure your Apple ID has two-factor authentication enabled.
- You can turn off FileVault later by going to System Settings > Privacy & Security > FileVault and clicking Turn Off. This will decrypt your drive, which can take hours.
- For external drives, you can also encrypt an already-formatted drive without erasing it by using Finder: right-click the drive icon, select Encrypt, and set a password. This works on APFS or Mac OS Extended volumes, but it's slower and may not be available on all drive formats.
Troubleshooting
- FileVault won't turn on: Make sure you're logged in as an administrator and that your Mac is plugged in (for laptops). Restart your Mac and try again. If it still fails, check that your startup disk has enough free space (at least 10% recommended).
- Encryption seems stuck: Encryption can take hours, especially on large drives. Check the progress bar in System Settings > Privacy & Security > FileVault. If it hasn't moved for an hour, restart your Mac. It will resume.
- Forgot your FileVault password: If you set up iCloud recovery, you can reset your password by clicking the “?” on the login screen and following the prompts. If you have a recovery key, enter it when prompted. If you have neither, you cannot recover the data.
- External drive asks for password but you forgot it: There is no way to bypass the password. If you have a backup, you can erase the drive again (without encryption) using Disk Utility, but all data will be lost.
- Disk Utility says “Erase process failed”: Try a different USB port or cable, and make sure the drive is not mounted elsewhere. If it's a hardware issue, the drive may be failing.
Frequently Asked Questions
Does FileVault encrypt all my files?
Yes, FileVault encrypts the entire startup disk, including all user files, system files, and hidden data. It uses XTS-AES-128 encryption with a 256-bit key.
Can I encrypt an external drive without erasing it?
Yes, if the drive is formatted as APFS or Mac OS Extended, you can right-click the drive in Finder and choose Encrypt. This encrypts the drive in place without erasing, but it can take a long time. For a fresh drive, using Disk Utility's Erase with encryption is faster and more reliable.
Will encryption slow down my Mac?
Modern Macs have dedicated encryption hardware, so the performance impact is minimal. You may notice a slight slowdown during the initial encryption process, but day-to-day use is usually unaffected.
Can I use the same password for FileVault and my external drive?
Technically yes, but it's not recommended. If someone guesses that password, they can access both. Use different strong passwords for different drives.
What happens if I lose my Mac? Can the data be recovered?
If FileVault is on and you have a strong password, the data is essentially unreadable without that password. If you have iCloud recovery set up, you can reset the password after proving your identity. If not, the data remains encrypted and inaccessible.
Does encryption protect against malware or viruses?
No. Encryption only protects data at rest — it prevents someone from reading your files if they steal the drive. It does not protect against malware, phishing, or other online threats. You still need antivirus software and safe browsing habits.