.NOMEDIA

NOMEDIA File

Android No-Media Marker File
Ask a question
QUICK ANSWER

A .nomedia file is an empty (0-byte) marker on Android. When a folder contains one, Android's media scanner skips that folder, so its photos, videos and music stay out of the Gallery and music apps. There is nothing to open and nothing to convert. To make hidden media show again, delete the .nomedia file with a file manager and let the phone rescan.

Developer: Google (Android Open Source Project) Category: System Files Open standard MIME: application/octet-stream
OPENS ON Windows Android
Related: .DLL · .TMP · .LNK · .PKG

On this page

19k+ extensions indexed
Last reviewed Aug 21, 2026

Not sure what your file is?

Drop any file into our identifier - we read just the first bytes to name the format.

Identify a file

What is the NOMEDIA file format?

Files with the .nomedia extension do not contain any data - they are always exactly 0 bytes - and they carry no filename prefix. It is a hidden file (the leading dot conceals it in standard Android and Linux file listings) that informs the Android media scanner that the directory in which it is located does not hold multimedia files that should be displayed, such as images, videos, or audio.

.nomedia files are used to hide the contents of directories so that they are not visible to media-aware apps - for instance, the system gallery or a music player. Placing one inside a folder prevents those apps from indexing and displaying its media. Removing the .nomedia file causes the media scanner to re-index the directory on its next pass.

The marker was introduced by Google as part of the Android Open Source Project (AOSP) in the early Android releases around 2009 and has been part of the platform ever since. It applies to the folder it resides in but does not cascade into subdirectories - each subfolder that should be excluded needs its own .nomedia file.

If you want to create such a file manually, you must remember that the filename prefix is supposed to be left empty. The file should contain only the extension - it should be named exactly .nomedia. On Android or Linux, the shell command touch .nomedia is all that is needed; alternatively, any file manager can create an empty file with that name.

The file will not serve its purpose if named with any prefix - for example, file.nomedia is not recognized by the media scanner.

Security & safety

RISK: LOW

A .nomedia file is harmless - it is empty and cannot contain code. It is not a virus, although some 'cleaner' or junk apps create .nomedia files in DCIM/Pictures and make users think their photos were deleted. Deleting any .nomedia file is always safe for your data; the only side effect is that app caches (stickers, thumbnails) may flood your Gallery again. Note: hiding photos with .nomedia is not security - any file manager still shows the media.

Format details

in a nutshell
FULL NAMEAndroid No-Media Marker File
DEVELOPERGoogle (Android Open Source Project)since circa 2009 (early Android releases; behavior documented in Android MediaStore/media scanner)
CATEGORYSystem Files
MIME TYPEapplication/octet-stream
TYPEempty marker file (0 bytes) - the full filename is ".nomedia"
STANDARDOpen · royalty-free

Programs that open NOMEDIA files

Windows1 app
File Explorer (built-in) Built-in Connect the phone via USB; .nomedia files are visible in Explorer - delete or copy them. To create one: in Notepad, Save As, type ".nomedia" including the quotes.
Android3 apps
Files by Google Free Menu → Settings → Show hidden files, navigate to the folder, long-press .nomedia → Delete to unhide media.
Total Commander for Android Free Enable hidden-file display, then delete the .nomedia file - or create a new empty file named .nomedia to hide a folder.
Google Android (built-in behavior) Built-in No app 'opens' .nomedia - Android itself consumes the marker. Manage it with any file manager that shows hidden files.

Technical details

deep spec
File sizeAlways 0 bytes - the file is empty by design; its content is irrelevant
Full filename`.nomedia` - dot-prefixed with no stem; the leading dot is part of the name, not a separator
File contentEmpty - no bytes, no headers, no magic signature; only the filename and its location matter
VisibilityHidden on Android and Linux by convention - dot-prefixed files are not shown in standard directory listings
ScopeApplies only to the directory it resides in; does not cascade into subdirectories
Recognized byAndroid MediaStore media scanner (AOSP), which checks for this file before indexing a folder
Effect on media scannerSuppresses indexing of images, audio, and video in the marked directory
DeveloperGoogle / Android Open Source Project (AOSP)
IntroducedCirca 2009, in early Android releases
Storage supportWorks on both internal storage and external SD card directories on Android
Case sensitivityFilename must be lowercase `.nomedia` - Android's filesystem is case-sensitive; `.NOMEDIA` or mixed-case variants are not recognized
MIME type`application/octet-stream` - no content for type detection
Creation methodAny file manager or the shell command `touch .nomedia` can create it as an empty file
Removal effectDeleting the file causes the next media scanner pass to re-index and expose the directory's media
Platform specificityAndroid-only convention; has no effect on Windows, macOS, or iOS file systems
Prefix requirementMust have an empty stem - any filename prefix (e.g., `app.nomedia`) breaks recognition by the media scanner
Releasedcirca 2009 (early Android releases; behavior documented in Android MediaStore/media scanner)
Open standardYes · royalty-free
Specificationdeveloper.android.com

NOMEDIA conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with NOMEDIA files. Be specific - include your system and software version.
No account needed · answers usually within a day
A
AEGGGGGGGG20 d agoUNANSWERED
FAWWWWWWWWWWWWW
Waiting for an answer
J
JuanAug 2026UNANSWERED
Como lo abro
Waiting for an answer

Frequently asked questions

Can I delete a .nomedia file?
Yes, it's always safe - it's an empty marker. After deleting, the folder's photos/videos reappear in Gallery once Android rescans (reboot the phone to force it).
My photos disappeared from the Gallery - is .nomedia the cause?
Very often, yes. Open a file manager, enable 'show hidden files', look for .nomedia in the photo folder (e.g. DCIM, WhatsApp Images), delete it and reboot.
How do I create a .nomedia file to hide a folder?
In a file manager (e.g. Total Commander), create a new empty file named exactly .nomedia inside the folder. The folder's media vanishes from Gallery after the next scan.
Why does WhatsApp create .nomedia files?
To keep its internal media - stickers, profile thumbnails, voice notes, status caches - from cluttering your Gallery and music player. It's intentional and shouldn't be removed from cache folders.
How do I open a .nomedia file on Windows?
There's nothing inside to open - it's 0 bytes. Windows shows it when you browse the phone over USB; you can delete it there if you want the folder's media indexed again.
Is a .nomedia file a virus?
No. It contains no code at all. At worst, an unwanted app created it and 'hid' your photos - deleting the file undoes that.

References

1Android Developers - Access media files from shared storage (media scanner & .nomedia)developer.android.com
2AOSP - MediaStore / media provider source (nomedia handling)android.googlesource.com

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.CRDOWNLOADChrome Partial Download File
3.DATProgram Data File (generic)
4.JPGJPEG Image
5.EXEWindows Executable (Portable Executable)
6.RPMSGRestricted Permission Message
7.ICSiCalendar data file
8.PARTPartial Download File
9.JSONJavaScript Object Notation file
10.BINCD/DVD Disc Image (BIN/CUE)

Related extensions

.DLLDynamic Link Library
.TMPTemporary File
.LNKWindows Shell Link (Shortcut)
.PKGmacOS Installer Package
.ETLEvent Trace Log
.ASECAndroid Secure Encrypted Container (apps-on-SD container)

Free file tools

An in-browser file identifier and image converter - everything runs on your device.

Open the toolbox

Browse file extensions A-Z