iPhone cannot put a password on a single folder, in the Files app or in Photos. On iOS 18 and later you can lock the whole Files app instead: touch and hold its icon and tap Require Face ID. To keep folders behind a passcode of their own, move the files into a vault app such as FileLock.
If you have been looking for a padlock on a folder in the Files app, you will not find one. iOS has no way to put a password on a single folder, and Photos albums cannot be locked either, apart from the Hidden album.
What you can do depends on what is in the folder: documents, photos or notes. Below are the four options that work on iOS 18 and later, iOS 26 and iOS 27 included, and what each one leaves exposed.
What iPhone can and cannot lock
- Folders in Files: no lock. Compress makes a ZIP file, but without a password.
- Albums in Photos: no lock, except the Hidden album.
- Folders in Notes: no lock, though individual notes can be locked.
- Whole apps: on iOS 18 and later, most apps can be locked with Face ID, including Files, Photos and Notes.
Option 1: Lock the whole Files app (iOS 18 and later)
If you cannot lock one folder, you can lock everything in Files. The steps are the same on iOS 18, iOS 26 and iOS 27.
- On the Home Screen, touch and hold the Files icon until the quick actions menu opens.
- Tap Require Face ID (or Require Touch ID or Require Passcode).
- Tap Require Face ID again and authenticate.
Files now asks for Face ID every time you open it, and Apple keeps a locked app's content out of search, Siri suggestions and notification previews. Apple does not say whether other apps' file pickers are covered, so treat the lock as protection for the Files app itself. To remove the lock, touch and hold the icon and tap Don't Require Face ID.
What it does not cover:
- It is all or nothing. Your shopping lists and your passport scan sit behind the same lock, and opening one opens all of them.
- Files cannot be hidden. Built-in apps can be locked but not hidden, so the icon stays where it is.
- iCloud Drive is outside the lock. The lock applies to this iPhone only and does not sync. Files stored in iCloud Drive are still reachable from your other devices and from iCloud.com.
- Your passcode opens it. Anyone who knows your iPhone passcode can get in.
Option 2: Use locked notes for small private documents
Notes cannot lock a folder, but it can lock individual notes, and it can use a password different from your iPhone passcode. A Notes folder full of locked notes works as a rough private folder for text, photos and documents you scan inside Notes.
- Set the password in Settings > Apps > Notes > Password. Choose Use Custom Password for a separate one, or Use Device Passcode.
- In Notes, make a folder for private notes and create a note in it.
- Add your text, photos or a scan, then tap the Note Actions button and tap Lock.
Limits to know:
- A note with a PDF, a video or audio cannot be locked. On iOS 27, Apple's list covers file attachments in general; earlier versions name Pages, Numbers and Keynote files. You cannot drop a PDF tax return into a locked note, for example.
- Each note's title stays visible in the list, so give private notes plain titles.
- If you forget a custom password, Apple cannot help you open those notes.
The step-by-step for photos in a locked note is in how to put a password on photos on iPhone.
Option 3: Password-protect the files themselves
When you need to send a file to someone, a password on the file itself works better than any folder lock, because the password travels with the file.
- Pages documents: in Pages, tap the More button, then Document Options, then Set Password. Numbers spreadsheets and Keynote presentations can be password-protected in their own apps as well.
- PDFs: FileLock's Lock PDF tool adds a password to a PDF on your iPhone, with no upload. It needs FileLock PRO. See how to password protect a PDF on iPhone.
- ZIP files: a ZIP made in Files has no password, so it does not protect anything on its own.
Option 4: Keep real folders inside FileLock
FileLock is a file locker for iPhone. Inside it you get ordinary folders and subfolders, and the whole app sits behind its own 4-digit passcode, with Face ID as an option. It is the closest thing to a locked folder on iPhone. Be aware that one passcode opens every folder in FileLock; you cannot give a single folder its own code.

Build your folders
- Tap +, choose New Folder and name it, for example "Passports & IDs".
- Add files with + > Files (iCloud Drive and other locations), + > Photos, or + > Scan Document for paper documents, which you can save as a PDF or as images.
- To reorganise, touch and hold an item and choose Move.
Scanning straight into FileLock means the document never lands in Files or Photos at all. More on that in how to scan documents on iPhone.
Bring a whole folder over from Files
To move a folder with everything inside it, zip it first:
- In Files, open the location that holds the folder, touch and hold the folder and tap Compress. Files saves a ZIP file next to it.
- In FileLock, tap + > Files and pick the ZIP file.
- Tap the ZIP file in FileLock and choose Extract. The folder appears with its contents.
You can also add files from a computer. Connect your iPhone with a cable, open Finder on a Mac or the Apple Devices app or iTunes on Windows, go to the Files tab and drop the files onto FileLock. They arrive in FileLock's Computer Shared folder. See how to transfer files from PC to iPhone.
Delete the originals
- In Files, delete the original folder and the ZIP file.
- Tap Browse, then under Locations tap Recently Deleted, and delete them there too. Otherwise Files keeps them for 30 days. If they were in iCloud Drive, deleting them also removes them from your other devices.
- For anything you imported from Photos, delete the originals in Photos and then in its Recently Deleted album.
Which option fits what you are locking
- Documents you just want out of casual reach: lock the Files app.
- A few private notes, photos or scans: locked notes with a custom password.
- Files you send to other people: a password on the file itself, in Pages, Numbers, Keynote or with Lock PDF.
- Folders only you can open, with photos, videos and PDFs mixed together: FileLock.
Photos have a few extra options of their own, such as the Hidden album. See how to put a password on photos on iPhone.
Frequently asked questions
Can I put a password on a folder in the Files app?
No. Files has no lock or password for single folders. On iOS 18 and later you can lock the whole Files app with Face ID, or move the folder's contents into a vault app.
Can I lock a photo album on iPhone?
Only the Hidden album, which opens with Face ID, Touch ID or your iPhone passcode. Regular albums cannot be locked.
Is a ZIP file I make in Files password protected?
No. Compress in the Files app makes an ordinary ZIP file that anyone can open.
Can I lock a folder in the Notes app?
No, only individual notes. You can keep a folder of locked notes, but each note is locked on its own and its title stays visible in the list.
Can each folder in FileLock have its own passcode?
No. One passcode locks all of FileLock, and every folder inside it sits behind that passcode.