Petersaint › Guides › Password protect a folder on iPhone
How to password protect a folder on iPhone (and why Files can't)
You can't put a password on a folder in the iPhone Files app; Apple's Files guides offer tags, colours and icons but no lock. The workarounds: lock the whole Files app with Face ID (it uses your passcode), put photos and text in a locked note with a separate Notes password, password-protect PDFs using Preview on a Mac, or use a vault app with its own secret.
Why the Files app can't do it
Files on iPhone lets you organise folders in plenty of ways. Apple's guides to it cover tagging folders, giving them a colour or icon, adding them to Favourites, sorting and searching. None of them describe a password or lock for a folder or a single file. So the honest answer is no: iOS has no built-in way to password-protect a folder.
That leaves four practical routes, each with a different trade-off.
Option 1: lock the whole Files app
iOS lets you require Face ID for individual apps. Files isn't among the apps Apple lists as unable to be locked (that list includes Calculator, Camera, Clock, Contacts, Find My, Maps, Shortcuts and Settings).
- On the Home Screen, touch and hold the Files icon until the quick actions menu opens.
- Tap Require Face ID (or Touch ID or Passcode).
- Tap it again and authenticate.
This protects everything in Files, not one folder, and it opens with your normal passcode. Files comes with iOS, so it can be locked but not hidden, and the lock applies only to that iPhone. It doesn't sync, so files in iCloud Drive aren't covered by it on your other devices.
Option 2: a locked note with its own password
Notes is the one built-in app that can use a password separate from your passcode, which makes it the closest thing to a protected folder for some kinds of content.
- Open or create a note and add what you want to protect.
- Tap the More button (three dots) and tap Lock.
- The first time, choose to create a Notes password rather than use your iPhone passcode, and add a hint.
Apple says both options are end-to-end encrypted for iCloud accounts. But you can't lock notes that contain PDFs, video, audio, or Keynote, Pages or Numbers documents, nor tagged or shared notes. And if you forget a Notes password, Apple says those notes can't be recovered. It suits a handful of photos and private text, not a folder of documents.
Option 3: password-protect individual PDFs
A PDF can carry its own password, which goes with the file wherever you store it, including Files. Apple documents how to do this with Preview on a Mac:
- Open the PDF in Preview and choose File › Export. Give it a new name if you want to keep an unprotected original.
- Click Permissions and select Require Password To Open Document, then enter the password twice.
- Set an owner password, click Apply, then Save.
Copy the protected PDF to Files on your iPhone. This only covers PDFs, one at a time, and the folder itself stays open.
Option 4: a vault app with its own secret
If you want one protected place for photos, videos and documents together, that is what vault apps are for. Things worth checking before you pick one: whether it opens with something other than your passcode, whether files are actually encrypted, what happens if you forget the secret, and whether it uploads anything.
Options compared
| Method | Protects | Secret separate from passcode | If you forget it |
|---|---|---|---|
| Lock Files app | All of Files on this iPhone | No | Same as forgetting your passcode |
| Locked note, Notes password | Photos and text; not PDFs or video | Yes | Apple says the notes can't be recovered |
| Protected PDF (Mac Preview) | One PDF at a time | Yes | The PDF stays locked |
| Petersaint | Photos, videos and any file type | Yes, a drawn pattern | The pattern can't be reset; files come back only from an encrypted backup you exported |
Where Petersaint fits
Petersaint works like a password-protected folder for the whole phone. You import from Files or Photos, or share into it from other apps, and it previews photos, videos, PDFs and text files in the app; other file types can be stored and exported. It opens with a pattern drawn on a 3×3 grid, separate from your passcode, and each file is encrypted with its own key, protected by the iPhone's Secure Enclave. There is no account and nothing goes to the cloud. For context, see secret folder on iPhone, encrypted photo vaults and vault apps without a subscription.
Honest limits. Petersaint can't reset a forgotten pattern: without an encrypted backup you exported, and its 12-word phrase, the files are gone. Wrong patterns never erase the vault unless you turn on self-destruct, which destroys the files after 3, 5 or 10 wrong patterns in a row. Backup isn't automatic: the vault is left out of iCloud and computer backups, so export an encrypted backup, or keep copies elsewhere, of anything you can't lose. It's iPhone only, iOS 16.4 or later.
Petersaint: a pattern-locked, encrypted vault for your iPhone's files, photos and videos. Free for up to 50 items, with an optional Pro upgrade.
Download on the App StoreQuestions
Can I password protect a folder in the iPhone Files app?
No. Apple's Files guides cover tags, colours, icons and favourites for folders, but there is no password or lock option.
Can I lock the Files app with Face ID?
Files isn't on Apple's list of apps that can't be locked. Touch and hold its icon and tap Require Face ID. It locks the whole app with your phone passcode, not one folder.
Can Notes be used as a password-protected folder?
Partly. A locked note can use its own Notes password and hold photos and text, but notes with PDFs, video, audio or iWork documents can't be locked.
How do I password protect a PDF for my iPhone?
One documented way is Preview on a Mac: File › Export, then Permissions, then Require Password To Open Document. Copy the PDF to Files afterwards.
What happens if I forget a Notes password?
Apple says there is no way to access notes locked with a forgotten Notes password. Resetting it only applies to notes you lock afterwards.
Sources: iPhone User Guide: Files, iPad User Guide: Modify files and folders in Files, Apple Personal Safety User Guide: Lock or hide an app, Apple Support: Lock or unlock notes, Preview User Guide for Mac: Password-protect a PDF.