Why Can't I See My Pictures in My Gallery?
In this article
If your photos are missing from the Gallery app, the most common causes are hidden files, a corrupted cache, or the photos being stored in a location the app isn't scanning. This guide walks through the typical reasons and the step-by-step fixes to get your pictures back on screen.
How Gallery Apps Work
Gallery apps don't actually store your photos. They are viewers that scan your device's storage for image files and display them in a grid. On Android, the system uses a media scanner that indexes all images and videos. The Gallery app then queries this index to show you thumbnails. On iOS, the Photos app manages both the library and the storage, but similar scanning and indexing principles apply. If the index is outdated or corrupted, your photos can be invisible even though the files are still on the device.
Common Reasons Photos Disappear
- Hidden folders: Apps like WhatsApp or Instagram create folders with a
.nomediafile to hide their images from the gallery. If this file is accidentally placed in a folder with your personal photos, they will be hidden. - Corrupted cache or data: The Gallery app's cache can become corrupted, preventing it from displaying the correct list of images.
- Storage permission issues: After a system update or app reinstall, the Gallery app might lose its permission to read your storage, so it shows an empty grid.
- Cloud sync errors: If you use Google Photos or iCloud, photos might be “freeing up space” by removing local copies, leaving only a cloud version that hasn't downloaded yet.
- Accidental deletion: A photo can be moved to the “Recently Deleted” or “Trash” folder, which is not visible in the main gallery view.
- File corruption: A partially downloaded or corrupted image file may not be recognized by the media scanner, so it's skipped.
Step-by-Step Fixes to Try
- Check the “Recently Deleted” folder: Open the Gallery app and look for a menu option like “Trash” or “Recently Deleted.” Photos are often kept there for 30 days before permanent deletion.
- Restart the phone: This forces the media scanner to re-run and can pick up files that were missed.
- Clear the Gallery app's cache: Go to Settings > Apps > Gallery > Storage, then tap “Clear Cache” (not “Clear Data,” which might remove your custom albums).
- Check for .nomedia files: Use a file manager app to navigate to the folder where your photos are stored. If you see a file named
.nomedia, delete it. Then restart the phone. - Verify storage permissions: Go to Settings > Apps > Gallery > Permissions and ensure “Storage” or “Photos and videos” is set to “Allow.”
- Force rescan: Some devices have a “Rescan SD card” option in the storage settings. On others, you can install a third-party app like “Rescan Media” to trigger a fresh scan.
- Check cloud sync settings: If you use Google Photos, open the app and look for “Back up & sync.” If your photos are only in the cloud, they won't show in the local Gallery app unless you download them.
Why Photos Are on the Device but Not in the Gallery
This is the most confusing scenario. The files exist—you can see them in a file manager—but the Gallery app doesn't show them. The usual culprit is a .nomedia file in that folder. This file is a simple text file that tells Android's media scanner to skip the directory. It's often placed by messaging apps to keep their images out of your main gallery. If you've moved photos into a folder that already has this file, they'll be invisible. Another cause is that the media scanner hasn't finished indexing, especially after a large file transfer. In that case, waiting a few minutes or restarting the phone usually fixes it.
When Your Photos Are Stored on an SD Card
If your device uses an SD card, the card might be unmounted or corrupted. Go to Settings > Storage and check if the SD card is listed. If it says “Unmount” or “Eject,” tap it to remount. If the card is corrupted, the phone may not read it at all, and the Gallery will show nothing. You can try removing the card and inserting it into a computer to see if the files are still there. If they are, copy them to internal storage, then reformat the card (but be aware that reformatting erases everything). Also, some phones have a setting that hides the SD card's media files when the card is being used as “portable storage” versus “internal storage.”
Comparing Gallery Apps and File Managers
The default Gallery app is often basic. If it's not showing your photos, try a different gallery app like Google Photos or Simple Gallery. These apps sometimes have more robust scanning and can display files that the default app misses. However, if the problem is a hidden folder, any gallery app will ignore it unless you explicitly change its settings. A file manager app (like Files by Google) will always show all files, regardless of the .nomedia flag, which is why it's a useful tool for diagnosing the problem. If you see the photos in a file manager but not in any gallery app, the issue is almost certainly a hidden folder or a scan failure.
How to Prevent Future Disappearances
- Keep your photos in the default DCIM/Camera folder. Avoid moving them to random folders on the SD card.
- Be cautious when using “Cleaner” apps. They sometimes delete files they shouldn't, including photos.
- Back up regularly. Use Google Photos or a cloud service so that even if local files are lost, you have a copy.
- Don't manually add .nomedia files unless you specifically want to hide a folder.
- Update your Gallery app to the latest version, as bugs are often fixed.
Frequently Asked Questions
Why did my photos disappear after an update?
System updates can reset permissions or cause the media scanner to fail. Try clearing the Gallery app's cache and restarting your phone. If that doesn't work, check your storage permissions and ensure the app has access to your photos.
Can I recover photos that are not in the gallery but are in a file manager?
Yes. If you can see the files in a file manager, they are not deleted. Copy them to a folder like DCIM/Camera and restart your phone. They should then appear in the Gallery app.
What is a .nomedia file and how do I remove it?
A .nomedia file is a zero-byte file that tells Android to skip a folder during media scanning. To remove it, use a file manager to navigate to the folder, find the file, and delete it. Then restart your phone.
Why are my photos in Google Photos but not in my Gallery app?
This happens when “Free up device storage” is enabled. The original photo is removed from your device and only a cloud copy remains. To see it in the Gallery app, you need to download it back from Google Photos.
My gallery shows a gray box instead of the photo. What does that mean?
A gray box usually indicates a corrupted thumbnail or that the original file is missing. Try clearing the Gallery app's cache. If that doesn't work, the file itself may be corrupted and may not be recoverable.