Hide photos · Guide

How to Password-Protect a Folder on Android: 5 Ways

Lock a folder on Android with Files by Google Safe folder, Samsung Secure Folder, Private space, Locked Folder or a vault: 2026 taps, and which take a new PIN.

Android Updated Nov 7, 2026
The short answer No Android phone can put a password on a folder where it sits, but Android has more real locked folders than any other platform — every one of them works by moving files into a protected container. On any Android 8.0 or later, Files by Google's Safe folder (Collections → Safe folder) locks any file behind a PIN or pattern you set in the app. On Samsung Galaxy phones, Secure Folder takes its own PIN, password or pattern and holds files and apps. Stock Android 15 and later adds Private space, which can use a separate lock. Google Photos Locked Folder and Samsung's Private album work too, but they open with your screen lock, so anyone who knows your phone PIN can open them. A .nomedia file only hides a folder; it locks nothing. For a folder that holds photos, videos, documents and contacts behind one code that is not your screen lock, on every brand of phone, use an encrypted vault app such as TuckVault.

Android has five ways to lock a folder, and the useful question is not “which one” but “which lock does each use” — because two of the five open with the same PIN that unlocks the phone, and the person you are hiding a folder from often knows it. This guide gives Google’s and Samsung’s current taps for each, says plainly which ones take a password of their own, and ends with the folder that does it on any brand.

Steps checked on Android 17 and One UI 9 in November 2026 against Google’s and Samsung’s support pages; menus may differ on older versions.

Which Android locked folders take their own password
Own password, not the screen lock?Holds any file type?Which phones
Files by Google Safe folderYesYesAndroid 8.0+, most brands
Samsung Secure FolderYesYesGalaxy only
Private spacePartlyYesStock Android 15+
Google Photos Locked FolderNoNoAndroid 6+
Samsung Gallery Private albumNoNoGalaxy, One UI 8.5+
.nomedia fileNoYesAny, hides only
TuckVault folderYesYesAny Android, and iPhone
Partly on Private space means you choose at setup between Use device screen lock and Choose new lock.

In this guide: Safe folder · Secure Folder · Private space · Locked Folder · Private album and hiding · vault folder · comparison · mistakes

1. Files by Google Safe folder: a PIN or pattern of its own

Safe folder is the locked folder most Android phones already have, and the one to use first when the folder holds documents, downloads or anything that is not a photo.

  1. Open Files by Google, scroll to Collections and tap Safe folder.
  2. Choose PIN or Pattern, enter it, tap Next, confirm it, tap Next, then Got it on the “Remember your PIN” screen.
  3. Find the files, touch and hold, tap More (⋮) and Move to Safe folder. To take one out later, open it inside Safe folder and tap Move out of Safe folder; it returns to its original location.
  4. To change the code, open Menu → Settings → Safe folder → Change lock.

Google’s Safe folder page spells out the limits: it needs Android 8.0 or later, the files are stored “in Android storage with encryption”, Back up to Google Drive is not available for them, third-party apps cannot open them and screenshots are blocked inside. The warning that matters most: “If you forget your PIN or Pattern, you can’t access your files”, and the only reset — Reset your Safe folder — deletes them permanently. Google also warns against moving the SD card or copying the encrypted files to a new phone.

What this protects: the files from anyone who knows your screen lock but not the Safe folder code, and from the gallery, search and other apps.

What it does not: a forgotten code (no recovery), and a phone that dies, since nothing in Safe folder is backed up.

2. Samsung Secure Folder: its own lock, files and apps

On a Galaxy phone, Secure Folder is the locked folder to use, because it holds both files and apps behind a lock type you choose and is built on Samsung Knox.

  1. Open Settings → Security and privacy → More security settings → Secure Folder, tap Continue, grant the permissions and sign in to your Samsung account if asked.
  2. Choose the lock type — PIN, password or pattern, with fingerprint on supported models — and turn on Reset with Samsung account when offered.
  3. Inside Secure Folder, tap More options (⋮) → Add files, or from Gallery touch and hold a photo and tap More → Move to Secure Folder. To move something out, open it in Secure Folder’s My Files, touch and hold, and tap More → Move out of Secure Folder.
  4. To take the folder off the Apps screen, go back to the same Settings path and turn off Add Secure Folder to Apps screen; to change the code, tap Lock type.

Samsung’s Secure Folder page notes that files must be in internal storage or on the SD card, not in a cloud, and that a forgotten lock is reset with Forgot → Reset and your Samsung account only if you enabled that at setup. Samsung’s own My Files app has no folder lock of its own; Samsung’s route for a private folder is Secure Folder, and the Secure Folder comparison sets it against a vault in detail.

