Can you password-protect a folder on iPhone?
No. The built-in Files app on iPhone can create, rename, move, and compress folders, but it has no option to lock a folder with a password. To protect individual documents, lock a PDF in Preview, lock a text note in Notes, or store the folder inside an encrypted Drawer.
By Paul Bădărău, maker of Milkglass. Instructions checked on 30 November 2026.
Steps to lock files on iPhone instead of a Files folder
- For a single PDF: Open the PDF in the Preview app on iPhone, tap the actions menu next to the filename, tap Lock, enter the same password in the Password and Verify fields, and apply the change. Apple’s iPhone Preview PDF lock guide
- For typed text: Open Notes, tap the More button, and tap Lock to protect the note with your device passcode or a custom password (set the password first in Settings › Apps › Notes › Password; notes with video, audio, PDF, or file attachments cannot be locked). Apple’s iPhone locked notes guide
- For a folder of mixed photos and files: Use an app with its own access control, such as Milkglass, where you can create folders inside a Drawer opened by your pattern.
What each option affects and where copies stay
The iPhone Files app relies on your iPhone passcode and Apple Account sign-in for overall device protection; anyone with your unlocked phone can open any folder in Files. Apple’s iPhone Files organization guide
Locking a PDF in Preview encrypts that specific PDF file, while locking a note protects that note in Apple Notes. When you import files from Files into a Milkglass Drawer, import makes an encrypted copy inside the Drawer, so remember to delete the original copies from Files and Recently Deleted if you do not want them left behind.
When a locked file still leaves an unprotected copy
- You locked a duplicate or forgot the original in Files. Always check the folder where you started and delete the unlocked source if needed.
- You compressed a folder into a ZIP in Files. The Files app’s Compress action creates a standard unencrypted ZIP without a password prompt.
- You relied on a locked note for unsupported attachments. Apple Notes cannot lock notes that contain video, audio, PDF, or file attachments.
Common questions about password-protecting folders on iPhone
Can the iPhone Files app create a password-protected ZIP file?
No. Tapping Compress in the iPhone Files app creates an unencrypted .zip archive. To open or create encrypted ZIP archives, see how encrypted ZIP files work on iPhone.
Does Milkglass encrypt folders as well as the files inside them?
Yes. In Milkglass, each Drawer has its own random key that encrypts file bytes, file names, folder names, and thumbnails on your iPhone.
Can I access my locked folder of files when my iPhone is offline?
Files stored in On My iPhone or inside a Milkglass Drawer open without a network connection, whereas files stored only in iCloud Drive require downloading first.
Related file privacy guides
Read how to hide files on iPhone, learn how to use encrypted ZIP files on iPhone, compare On My iPhone vs iCloud Drive, or check how to lock a note on iPhone.