Why Hide Files on Android?
Everyone has files they'd rather keep private — personal photos, financial documents, surprise gift planning, private notes, or simply folders they don't want cluttering their gallery. Android provides a simple, built-in mechanism for hiding files that doesn't require root, special apps, or encryption.
The method is straightforward: any file or folder whose name starts with a dot (.) is hidden by default on Android. This is inherited from Linux/Unix conventions — dot-prefixed items are "hidden" system files. Gallery apps, media players, and most file managers skip them entirely.
AnExplorer gives you full control over this mechanism: hide files by renaming, toggle visibility on/off, and create .nomedia files to exclude folders from media scanning.
Method 1: Dot-Prefix Hiding (Files and Folders)
The simplest and most effective method:
Hiding a folder
- Open AnExplorer → navigate to the folder you want to hide
- Long-press the folder → tap Rename
- Add a dot (.) at the beginning:
Private Photos→.Private Photos - The folder immediately disappears from gallery apps and most file managers
Hiding individual files
Same process for individual files:
- Long-press the file → Rename
- Add dot prefix:
document.pdf→.document.pdf - File becomes invisible
Viewing hidden files in AnExplorer
To access your hidden files:
- AnExplorer → ☰ → Settings → Show hidden files → enable
- All dot-prefixed files and folders become visible (shown slightly dimmed)
- Browse, open, copy, move — full management of hidden items
- Toggle off again when done to re-hide them
Unhiding files
To make files visible again permanently:
- Enable "Show hidden files" in AnExplorer settings
- Find the hidden file/folder
- Long-press → Rename → remove the dot prefix
- File is now visible everywhere again
Method 2: .nomedia File (Hide from Gallery Only)
If you want files to remain visible in file managers but hidden from the Gallery, Music, and Video apps:
- Open AnExplorer → navigate to the folder you want to hide from media apps
- Create a new empty file named exactly
.nomedia(dot + nomedia, no extension) - The Gallery app stops scanning this folder — photos/videos inside won't appear in your gallery
- The files remain fully visible and accessible in AnExplorer
How to create .nomedia:
- In AnExplorer, navigate to the target folder
- Tap ⋮ → New → File
- Name it
.nomedia(include the dot) - Save — the file can be empty (0 bytes)
Use cases for .nomedia:
- Hide WhatsApp memes from your photo gallery (add .nomedia to WhatsApp Images folder)
- Hide app assets (stickers, cached images) from gallery
- Keep work documents folder out of media scanning
- Hide downloaded content that clutters your gallery
To reverse: Delete the .nomedia file from the folder. The gallery will re-scan and show the media again (may take a few minutes or a device restart).
Method 3: Move to a Hidden Location
For maximum privacy, combine hiding with an obscure location:
- Create a hidden folder in a non-obvious location:
- Internal Storage → Android →
.private(hidden inside the Android system folder) - Or: Internal Storage →
.system_cache(looks like a system folder)
- Internal Storage → Android →
- Move your private files into this hidden folder
- Disable "Show hidden files" in AnExplorer
Now the files are:
- Hidden (dot prefix)
- In a non-obvious location (not in DCIM, Pictures, or Downloads)
- Named to look like a system folder (discourages casual browsing)
What Hiding Does NOT Protect Against
Be honest about limitations:
| Threat | Hidden files protect? | What to use instead |
|---|---|---|
| Casual viewing (someone borrowing your phone) | ✅ Yes | Hiding is sufficient |
| Gallery/media app scanning | ✅ Yes | .nomedia or dot-prefix |
| Someone using AnExplorer with "show hidden" on | ❌ No | Encryption or secure folder |
| Phone theft (data extraction) | ❌ No | Full-disk encryption (enabled by default on Android 10+) |
| Forensic analysis | ❌ No | Nothing short of secure deletion |
| Cloud backup scanning | ❌ No | Exclude folder from backup |
Bottom line: Hiding is privacy from casual access — someone scrolling your gallery or glancing at your files won't see hidden items. It's NOT security against determined access. For true security, use encryption.
Hiding Specific Content Types
Hide photos from gallery
The most common use case — keep private photos out of the gallery app:
- Create a folder: Internal Storage →
.Private_Photos - Move private photos into this folder
- Add a
.nomediafile inside (belt and suspenders) - Photos are now invisible in Gallery, Google Photos, and any media scanner
Hide videos
Same approach as photos:
- Create
.Private_Videosfolder - Move videos inside
- Add
.nomediafile - Videos won't appear in any video player's library scan
Hide documents
Documents don't appear in gallery, but you may want to hide them from file manager browsing:
- Rename folder:
Financial→.Financial - Documents inside are hidden when "Show hidden files" is off
- Access anytime by toggling the setting in AnExplorer
Hide downloaded files
The Downloads folder is visible to many apps. To hide specific downloads:
- Create
.archivefolder inside Downloads - Move sensitive downloads there
- Hidden from casual browsing but accessible via AnExplorer
Tips for Effective File Hiding
- Use meaningful hidden folder names —
.Private,.Vault,.Archive— so YOU can find them easily - Don't hide system folders — renaming system folders with dots can break apps
- Remember your hidden files exist — before factory reset, unhide and back up
- Combine with app lock — lock AnExplorer itself with a PIN (via Android's app lock feature) for an extra layer
- Don't rely on hiding alone for sensitive data — use encryption for truly confidential files
- Test after hiding — open Gallery and verify the files no longer appear
Related Guides
- Access Hidden Files — find and manage hidden files
- Fix File Permissions — storage access issues
- Memory Cleaner — find hidden files consuming storage
- Transfer Android to PC — back up private files securely
