Mac OS guides
  • macOS

Password-protect files in an encrypted disk image on Mac

Source-checked About 10 minutes2 official sources

Quick answer

Use Disk Utility to create an encrypted blank disk image, choose a strong password, mount it, copy the files inside, then eject it.

Check space and pick encryption

Confirm authorization, available space, desired capacity, encryption choice, and a secure place for the unrecoverable password.

Create an encrypted disk image

Use Disk Utility's encrypted disk-image workflow and keep the original files until the mounted image and copied contents are verified.

Open Disk Utility

In Finder, open ApplicationsUtilitiesDisk Utility.

Create a blank image

Choose FileNew ImageBlank Image, name it, select a size and choose APFS or Mac OS Extended as appropriate.

Enable encryption

Choose 128-bit or 256-bit AES encryption and enter a strong password. Do not save it in Keychain if you want a prompt every time.

Save and copy files

Choose read/write image format, save the image, open it, then copy the files into the mounted volume.

Eject and test

Eject the volume in Finder, reopen the disk-image file, and confirm the password works before removing any originals.

Check that the change worked

The image requires the password after eject and remount, opens every expected file, and leaves no unencrypted duplicate in an unintended location.

Video walkthrough

This video shows an older version. Follow the written steps if the menus look different.

If it still does not work

  • If the password is lost, the image has no room, copying fails, or cloud synchronization exposes an unlocked mounted volume, undo your last change and contact official support with the exact error message and the step that failed.

Sources and verification

Checked against official documentation on . Scope: macOS. Follow the linked official guidance if labels differ after an update.