Hide Audio Files in Android Music Player Apps
In this article
Yes, you can hide audio files from Android music player apps, and the most reliable method is adding a file named .nomedia to the folder containing those files. This tells Android's media scanner to ignore that folder, so music players and gallery apps won't list the files inside it. Below is a complete guide covering why this happens, how to do it, and what to do when it doesn't work.
Why Music Players Show Every Audio File
Android uses a system-wide media scanner that indexes all audio, video, and image files on your device. When you open a music player, it reads this index (the MediaStore database) rather than browsing your storage directly. Any audio file in a folder that the scanner has indexed will appear in your library—even if it's a notification sound, a voice memo, an audiobook, or a private recording you'd rather keep out of your main playlist.
The scanner runs automatically after boot, after you connect storage, or when files are added. It respects a special marker: a file named .nomedia. If a folder contains this file, the scanner skips that folder and all its subfolders. This is the standard, built-in mechanism—no third-party app required.
How to Hide Audio Files with .nomedia
You can create a .nomedia file using any file manager app that lets you create new files. The steps are essentially the same across most file managers:
- Open your file manager and navigate to the folder containing the audio files you want to hide.
- Create a new file (usually via a menu button or a "+" icon) and name it exactly
.nomedia—no extension, no spaces, no capitalization. - If your file manager doesn't allow creating files, copy an existing
.nomediafile from another folder, or use a text editor to save an empty file with that name. - After creating the file, restart your music player app, or force-stop it and reopen it. The hidden files should no longer appear.
If the files still show up, you may need to clear the media store cache. Go to Settings → Apps → Show all apps → Media Storage → Storage & cache → Clear cache (not "Clear storage", which would erase your media index entirely and require a rescan). Then restart your device or wait for the scanner to rebuild the index. This step is often necessary because the scanner may have already indexed the files before the .nomedia file was added.
What .nomedia Does and Doesn't Do
The .nomedia file is a simple zero-byte file. It doesn't encrypt or move your files; it only prevents the media scanner from indexing them. This means:
- Your files remain on your device and are accessible through file managers.
- Other apps that don't rely on the media scanner (like some file managers or audio players with their own folder browsing) can still see and play them.
- The files won't appear in gallery apps, music players, or any app that uses the MediaStore.
- If you move the files to a different folder, you'll need to add a new
.nomediafile there.
One common misconception is that .nomedia hides files from all apps. It doesn't. Apps that directly read the filesystem (like a file manager or a music player with a "folder" view that bypasses the media store) will still show them. If you need true privacy, .nomedia is not a security measure—it's just a way to reduce clutter in your media apps.
Alternatives: Hide Folders with App-Specific Features
Many music player apps have built-in options to exclude folders. For example, Poweramp, BlackPlayer, and MediaMonkey offer a "folder exclusion" or "ignore" feature in their settings. This works independently of .nomedia and can be more convenient if you only want to hide files in a specific app. However, it only affects that app—other players will still show the files.
If you want to hide files from all apps, .nomedia is the way to go. If you want to hide them from just one player, check the player's settings for an exclusion list. Some file managers also offer a "hide" feature that adds .nomedia automatically, but this is just a convenience wrapper around the same method.
Common Problems and Fixes
Here are the most frequent issues people run into and how to solve them:
- Files still appear after adding .nomedia: The media store may have cached the old index. Clear the cache as described above, or restart your device.
- Can't create a .nomedia file: Some file managers don't allow creating files with no extension. Use a text editor app to create a new file and save it as
.nomedia, or copy an existing one from a folder that already has it (many apps create them automatically). - Hidden files reappear after a reboot: This can happen if the media scanner runs before the
.nomediafile is recognized. Ensure the file is named exactly.nomedia(no hidden extension) and that it's in the correct folder. If you're on a device with multiple user profiles, make sure you're editing the right storage. - Files are hidden but you want them back: Simply delete the
.nomediafile and rescan (restart the device or clear media storage cache).
How to Choose the Right Method
Your choice depends on your goal:
- Hide from all media apps: Use
.nomedia. - Hide from one specific player: Use the app's folder exclusion setting.
- Hide from gallery and music player but keep in file manager:
.nomediais perfect. - Encrypt or password-protect files:
.nomediadoesn't help. Use a file encryption app or a secure folder feature provided by your phone manufacturer.
Remember that .nomedia is a one-way street: it doesn't affect file access, only indexing. If you want to keep files private from other people who use your phone, you'd need a more robust solution like a secure folder or app lock.
Frequently Asked Questions
Will .nomedia hide audio files from all music players?
Yes, any music player that uses Android's media scanner will ignore folders with a .nomedia file. However, a music player that has its own file browser (like a folder view) may still show them, because it reads the filesystem directly. Most mainstream players rely on the media store, so they'll hide them.
Can I hide individual files instead of a whole folder?
No, .nomedia works on a folder level. You can't hide a single file within a folder without hiding the entire folder. If you want to hide specific files, move them to a separate folder and add .nomedia there.
Does .nomedia hide files from gallery apps too?
Yes, the media scanner indexes images and videos as well. Adding .nomedia to a folder will hide all media types in that folder from gallery apps, music players, and any other app that uses the MediaStore.
Will .nomedia affect my phone's storage or performance?
No, it's a zero-byte file that has no impact on storage or performance. It only tells the media scanner to skip that folder. Your files remain intact and accessible.
How do I create a .nomedia file if my file manager doesn't allow it?
You can use a text editor app (like Google Keep or any note app) to create a new note, then save it as .nomedia in the desired folder. Alternatively, download a file manager that supports creating files (like Solid Explorer or FX File Manager), or copy an existing .nomedia file from another folder—many apps create them automatically.
What if I want to hide files on an SD card?
The same method works. Create a .nomedia file in the relevant folder on your SD card. However, some devices may not allow writing to SD cards directly due to system restrictions; you may need to use a file manager that supports SD card write access or use the device's built-in file manager.