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.
- 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.
| Situation | Are the photos protected? |
|---|---|
| iPhone lost or stolen, locked | Yes |
| Storage chip removed from the phone | Yes |
| Someone knows or obtains the passcode | No |
| Phone handed over unlocked | No |
| Copy in iCloud Photos, default settings | Encrypted, but Apple holds the keys |
| Unencrypted backup on a computer | No |
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.
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.
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.
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.
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
| Threat | Passcode | ADP | Encrypted backup | Vault with its own PIN |
|---|---|---|---|---|
| Lost or stolen iPhone | Yes | - | - | Yes |
| Legal request to Apple or an iCloud breach | - | Yes | - | Yes |
| Access to your computer | - | - | Yes | Yes |
| Someone who has the passcode | No | No | No | Yes |
Related reading:
- How Photo Encryption Works on iPhone: protection classes, key derivation, and what "military-grade" means
- Is iCloud Photos Really Private?: what Apple can access, and when
- Does iPhone Have a Duress PIN?: what iOS offers when someone demands the passcode