Hidden folder on Android: how to create one and how to open it
Short answer. There are two ways to make a hidden folder on Android: put a dot at the start of the folder's name, or drop an empty file called .nomedia inside it. Your gallery then stops showing the photos and videos in that folder. The files stay where they are, and a file manager will still find them. That is enough to take pictures out of your feed. If someone who knows how to open a file manager might pick up your phone, you need protection with a code: jump to that section.
What you need
A file manager that can create and rename folders. The one that came with your phone will do, and so will Files by Google. You don't have to install anything.
Where to create the folder
In the root of internal storage, next to DCIM, Download and Pictures but not inside them. The path looks like this: Internal storage, then ".Private". Android's own media scanner (AOSP) has a rule that deletes a stray .nomedia file in standard folders such as DCIM and Pictures. A folder you create there quietly stops being hidden.
How to make a hidden folder with a dot in the name
- Create a folder in the root of internal storage, for example "Private".
- Rename it with a dot at the start: ".Private". If your file manager won't accept that name, try a different file manager.
- If the folder vanishes from the list, turn on "show hidden files" in the file manager's settings. That is how it should work: Android treats a folder that starts with a dot as hidden.
- Select your photos and videos, tap Move, open the new folder and confirm.
Android does not add the contents of that folder to its media list, so the gallery doesn't show them.
How to hide photos and videos with a .nomedia file
- Create an ordinary folder in the root of internal storage.
- Inside it, create an empty file named .nomedia. The leading dot is required, and the file has no extension.
- Move your photos and videos into the folder.
Android Developers documentation describes it this way: a .nomedia file tells the media scanner to skip the folder and all of its subfolders. If your file manager can only create folders and not files, use the dot-in-the-name method instead.
How to check that photos are hidden from the gallery?
Close the gallery completely and open it again: the photos from the folder should be gone from every album. In a file manager with hidden files shown, the folder is still there and the files inside open. Still see them in the gallery? Restart the phone, and if that does not help, use your phone’s built-in protected folder.
- Close your gallery completely and open it again. The photos from that folder should be gone from every album.
- Open the file manager (with hidden files shown). The folder is there, all the files are inside, and they open.
- If you hid videos, open the player you normally use. A player that lists whole folders will still find them.
- Photos still in the gallery? Restart the phone. If that doesn't help, your phone's gallery reads files its own way. Use the protected folder that comes with the phone: step by step for Samsung, Xiaomi, Pixel and Huawei.
What stays in plain sight
- A copy in Google Photos. If cloud backup was on before you moved the files, the photos are already online and stay in the Google Photos app. Moving the folder does not clear the cloud.
- Screenshots and new pictures. A screenshot of a hidden photo lands in the shared screenshots folder and shows up in the gallery.
- File managers and other apps. Any app with file access can see the folder.
- WhatsApp. Its photos and videos go to the gallery as a separate album. The next section covers them.
How to hide WhatsApp photos and videos from your gallery
These are the steps from WhatsApp's help center for Android.
- All chats. Open WhatsApp, tap the menu (three dots), then Settings, then Chats, and turn off Media visibility.
- One chat. Open the chat, tap the contact's name at the top, find Media visibility and choose No.
The setting applies to files downloaded after you turn it off. What already reached the gallery stays there: remove it from the gallery by hand or move it into a hidden folder. Photos and videos from chats with disappearing messages never reach the gallery anyway. You can turn visibility back on at any time with the same switch.
Hidden folder with a password: when you need a code
If the phone holds something nobody should see, a hidden folder is not enough. You need to sign in with your own code, and you need encryption. In ZeroBox, photos and videos open with a separate PIN that is different from your screen lock. The files and their names are encrypted (AES-256), and once moved they are gone from the gallery. It needs Android 13 or newer, and the first 30 days are free through Google Play.
ZeroBox: private photo and video vault.
The app has no internet permission, no account, no cloud and no ads. You can't take a screenshot inside ZeroBox. A second PIN opens a separate vault, and the icon can be swapped for a calculator or another app (75 options in all).
How to open a hidden folder
- A folder with a dot in its name: turn on "show hidden files" in the file manager's settings and the folder appears in the list.
- A folder with .nomedia: it's visible right away, like any other. Look for it in the root of storage.
- To bring the photos back to the gallery: remove the dot from the name, delete the .nomedia file, or move the files into DCIM or Pictures. Then close and reopen the gallery.
Forgot where you put your photos? There is a search order for that: how to find hidden photos and videos on Android.
Who will be able to see your photos
Someone who picks up your unlocked phone will open the gallery and find nothing. If they open a file manager, they will see the folder: at once if it holds a .nomedia file, and after one tick in the settings if it has a dot in the name. A hidden folder asks for no code and encrypts nothing. It suits pictures of documents, gifts and work screenshots you'd rather not see in your feed.
Lock your private photos and videos behind a PIN of your own: add them to ZeroBox. How to hide photos and videos in ZeroBox
Frequently asked questions
How do I hide videos from the gallery on Android?
Put the video in a folder with a dot in its name or with a .nomedia file inside: the rule works for every kind of media. Then open the player you watch videos with. A player that shows folders on its own will still find them.
How do I make a hidden folder with a password?
A folder with a dot or a .nomedia file can't be closed with a password. For a code you need a vault: in ZeroBox, photos and videos open with a separate PIN and the files are encrypted.
Does a hidden folder delete my photos?
No. The files stay where they are, and the gallery simply stops picking them up from Android's media list. Remove the dot or the .nomedia file and the photos come back.
Can I hide a folder from the file manager too?
A folder with a dot in its name is hidden in the file manager by default, but showing hidden files takes a single tick. To keep files from opening without a code, you need an encrypted vault.
Why are my photos still in the gallery on my phone?
Some manufacturers' galleries read files their own way and ignore .nomedia. Use your phone's built-in protected folder or a ZeroBox vault.
Hidden folder or vault: which should I pick?
A hidden folder takes pictures out of your feed and costs nothing. A vault is for files that should open only with a code. All the methods side by side: how to hide photos and videos on Android.
How to create a .nomedia file on Android?
Open a file manager, go to the folder you want in the root of internal storage and create an empty file named .nomedia inside it: the leading dot is required and there is no extension. If your manager only creates folders, put a dot at the start of the folder name instead.