Turn On FileVault Encryption with fdesetup enable

Encrypt your Mac's startup disk from the terminal using Apple's built-in fdesetup tool.

macOSsecurityfilevaultencryptionMedium risk
Run sudo fdesetup enable and confirm with your account password to start encrypting the startup disk with FileVault.

01Command

Command
$ sudo fdesetup enable

02What it does

fdesetup enable switches on FileVault, Apple's full-disk encryption for the startup volume, using your account credentials as the unlock key. Encryption runs in the background and typically finishes within an hour on Apple silicon Macs; check progress with fdesetup status. Apple's macOS User Guide describes FileVault as the way to keep data safe if the Mac is lost or stolen — on modern Macs with a T2 chip or Apple silicon the hardware assist makes it nearly free performance-wise.

03Risk

RiskMedium risk
RequirementsRequires administrator (sudo) privileges; the account password is used as the recovery unlock.
!Warning: Save the recovery key it offers — losing both your account password and the recovery key makes the encrypted data permanently unrecoverable.

04Undo

Undo
$ sudo fdesetup disable

05Sources

  • FDESETUP(8) - macOS manual page
    Apple (Xcode man pages mirror) · vendor-doc · 2026-09-17
    Evidence: The manual page documents 'fdesetup enable' with the description 'Enables FileVault', including auth options and recovery key output.
  • Encrypt Mac data with FileVault - macOS User Guide
    Apple Support · vendor-doc · 2026-09-17
    Evidence: Apple's FileVault guide explains what encrypting Mac data with FileVault does and that it protects data if the Mac is lost or stolen.

Last verified: 2026-09-19 · Category: Security & Privacy

06Related solutions