To hide files on Android, open Files by Google, tap Safe folder under Collections and set a PIN or pattern. Then touch and hold a file and tap More > Move to Safe folder. Samsung phones add Secure Folder; Pixels on Android 15 or later add Private space. A dot before a folder name hides it but does not lock it.
Scans of your passport, bank statements, a contract, a folder of downloaded PDFs: these are the files people most want out of sight on a shared or borrowed phone. Android makes it easy to "hide" a file, but most of the easy ways only hide it from view. This guide shows the ways that put files behind a lock, which brands have which, and the one trick you should not trust.
If your question is about pictures and videos, hiding photos on Android covers Google Photos and the gallery apps in more detail.
Method 1: Files by Google Safe folder
Safe folder is the most widely available option. It lives in Files by Google, which comes preinstalled on Pixel and many other phones and is free on the Play Store for the rest, including Samsung and Xiaomi. It needs Android 8.0 or later and has its own PIN or pattern, separate from your phone's lock.
To set it up:
- Open Files by Google and scroll down to Collections.
- Tap Safe folder.
- Choose PIN or Pattern, enter it, then confirm it.
- Tap Next, then Got it.
To move files in:
- Find the file in Files by Google.
- In grid view, touch and hold the file (or several), tap More, then Move to Safe folder. In list view, tap More next to the file, then Move to Safe folder.
- Enter your PIN or draw your pattern.
To take a file out, open Collections > Safe folder, unlock, tap More next to the file and choose Move out of Safe folder. It goes back to its original location. Stay in the app until the move finishes: leaving cancels it.
The limits, from Google's own help page:
- If you forget the PIN or pattern, you cannot get the files back. Resetting Safe folder deletes them for good.
- You cannot share files from Safe folder or back them up to Google Drive, and other apps cannot open them while they are inside.
- Google warns against clearing the app's storage or cache with other apps, which can cost you access.
- You can hide files, not installed apps.
Method 2: Samsung Secure Folder
On a Galaxy phone, Secure Folder is a separate, locked area with its own copy of My Files, Gallery and any apps you add to it.
- Open Settings > Security and privacy > More security settings > Secure Folder and follow the prompts. Choose a PIN, pattern or password, and turn on Reset with Samsung account so you can get back in if you forget it.
- Open the Secure Folder app, tap More options (three dots), then Add files, and pick the files from your phone.
- To take a file out, open My Files inside Secure Folder, touch and hold the file, then tap More > Move out of Secure Folder.
Under Lock type in Secure Folder settings you can add fingerprint unlock on supported phones, and Auto lock Secure Folder decides when it locks again. You can also take its icon off the Apps screen: turn off Add Secure Folder to Apps screen in the same settings page from step 1, and use the Secure Folder tile in Quick Settings to bring it back.
Samsung says Secure Folder makes no new backups from One UI 8 on (phones updated to One UI 8 can only restore older ones), so treat it as a place to keep files, not a place to store your only copy.
Method 3: Private space (Android 15 and later)
Pixel phones and many other phones on Android 15 or later, including Android 16 and 17, have Private space: a separate, locked area with its own apps and its own storage. Not every brand offers it: Samsung phones use Secure Folder instead.
- Open Settings > Security & privacy and, under Privacy, tap Private space.
- Tap Set up and choose Choose new lock, so the space has a different PIN from your phone.
- Open Private space at the bottom of your app list. On a Pixel it includes its own Files app.
- On recent versions (Android 16 QPR2 and later), tap + Add > Add files to bring files in. Move removes them from your main storage; Copy leaves the originals where they were. Either way they land in the Downloads folder inside Private space.
Turn on Hide private space when it's locked in its settings so it does not even show in your app list. Keep in mind that deleting Private space deletes all its files, and they are not in your phone's backup.
The dot trick, and why it is not protection
The tip you will find everywhere: rename a folder so it starts with a dot (for example .private), or put an empty file called .nomedia inside it. Galleries and most file managers then skip it.
It works only until someone looks. Samsung's My Files shows everything after More > Settings > Show hidden system files, other file managers have a similar switch, and a computer connected with a USB cable lists the folder like any other. Use it to tidy up, not to protect anything.
Method 4: FileLock, a locked folder for any file
The built-in options each have a catch: Safe folder makes you move a file out before another app can use it, Secure Folder is Samsung-only, and Private space needs Android 15 or later and is not on every brand. FileLock is a vault app for any phone on Android 8.0 or later. It opens with a 4-digit passcode of its own, plus fingerprint or face unlock if you want, and lets you work with the files without taking them out.
- Real folders. Folders and subfolders, list or grid view, sort, search, rename, move, copy, zip and unzip, and a Trash.
- Open files inside the vault. A PDF reader, a text editor, a photo viewer and a video and music player are built in.
- Scan straight in. Scan Document saves paper documents into FileLock as a PDF or as images, never into your gallery.
- Tools on the phone. Images to PDF, Merge PDFs, Compress PDF, Image to Text and more run without uploading anything. Lock PDF, which puts a password on the PDF file itself, needs FileLock PRO.

To move your files in:
- Install FileLock and set a passcode.
- Tap + and choose Files, then pick the documents. You can also share a file to FileLock from another app.
- Tap + > New Folder to make folders such as Passports & IDs, and move the files into them.
- Delete the originals in your file manager, and empty its trash if it has one. FileLock copies files in; it cannot delete the originals for you.
To bring files from a computer, tap + > From Computer and follow the steps for a USB cable. Files you add this way land in the Computer Shared folder, so move them into another folder to keep them behind your passcode.

Before you rely on it: in Settings > Ask for passcode, choose Always so FileLock locks as soon as you leave it. There is no account and no cloud, so your files stay on the phone and deleting the app deletes them: export anything you need first. Nobody, including us, can recover a forgotten passcode. FileLock is free with a daily allowance on imports, new folders and tool runs, and FileLock PRO removes every limit.
Which one should you use?
For a handful of documents you rarely open, Safe folder in Files by Google is free and on most phones already. On a Galaxy, Secure Folder is the strongest built-in choice. If you want folders you can organise, files you can open and edit without moving them out, and the same app on any brand, use FileLock. Keeping files on a PC too? See how to password protect a folder in Windows 11.
Frequently asked questions
What happens if I forget my Safe folder PIN?
You lose access to the files. Google cannot reset it for you, and resetting the Safe folder permanently deletes everything in it.
Does a dot at the start of a folder name hide it?
It hides the folder in galleries and in most file managers, but anyone can switch on hidden files in a file manager's settings, and a computer connected over USB shows it. It is not a lock.
Can other apps open files I have hidden?
Not from Safe folder, where third-party apps cannot open the files until you move them out. In Secure Folder and Private space, only apps installed inside the space can reach them.
Are hidden files backed up?
Usually not. Safe folder has no Google Drive backup, Private space data is not part of your phone backup, Secure Folder on One UI 8 no longer makes new backups, and FileLock keeps files only on the phone. Keep a copy of anything important somewhere safe.