Hide or Unhide Files on Android Without an App
In this article
You can hide files on Android without any app by adding a dot (.) to the start of the file or folder name, and you can unhide them by renaming them back. This built-in method works on most Android file managers and is the simplest way to keep files out of your main gallery or file list, though it does not encrypt or securely protect them.
How the Dot-Prefix Method Works
Android is built on Linux, and in Linux systems, any file or folder whose name begins with a dot is treated as a hidden file. The system and most file manager apps simply skip these files when showing normal directory listings. When you rename a file from vacation.jpg to .vacation.jpg, it disappears from the default view in apps like Google Files, Samsung My Files, and the stock Android file manager. To see it again, you need to enable the “Show hidden files” option in the app’s settings or menu, which is usually a toggle in the overflow (three-dot) menu.
This method is universal and requires no third-party software. It works on both internal storage and SD cards, and it applies to any file type—photos, videos, documents, or entire folders. The dot-prefix trick is also reversible: just rename the file or folder to remove the leading dot, and it will appear again in normal listings.
Step-by-Step: Hiding a File or Folder
- Open your preferred file manager app (Google Files, Samsung My Files, or any other).
- Navigate to the location of the file or folder you want to hide.
- Long-press the file or folder to select it, then tap the “Rename” option (often a pencil icon).
- Add a dot (.) at the very beginning of the name, before any existing characters. For example,
notes.txtbecomes.notes.txt. - Tap “OK” or “Save.” The file will immediately disappear from the current view.
To hide an entire folder, do the same on the folder name. For instance, renaming a folder called Private to .Private will hide all its contents.
How to Unhide Files
Unhiding is just as simple. You need to make hidden files visible first, then rename them to remove the leading dot.
- Open your file manager and go to the menu (usually three horizontal lines or three dots).
- Look for a setting called “Show hidden files” or “Show hidden.” Toggle it on.
- Now you will see all files and folders that start with a dot, but they may appear faded or with a different icon.
- Long-press the hidden file or folder and choose “Rename.”
- Delete the dot at the beginning of the name and save. The file will now appear in normal listings again.
If you do not see the “Show hidden files” option, check the app’s settings or use the search function in the file manager—many apps allow you to search for a file even if it is hidden, and you can then rename it from the search results.
When the Dot Method Is Not Enough
The dot-prefix trick hides files from casual browsing, but it does not provide any real security. Anyone who knows the trick can reveal the files by enabling “Show hidden files.” It also does not protect against apps that scan all files regardless of the dot, such as media players that index all audio files or photo galleries that use the MediaStore database. For example, some gallery apps may still show hidden photos because they rely on Android’s media scanner, which often ignores the dot-prefix rule. To truly hide media files from gallery apps, you may need to add a file named .nomedia inside the folder (see below).
If you need actual privacy—like preventing someone with access to your phone from seeing the files—you should use encryption. Android’s built-in “Secure Folder” (on Samsung) or “Private Space” (on stock Android) uses encryption and requires a separate PIN or biometric authentication. These features are not just hiding; they encrypt the data so it is unreadable without the key.
The .nomedia Trick for Media Files
If your goal is to keep photos, videos, or music out of the default gallery and player apps, the dot-prefix method alone may not work. Instead, create a folder named .nomedia inside the directory that contains the media files. Android’s media scanner will see that marker and skip scanning that folder, so the files will not appear in the gallery, music player, or other media apps. This is a common trick used by apps to hide their own media.
To use it: create a new folder called .nomedia (with the dot) inside the folder where your media is stored. For example, if your photos are in /DCIM/Camera, you can move them to a subfolder like /DCIM/Camera/Private and then create /DCIM/Camera/Private/.nomedia. After that, the media scanner will ignore the Private folder. You may need to restart your phone or clear the media storage cache for the change to take effect.
Note that this does not hide the files from file managers—they will still appear in normal file listings. To hide them from file managers too, combine the .nomedia trick with the dot-prefix on the folder name (e.g., name the folder .Private).
Common Problems and Fixes
- Files still appear in gallery after renaming with a dot: This happens because the media scanner has already indexed the files. Use the
.nomediatrick or clear the cache of the gallery app (Settings > Apps > Gallery > Storage > Clear Cache). - “Show hidden files” option not available: Some third-party file managers hide this option deep in settings. Try a different file manager like Google Files, which has a clear toggle in the menu. Alternatively, use a file manager that supports a “Hidden” section (e.g., Solid Explorer).
- Cannot rename a file because it is in use: Close any app that might be using the file, such as a media player or document viewer, then try again.
- Hidden files still visible in a specific app: Some apps use their own file browsing code that ignores the dot-prefix. In that case, move the file to a folder that the app does not scan, or use the
.nomediatrick. - Accidentally hid a folder and now cannot find it: Enable “Show hidden files” in your file manager, then rename the folder to remove the dot. If you don’t know where it is, use the file manager’s search function—it usually searches hidden files too.
Alternatives: Built-in Android Features
Modern Android versions include a feature called “Private Space” (introduced in Android 15) that creates a separate, encrypted profile on your phone. You can move apps and files into this space, and it requires authentication to access. Similarly, Samsung phones have “Secure Folder,” which uses Knox security to create an encrypted vault. These are the most secure built-in options, but they are only available on certain devices and Android versions.
Another alternative is to use a file manager that supports a built-in “Hide” feature, such as Solid Explorer or MiXplorer. These apps often store hidden files in a special vault that requires a password, but they are not system-level and may not protect against apps that access the storage directly.
Costs and Safety of the Dot-Prefix Method
The dot-prefix method is completely free and requires no additional software. It is safe in that it does not modify the file contents or risk data loss—renaming is a reversible operation. However, it is not a security measure. If you hide sensitive documents, passwords, or personal photos, anyone with basic Android knowledge can reveal them. For true protection, use encryption via Android’s built-in features or a reputable third-party encryption app (though the question specifically asks for no-app solutions, so the built-in Private Space or Secure Folder are the only truly secure options without installing anything).
Additionally, be aware that when you hide a file, it still takes up storage space, and it may still be included in backups (e.g., Google Photos backup if the folder is synced). If you want to exclude hidden files from cloud backups, you may need to adjust the backup settings.
Frequently Asked Questions
Will hidden files be deleted if I clear my phone's storage?
No, hiding a file does not delete it. It only changes the name, so the file remains in the same location. Clearing storage (e.g., factory reset) will delete all files, hidden or not, so always back up important data.
Can I hide files on an SD card using the dot method?
Yes, the dot-prefix trick works on any file system that Android can read, including SD cards (usually exFAT or FAT32). The method is the same: rename the file or folder on the SD card with a leading dot.
Why does my gallery still show hidden photos after I renamed them?
As mentioned, the media scanner may have already indexed those photos. Use the .nomedia trick or clear the gallery app's cache. Also, some gallery apps ignore the dot-prefix and scan all files; in that case, move the photos to a folder with a .nomedia file.
Is there a way to hide files without renaming them?
Yes, you can use the .nomedia trick to hide media files from gallery and music apps without renaming them. For file managers, you can also use the “Hide” feature in some third-party file managers, but that is an app. Without any app, renaming is the only universal method.
Can I hide files on Android using a PC?
Yes, you can connect your Android device to a PC via USB and rename files or folders by adding a dot at the beginning. This works the same way as on the phone. You can also create a .nomedia file from your PC.