What this protects: files and whole apps from anyone who does not know the Secure Folder code; the folder can also disappear from the Apps screen.

What it does not: anything if you reuse your screen-lock code for it, and nothing moves with you to a non-Samsung phone.

3. Private space: a second space with a separate lock

On a Pixel or other stock Android phone running Android 15 or later, Private space is a locked second profile for apps and their files, and it is the only stock option that offers a separate lock at setup.

  1. Open Settings → Security & privacy, then under Privacy tap Private space and authenticate with your screen lock.
  2. Tap Set up, then Got it; sign in with a Google Account for the space or skip it.
  3. Choose Use device screen lock or Choose new lock (pattern, PIN or password), then tap Done.
  4. To hide the space itself, open Private space from the bottom of All apps, tap its Settings icon and turn on Hide private space when it’s locked.

Google’s Private space page says the apps inside are stopped and hidden from the launcher, recents, share sheet, Settings and search while the space is locked, that their notifications are hidden, and that “files are only visible when unlocked”; files you move or copy in land in the space’s own Downloads folder. It works for the main user only and not on managed devices, and the auto-lock can be set to every time the device locks, five minutes after screen timeout, or only after a restart.

What this protects: whole apps and their files, including a file manager you install inside, behind a code that can differ from the phone’s.

What it does not: anything if you picked Use device screen lock; and it is not a folder for files from the main profile — you move them in.

4. Google Photos Locked Folder: your screen lock, not a password

Locked Folder is the right place for photos and videos you want out of the Photos grid, but it is not a password-protected folder: Google says its lock is your device screen lock.

  1. Open Google Photos, tap Collections at the bottom, then Locked and Set up Locked Folder.
  2. Authenticate with your screen lock and choose whether to turn on Back up Locked Folder.
  3. Select photos or videos, tap More (⋮) → Move to Locked Folder.

Google’s Locked Folder page states it directly: “Your Locked Folder password is the same as your device screen lock.” It also notes the items leave the grid, memories, search and albums, cannot be shared until moved out, and — if backup is off — are lost when the phone is lost, the app is uninstalled or its data is cleared. The lock-photos guide covers the photo-only options in more depth.

What this protects: photos from a scroll through Google Photos and from other apps.

What it does not: photos from anyone who knows your phone’s PIN, pattern or password — exactly the person a “password-protected folder” is usually meant to stop.

5. Samsung Private album, Hide albums and .nomedia

The remaining three options hide rather than password-protect, and one of them does not even hide reliably.

Private album (Gallery, One UI 8.5 and later, select Galaxy phones). Open Gallery, tap Menu, then Private album, follow the prompts through Security and privacy → Lock screen to pick a pattern or PIN, choose a notification style and tap Done; move photos with More → Move to private album. Samsung’s Private album page says it is “protected by your device’s security lock” — so, like Locked Folder, it opens for anyone who knows the phone’s code. The Samsung hide-photos guide covers it alongside Secure Folder.

Hide albums (Gallery). Albums → View all → ⋮ → Hide albums removes an album from view. Samsung’s hide-albums page has no lock on it and points to Secure Folder for anything that needs one.

A .nomedia file. An empty file named .nomedia in a folder tells gallery apps to skip it after a rescan. No Google page documents it, every file stays readable in any file manager, and anything already backed up to Google Photos stays backed up. It is a tidy-up, not a lock.

6. A vault folder: one password, every phone

A folder inside an encrypted vault app is the only locked folder here that takes its own code, holds photos, videos, documents and contacts together, and works the same on a Galaxy, a Pixel, any other Android and an iPhone.

TuckVault's unlock screen asking for the vault PIN or pattern, separate from the phone's screen lock. The vault’s PIN or pattern is set separately from the screen lock; the iPhone screen is shown, and the Android app uses the same lock.

In TuckVault you set a PIN or pattern that is not your screen lock and a recovery text in case you forget it, create a folder and add the files, then delete the originals and empty the gallery’s trash. The app encrypts the files with AES-256 on the device and sends nothing to TuckVault’s servers; the document vault page covers scans, PDFs and IDs, and the secret folder guide covers the hiding half.

What this protects: everything in the folder from a screen-lock holder, from the gallery and from file managers, because the copies are encrypted and the originals are gone.

What it does not: an original you left in Downloads or in Google Photos’ backup. TuckVault has no decoy vault, no break-in alerts and no fingerprint unlock, and a forgotten PIN or pattern is reset only with your recovery text — TuckVault cannot reset it.

Which locked folder uses which lock

Safe folder, Secure Folder and a vault take a code of their own; Private space can; Locked Folder and Private album reuse the screen lock; Hide albums and .nomedia have no lock at all.

