How to Lock Files on iPhone: Every Built-In Way and Where It Stops
How to lock the Files app, lock files inside Notes and password-protect a PDF, with the file types and passwords each method accepts.
Quick answer
iOS has no password for a single folder. You can lock the whole Files app with Face ID, lock images and scans inside a note, or export a password-protected PDF on a Mac. Locked notes cannot hold PDFs, audio or video.
- Fastest way
- Touch and hold the Files app icon, then tap Require Face ID. The app asks for Face ID, Touch ID or the passcode each time it opens.
- A note with a lock
- Notes can lock photos and scanned documents with the passcode or a separate password, but not PDFs, audio, video or Pages files.
- One protected PDF
- On a Mac, Preview can export a PDF that asks for a password before it opens, on any device.
- When to use a vault
- When the files need a code of their own, or include PDFs, audio and video that a locked note will not take.
Best overall: Stash
The built-in ways lock the Files app with the phone's own passcode or lock a note that refuses PDFs, audio and video. Stash keeps photos, videos, PDFs, documents and audio together behind a PIN of its own, inside a working calculator. Each item is encrypted on the iPhone with AES-256 before it is saved, with the key in the iOS Keychain. Premium adds a guest PIN and an optional encrypted backup to your own iCloud Drive or Google Drive. Stash is free to download with no ads.
Why there is no password for a folder on iPhone
People coming from a computer or from a Samsung phone look for a "lock folder" option in the Files app and do not find one. Apple's guide to the Files app describes creating folders, giving them a colour, an icon and tags, and marking them as favourites (Modify files and folders). A password for a single folder is not among the options, as of 2 December 2026 and iOS 27.
Instead, iOS offers three ways to put a lock in front of files, each with a different scope:
- Lock the whole Files app, so it asks for Face ID, Touch ID or the passcode when it opens.
- Lock a note that holds images or scanned documents, with the passcode or a separate Notes password.
- Protect one PDF with a password, which you set on a Mac in Preview.
The steps below were checked against Apple's documentation as of 2 December 2026. Samsung's Secure Folder, and what comes closest on an iPhone, has its own page: iPhone Secure Folder.
How to lock the Files app with Face ID
Since iOS 18, any app on the Home Screen can ask for authentication before it opens. Apple's page Lock or hide an app describes the steps.
- Find the Files app on the Home Screen or in the App Library.
- Touch and hold the icon until the quick actions menu opens.
- Tap Require Face ID (on other iPhones the option reads Require Touch ID or Require Passcode).
- Confirm with Face ID, Touch ID or the passcode.
From then on, Files asks for Face ID, Touch ID or the passcode every time it opens. Apple states that the app locks again automatically after you quit it, and that information from a locked app is kept out of notification previews, search, Siri suggestions, CarPlay and the call history. The lock and hide settings apply only to the iPhone where you set them and do not sync through iCloud.
Two limits follow from how the lock works. It locks every file in the app at once, not one folder. And it accepts the iPhone passcode, so anyone who knows the passcode opens the Files app as well. Apps that come with the iPhone, Files among them, can be locked but cannot be hidden; Apple lists preinstalled apps among those that cannot be hidden.
How to lock files inside a note
Notes is the only built-in app that can put a password of its own on content. You add the file to a note, then lock the note. Apple's page Lock your notes on iPhone and iPad, published 11 December 2025, covers the details.
- Open Notes and create a new note in iCloud or On My iPhone.
- Add the content: tap the camera button to add a photo from the library, or choose Scan Documents to scan a paper page.
- Tap the More button (•••) and then Lock.
- The first time, choose whether to lock notes with your iPhone passcode or to create a separate password only for Notes.
- The note stays open and shows a lock icon at the top of the screen.
What a locked note cannot hold is the important part. Apple states that you cannot lock notes that have tags, PDFs, audio, video, or Keynote, Pages or Numbers documents. You also cannot lock notes that sync through an IMAP account such as Gmail or Yahoo, or notes you share with someone else. So a locked note works for photos, screenshots and scanned paper, and not for a PDF bank statement, a voice memo or a video.
Two more points from Apple's page. Locked notes are end-to-end encrypted for iCloud accounts, whichever password option you choose. And Apple cannot help if you forget a separate Notes password: there is then no way to open the notes locked with it. Resetting the password only applies to notes you lock afterwards.
For everything else about Notes, see how to lock notes on iPhone.
How to password-protect a PDF
A single PDF can carry its own password, which a PDF reader asks for before it shows the pages. iOS has no option to add that password, so you create the protected copy on a Mac with Preview (Password-protect a PDF, Preview User Guide for macOS 27):
- Open the PDF in Preview and choose File > Export.
- Give the exported copy a new name if you want to keep the original.
- Click Permissions and select Require Password To Open Document. Enter the password twice.
- Enter an owner password in the Owner Password section (it may be the same).
- Click Apply, then Save.
Move the protected copy to iCloud Drive or AirDrop it to the iPhone, then delete the unprotected original everywhere. The password protects only that one file, and only until someone opens it and saves an unprotected copy. Each new document needs the same steps on the Mac again.
Which method locks what
This table puts the three built-in methods next to a vault app, based on the Apple pages linked above, as of 2 December 2026.
| Method | What it locks | What opens it | PDFs, audio, video | Shows a visible lock |
|---|---|---|---|---|
| Require Face ID on Files | The whole Files app | Face ID, Touch ID or the iPhone passcode | Yes, everything in Files | Yes, the app asks on opening |
| Locked note | One note with images or scans | The iPhone passcode or a separate Notes password | No | Yes, a lock icon in the note list |
| Password-protected PDF | One PDF | The PDF's own password | PDF only | Yes, a password prompt |
| Vault app with its own PIN | The files you import | The vault's PIN | Yes | Stash opens as a calculator |
Read the "What opens it" column first. Two of the three built-in methods accept the iPhone passcode. Anyone who knows that passcode, because they set up the phone or watched you type it, gets past them.
iCloud Drive, Notes and encryption
Locking is about who can open a file on the phone. Encryption in iCloud is about who can read it on Apple's servers. Apple's iCloud data security overview lists, as of 2 December 2026:
- iCloud Drive: with standard data protection, encrypted in transit and on the server, with the keys held by Apple. With Advanced Data Protection, end-to-end encrypted, with the keys on your trusted devices.
- Notes: the same as iCloud Drive. Locked notes are an exception: Apple's notes page says they are end-to-end encrypted for iCloud accounts either way.
- iCloud Backup: the same pattern as iCloud Drive.
Advanced Data Protection needs iOS 16.2 or later on your devices. A locked Files app changes nothing about how its files are stored in iCloud Drive: the lock is on the app, not on the files.
When the built-in locks are enough
For many people one of the three is the right answer:
- Nobody else knows your iPhone passcode, and you only want Files to ask for Face ID when someone else holds the unlocked phone. The Files app lock is quick and free.
- The files are photos, screenshots or scanned paper. A locked note with a separate password handles them well, and Apple encrypts locked notes end to end.
- It is one document you send now and then, such as a contract or a medical form. A password-protected PDF travels with the file, whatever device opens it.
When you need more than the built-in locks
The table shows where each method stops. Look at a vault app when one of these is true:
- Someone else knows the passcode. The Files app lock and a passcode-locked note both open with it.
- The files are PDFs, audio or video. A locked note refuses all three, and a password-protected PDF covers only PDFs, one at a time, made on a Mac.
- You want one place for everything. Photos in a note, PDFs behind their own passwords and the rest in Files makes three places with three different locks.
- The lock itself draws attention. A Files app that asks for Face ID, or a note with a lock icon, tells the person holding the phone that something is locked.
How to lock files on iPhone with Stash
Stash looks and works like a calculator. Your PIN opens the vault. Photos and videos from the photo library, and PDFs, documents and audio from the Files app, are encrypted on the iPhone with AES-256 before they are saved, with the key kept in the iOS Keychain.
- Install Stash from the App Store. It runs on iPhone and iPad with iOS 15 or later.
- Open it, choose a PIN that differs from your iPhone passcode, and write down the recovery key that Stash shows once during setup.
- In the vault, tap + and choose the files from the Files app, or photos and videos from the library. Import makes a copy.
- Sort them into albums if you like, and add private text as secure notes in the same vault.
- Delete the originals in the Files app and in Photos, and empty Recently Deleted in Photos, so no unprotected copy is left behind.
- Optional: turn on Face ID or Touch ID and auto-lock in Stash. Premium adds a guest PIN that opens a separate vault and an encrypted backup to your own iCloud Drive or Google Drive, started by you.
Someone who opens the app sees a calculator that really calculates. Keep a strong iPhone passcode too; the vault is a second lock for the files you choose.
FAQ
Can you password-protect a folder in the Files app?
No. The Files app lets you colour, tag and favourite folders, but has no folder password. The closest built-in option is locking the whole Files app with Require Face ID.
Can I lock the Files app on iPhone?
Yes, on iOS 18 and later. Touch and hold the Files icon and tap Require Face ID. It then opens with Face ID, Touch ID or the iPhone passcode.
Can I lock a PDF in the Notes app?
No. Apple states that notes with PDFs, audio, video, tags, or Keynote, Pages or Numbers documents cannot be locked. Images and scanned documents can.
Does locking the Files app encrypt my files?
The lock controls who can open the app on the phone. How the files are stored in iCloud Drive depends on your iCloud settings: with Advanced Data Protection, iCloud Drive is end-to-end encrypted.
What happens if I forget my Notes password?
Apple cannot recover notes locked with a separate Notes password. You can reset the password for notes you lock afterwards, but the old locked notes stay closed.
Is there a Secure Folder on iPhone like on Samsung?
Not as a single feature. iOS spreads it across the app lock, locked notes and the Hidden album in Photos. A vault app gives one place with its own code.
Can I lock files on iPhone without an app?
Yes, with the three built-in methods on this page: the Files app lock, a locked note and a password-protected PDF made on a Mac. Each one has the limits shown in the table.
The Bottom Line
To lock files on iPhone you choose between three built-in methods, because iOS has no password for a single folder. The Files app lock covers every file at once but opens with the iPhone passcode. A locked note can have its own password but refuses PDFs, audio and video, as Apple states on its notes page. A password-protected PDF protects one document and is made on a Mac.
The table of methods sums it up: each one either falls back to the passcode or covers only some file types. For photos and scans on a phone only you unlock, that is often enough. For PDFs, audio, video and photos together, behind a code that differs from the passcode, use a vault, delete the originals and keep a strong iPhone passcode on top.
·Written by the developer of Stash
Save this guide
Download this guide as an image