How to Encrypt Photos on iPhone: What Is Already Encrypted and What Isn't

iPhone photos are encrypted on the device, but not against someone who has the passcode, and not end to end in iCloud by default. The 4 steps that close the gaps.

Inner Gallery5 min readUpdated November 15, 2026
iPhoneEncryptioniCloud
In short
  • An iPhone with a passcode already encrypts its photos on the device.
  • That encryption stops protecting them once the phone is unlocked or the passcode is known.
  • iCloud Photos is end-to-end encrypted only if you turn on Advanced Data Protection.
  • A separate code for sensitive photos requires app-level encryption, in a vault.

Are iPhone photos already encrypted?

Yes, at the storage level. As soon as a passcode is set, iOS encrypts every file with keys derived from the passcode and from hardware keys in the Secure Enclave. Apple calls this Data Protection and describes it in its platform security guide.

The limit is in the design. After the first unlock following a restart, the keys for the photo library stay available so that apps and sync can work in the background. The encryption protects the phone as an object, not the photos from the people who can open the phone.

SituationAre the photos protected?
iPhone lost or stolen, lockedYes
Storage chip removed from the phoneYes
Someone knows or obtains the passcodeNo
Phone handed over unlockedNo
Copy in iCloud Photos, default settingsEncrypted, but Apple holds the keys
Unencrypted backup on a computerNo

How Photo Encryption Works on iPhone goes through the protection classes in detail. The four steps below close the gaps in the table.

Step 1: Set a strong passcode

Every key on the device derives from the passcode, so its strength sets the strength of everything else. Go to Settings → Face ID & Passcode → Change Passcode → Passcode Options, and choose a custom alphanumeric code or at least six digits.

10,000
possible combinations for a 4-digit passcode
1,000,000
for a 6-digit passcode

Step 2: Turn on Advanced Data Protection

With the default setting, iCloud Photos is encrypted in transit and on Apple's servers, but Apple keeps the keys and can provide the content in response to a legal request. Apple's iCloud data security overview lists the categories concerned.

Advanced Data Protection (ADP) makes iCloud Photos and iCloud Backup end-to-end encrypted: the keys exist only on your trusted devices.

1
Open the setting
Settings → your name → iCloud → Advanced Data Protection.
2
Set up recovery
A recovery contact or a recovery key, because Apple can no longer restore access for you.
3
Update your devices
Every device on the account must run a recent system version.
4
Turn it on
Apple details the procedure in its support article.

Two limits. Shared Albums stay outside end-to-end encryption, even with ADP. And since February 2025, Apple no longer offers ADP to new users in the United Kingdom.

Step 3: Encrypt your local backups

A backup made on a Mac or a PC contains the photos stored on the phone. Without encryption, anyone with access to the computer can extract them. Connect the iPhone, select it in the Finder (or in the Apple Devices app on Windows), and check "Encrypt local backup". Apple explains the option in About encrypted backups.

Old unencrypted backups remain on the disk until you delete them.

Step 4: Encrypt sensitive photos with their own key

The first three steps protect photos from outsiders. They do nothing against a person who has the passcode: a partner, a relative, a colleague who saw you type it, or an officer who requires it. For that, photos must be encrypted a second time, with a key that the passcode doesn't open.

PhotosKey from your PINEncrypted filesChaCha20-Poly1305 · each file encrypted separately
An encrypted vault adds its own key, separate from the iPhone passcode.

A locked note does this for a few images. For a library of photos and videos, it is the job of a vault app with app-level encryption.

Photo imported
into the vault
Per-file encryption
with a key protected by the vault's PIN
Original deleted
from the Photos app
Vault locked
unreadable, even with the phone unlocked

In Inner Gallery (our app), each photo and video is encrypted on the device with ChaCha20-Poly1305. The PIN belongs to the vault and differs from the device passcode. There is no account and no company server, and the optional iCloud sync sends only data that is already encrypted.

Not every vault app works this way. Some only move files into a folder behind a PIN screen, as shown in Why Most Vault Apps Aren't Private. Three questions sort them out: is each file encrypted, who holds the key, and does the app send data to its own servers?

What each step covers

ThreatPasscodeADPEncrypted backupVault with its own PIN
Lost or stolen iPhoneYes--Yes
Legal request to Apple or an iCloud breach-Yes-Yes
Access to your computer--YesYes
Someone who has the passcodeNoNoNoYes

Related reading:


Download Inner Gallery