Locked folderPhonesLockSeparate from the screen lock?HoldsIf you forget the code
Files by Google Safe folderAndroid 8.0+PIN or pattern set in the appYesAny fileFiles lost; reset deletes them
Samsung Secure FolderGalaxyPIN, password or patternYesFiles and appsSamsung-account reset, if enabled at setup
Private spaceStock Android 15+Device lock or a new oneYour choiceApps and their filesScreen-lock recovery only
Google Photos Locked FolderAndroid 6+Device screen lockNoPhotos, videosSame as the phone
Samsung Gallery Private albumGalaxy, One UI 8.5+Device security lockNoPhotos, videosSame as the phone
Hide albums / .nomediaAnyNone—Hidden, not locked—
TuckVault folderAny Android, iPhonePIN or patternYesPhotos, videos, documents, contactsRecovery text you set

Choose by the “separate” column. If the person you are keeping out does not know your screen lock, Locked Folder is fine for photos. If they do, use Safe folder, Secure Folder, a separately locked Private space, or a vault.

Common mistakes

  • Using Locked Folder or Private album against someone who knows your PIN. Google and Samsung both say these open with the device lock.
  • Setting the same code on Secure Folder or Private space as on the screen. The option exists; it defeats the point.
  • Trusting .nomedia or Hide albums as a lock. Both only hide; a file manager shows everything.
  • Forgetting that Safe folder has no recovery and no backup. Note the PIN, and keep a copy of anything irreplaceable somewhere encrypted.
  • Moving files into a vault and leaving the originals. Delete them from the gallery and from its trash, and check Google Photos’ backup.

If the folder holds a mix — photos, a scanned ID, a PDF, a few contacts — and the person you are keeping out knows your phone’s PIN, the honest answer is a container with its own code. Download this secure vault for free, set a PIN or pattern that is not your screen lock, make the folder there and move the originals out.

Download this secure vault for free

TuckVault keeps your private photos, videos, documents and contacts behind a PIN or pattern with AES-256 encryption on your device — and cleans up duplicates, large videos and messy contacts on the same phone. Free on iPhone and Android.

Frequently asked questions

Can you password protect a folder on Android?

Yes, by moving it into a locked container; Android has no setting that puts a password on a folder in place. Files by Google's Safe folder locks any file behind a PIN or pattern set in the app, Samsung Secure Folder takes its own PIN, password or pattern, and Private space on Android 15 or later can take a separate lock. Google Photos Locked Folder also works but uses your screen lock.

How do you put a password on a folder on Android?

Open Files by Google, scroll to Collections, tap Safe folder, choose PIN or Pattern, enter it twice and tap Got it. Then open the folder, select the files, tap More and Move to Safe folder. Google's page says a forgotten PIN or pattern means you cannot access the files, and that Back up to Google Drive is not available inside the Safe folder, so note the code somewhere safe.

How can I lock a folder in Android without any software?

Use what is already on the phone: Files by Google's Safe folder on most Android phones, Secure Folder on a Samsung Galaxy, or Private space on a Pixel or other stock phone running Android 15 or later. None needs a download. The one trick that needs no app at all, a .nomedia file, only hides a folder from gallery apps and leaves every file readable in a file manager.

What happens if I forget my Safe folder PIN or pattern?

The files are gone. Google's Safe folder page says that if you forget your PIN or pattern you cannot access your files, and the only way out is Menu → Settings → Safe folder → Reset your Safe folder, which permanently deletes everything inside. Secure Folder can be reset with your Samsung account if you turned that on at setup; TuckVault resets a forgotten PIN or pattern with the recovery text you set during setup.

Is a password-protected folder the same as an encrypted folder?

No. A lock controls who can open the folder through the app; encryption scrambles the files themselves so they are unreadable without the key. Files by Google says Safe folder files sit in Android storage with encryption, Samsung Secure Folder is built on Knox, and TuckVault applies AES-256 on the device. A folder hidden with .nomedia, or an album hidden in Gallery, is neither locked nor encrypted.

How to lock a Google Drive folder in Android?

You cannot: Google Drive has no folder password, only sharing permissions, and anyone signed in to your Google Account on any device can open every folder. Keep a document behind a separate code by moving it off Drive into Files by Google's Safe folder, Samsung Secure Folder, or an encrypted document vault on the phone, and remove the Drive copy.

Free on iPhone and Android

Download this secure vault for free

QR code that opens TuckVault in your phone's app store
Scan with your phone's camera. It opens the App Store on iPhone and Google Play on Android.

Or open the store page:

TuckVault was formerly CleanUp Buddy: same app, same store listing.