How to Store Private Files Securely on iPhone: Every Option Compared
The Files app, a locked Files app, PDF passwords, locked notes, iCloud Drive with Advanced Data Protection, and a vault with its own PIN.
Quick answer
A passcode encrypts everything on the iPhone, but once the phone is unlocked, Files is open. Add a second layer: lock the Files app, put a password on PDFs, or keep files in a vault with its own PIN.
- Built-in encryption
- Setting a passcode turns on data protection, which encrypts iPhone data with 256-bit AES. It guards a locked phone.
- Files app
- No password for a single file or folder. In iOS 18 and later, Require Face ID locks the whole app.
- Locked notes
- Good for text and pictures. Notes that hold PDFs, audio, video or Pages, Numbers and Keynote files can't be locked.
- When to use a vault
- When documents need a code that is not the iPhone passcode, in one place for every file type.
Best overall: Stash
A locked Files app opens with the iPhone passcode, and locked notes can't hold PDFs, audio or video. Stash gives private files a vault of their own: a working calculator whose PIN opens storage for PDFs, documents, audio, photos and videos, with secure notes alongside. Every item is encrypted on the iPhone with AES-256 and the key stays in the iOS Keychain; there is no account and no Stash server. Stash is free to download with no ads, so the first documents can move in straight away.
What your iPhone already protects
Every iPhone with a passcode already encrypts its storage. Apple's iPhone User Guide page Set a passcode on iPhone says, as of 30 November 2026: "Setting a passcode also turns on data protection, which encrypts your iPhone data with 256-bit AES encryption." The same page recommends Custom Alphanumeric Code or Custom Numeric Code as the strongest passcode options.
That protects your files well against a stranger who finds a locked phone. It does not help once someone can unlock the phone, because the encryption is tied to the passcode: whoever knows it opens the phone, and with it every document in the Files app. A second layer is about that moment, when the phone is unlocked and in someone else's hands, or when another person knows the code.
Every step below names the iOS version it applies to and links the Apple page it comes from.
Which files deserve a second layer
You do not need a vault for your shopping lists. Think about a second layer for:
- Identity documents: passport and ID scans, birth certificates, residence permits.
- Financial records: tax returns, bank statements, payslips.
- Health records: test results, prescriptions, insurance letters.
- Legal and work documents: contracts, confidential client files.
- Personal items: a journal, letters, voice memos, private recordings.
Most of these are PDFs, scans and audio, which matters below: several of the built-in options only handle some file types.
Where private files can live on iPhone
The Files app keeps documents in two main places, and they behave differently.
- On My iPhone. Files stay on this device. They are covered by the phone's data protection, and they leave the phone only in a device backup or when you share them.
- iCloud Drive. Files sync to every device signed in to your Apple Account and to iCloud.com. Apple's iCloud data security overview lists iCloud Drive, as of 30 November 2026, as encrypted "in transit & on server" with the keys held by Apple under standard data protection. With Advanced Data Protection turned on, iCloud Drive is end-to-end encrypted and the keys are held by your trusted devices.
Neither place lets you set a password on a single file or folder. Apple's page Organize files and folders in Files lists, as of 30 November 2026, the actions for a file or folder (New Folder, Copy, Move, Compress, Duplicate, Delete, Rename, Tags, Favorite), and a lock is not one of them. A nested folder with a dull name is tidy, not protected: anyone who can open Files can browse to it.
How to lock the Files app (iOS 18 and later)
The simplest upgrade for documents is a lock on the whole app. Per Apple's guide Lock or hide an app on iPhone, checked 30 November 2026:
- Go to the Home Screen and find Files.
- Touch and hold the icon until the Quick Actions menu opens.
- Tap Require Face ID (on other models: Require Touch ID or Require Passcode) and authenticate.
From then on Files asks for Face ID, Touch ID or your passcode each time it opens. Apple adds that "Information inside a locked app won't appear in other locations," such as notification previews, search and Siri suggestions.
Two limits come with it. Built-in apps cannot be hidden ("Apps that come installed can't be hidden"), so the Files icon stays on the Home Screen. And "The locked or hidden status of an app doesn't sync with iCloud," so lock Files on your iPad as well if your documents are in iCloud Drive. If you are looking for something like Samsung's Secure Folder, read does iPhone have a Secure Folder.
How to password-protect a PDF on iPhone (iOS 26 and later)
Since iOS 26 the iPhone has the Preview app, and Preview can lock a PDF with a password of its own. Per Apple's guide Lock PDFs in Preview on iPhone, checked for iOS 27 on 30 November 2026:
- Open the Preview app and open the PDF.
- To keep a copy without a password, tap the Actions Menu button next to the filename and tap Duplicate first.
- Tap the Actions Menu button, then tap Lock.
- Enter the same password in the Password and Verify fields. Require Password turns on automatically.
- Tap Done.
This is the one built-in way to give a single file its own password. It covers PDFs only, one file at a time, and it is worth most when the password differs from the iPhone passcode.
Locked notes are for text, not documents
Notes can lock individual notes, which makes them look like a natural safe for private files. For text and pictures they are. For documents they are not, and that is the claim in the title of this page. Apple's article How to lock or unlock notes on your iPhone or iPad states, as of 30 November 2026: "You can't lock notes that have tags, PDFs, audio, video, Keynote, Pages, Numbers documents," and the same applies to notes that sync over IMAP from accounts such as Gmail or Yahoo.
What locked notes do well, per the same article:
- Two kinds of lock. "You can lock notes with your iPhone passcode. Or, you can create a unique password only for Notes." A Notes password needs a hint. Using the device passcode requires iCloud Keychain.
- Face ID or Touch ID can open a locked note if your device supports it.
- To lock a note, open it, tap the More button and tap Lock.
One warning from Apple belongs next to that: "there is no way to access your locked notes if you forget the password." Write a Notes password down somewhere safe. More in how to lock notes on iPhone.
So a scanned passport saved as a PDF, a voice memo or a Pages contract cannot go into a locked note. That leaves those files in the Files app, behind the iPhone passcode, unless you move them somewhere with its own code.
Who can open your private files
This table sums up each storage option, based on the Apple pages linked on this page.
| Where the file is | Who can open it | Also in iCloud? |
|---|---|---|
| Files, On My iPhone, app not locked | Anyone using the unlocked phone | Not synced; can be part of a device backup |
| Files, iCloud Drive, app not locked | Anyone using the unlocked phone, any device on your Apple Account, iCloud.com | Yes; keys held by Apple unless Advanced Data Protection is on |
| Files with Require Face ID | Anyone who knows the iPhone passcode | As above, depending on the location |
| PDF locked in Preview | Anyone who knows that PDF's password | Depends on where the PDF is saved |
| Locked note | Anyone who knows the passcode or the Notes password | iCloud notes sync; PDFs, audio and video can't be locked |
| Vault app with its own PIN | Anyone who knows the vault's PIN | Depends on the app's backup settings |
The pattern: apart from a PDF password and a Notes password, every built-in lock ends at the iPhone passcode.
Deleted files wait 30 days
Moving a document somewhere safer always ends with deleting the original, and the Files app keeps a copy for a while. Apple's article Delete files or recover deleted files in the Files app says, as of 30 November 2026: "When you delete files from iCloud Drive or On My [device] in the Files app, they go into your Recently Deleted," and "After 30 days, your files are permanently deleted."
To remove a file at once:
- Open Files and tap the Browse tab.
- Under Locations, tap Recently Deleted.
- Tap the More button, then Select, and choose the files.
- Delete them.
Apple's warning: "Files deleted from Recently Deleted are deleted immediately and are not recoverable." Check that your new copy opens before you do it. Photos and videos follow the same idea in the Photos app; see recently deleted photos on iPhone.
When the built-in options are enough
For many people a strong passcode plus a locked Files app is the right setup. It fits when:
- Nobody else knows your iPhone passcode.
- Your private documents are a handful of PDFs, which Preview can lock with their own password.
- Your private text fits in a locked note with a Notes password.
- iCloud Drive with Advanced Data Protection covers your worry about files in the cloud.
All of it is free and already on the phone.
When you need more than a locked Files app
The table above shows where the built-in locks stop. Look at a vault when:
- Someone else knows the passcode. The locked Files app, the Hidden album and a passcode-locked note all open with it.
- Your files are mixed. Scans, audio, Pages documents and videos cannot go into a locked note, and only PDFs get their own password.
- You want one place. Documents in Files, pictures in Photos, text in Notes: three apps, three locks, three Recently Deleted folders.
- You want the files out of iCloud Drive but still behind a lock other than the iPhone passcode.
A good vault app for files has any file type, a separate passcode from the device lock, encryption on the device with the details stated plainly, no upload to the developer, backups only when you choose them, and a recovery option for a forgotten PIN.
How to store private files with Stash
Stash opens as a working calculator; your PIN opens the vault. It takes PDFs, documents and audio from Files and photos and videos from the photo library, sorts them into albums and keeps secure notes next to them. Every item is encrypted on the device with AES-256, and the key stays in the iOS Keychain. There is no account and no Stash server, so the developer cannot see or scan your files.
- Install Stash on your iPhone or iPad (iOS 15 or later).
- Choose your PIN and save the recovery key, which Stash shows once during setup and which restores access if you forget the PIN.
- In the vault, tap + and import the documents from Files, or the photos and videos from Photos.
- Check that each file opens in the vault. Importing makes a copy, so the original stays where it was until you delete it.
- Delete the original in Files or Photos, then empty the matching Recently Deleted.
- Optional: turn on Face ID or Touch ID and auto-lock. Premium adds a guest PIN that opens a separate vault, opt-in intruder photos after a wrong PIN, and an encrypted backup to your own iCloud Drive or Google Drive that runs only when you start it.
Keep a strong iPhone passcode as well: the vault adds a second lock for the files you choose, on top of the phone's own data protection. How the encryption works is explained in zero-knowledge encryption for photo vaults.
FAQ
Are files on my iPhone encrypted?
Yes. Apple says setting a passcode turns on data protection, which encrypts iPhone data with 256-bit AES. A second layer matters when someone else can unlock the phone.
Can I put a password on a folder in the Files app?
No. The Files app has no password or lock for a single file or folder. In iOS 18 and later you can lock the whole app with Require Face ID.
Can I password protect a PDF on iPhone?
Yes, in iOS 26 and later. Open the PDF in the Preview app, tap the Actions Menu button, tap Lock and set a password. You can also lock the Files app or keep the PDF in a vault app.
Can I lock a note that has a PDF in it?
No. Apple states that notes with tags, PDFs, audio, video or Keynote, Pages and Numbers documents can't be locked. Locked notes work for text and pictures.
Is iCloud Drive encrypted?
Yes. Under standard data protection, Apple lists iCloud Drive as encrypted in transit and on the server with the keys held by Apple. With Advanced Data Protection on, it is end-to-end encrypted with the keys on your trusted devices.
What happens if I forget a Notes password?
Apple says there is no way to access locked notes if you forget the password, and resetting it only applies to notes you lock afterwards. Keep the password and its hint somewhere safe.
What is the most secure way to store private files on iPhone?
A strong device passcode first, always. On top of it, a vault app with its own PIN keeps every file type in one place behind a code that is not the iPhone passcode; a locked Files app is the free, simpler step.
The Bottom Line
The iPhone's own encryption protects a locked phone. Once it is unlocked, the second layer decides who can open your private files, and the built-in choices are narrower than they look. The Files app has no lock for a single file or folder, only for the whole app, and that lock opens with the iPhone passcode. Preview can lock PDFs one at a time. And locked notes, the obvious safe, cannot hold PDFs, audio, video or Pages, Numbers and Keynote files, as Apple's own article states. The table of who can open what shows where each option ends.
For a few PDFs on a phone only you unlock, the built-in tools are enough. For mixed private documents that need a code of their own, move them into a vault, delete the originals and empty Recently Deleted.
·Written by the developer of Stash
Save this guide
Download this guide as an image