What Are File Extensions and How Do You Identify Unknown File Types?
A file extension is the suffix at the end of a filename—the part after the final period, like .pdf or .jpg—that tells your operating system and applications what kind of data the file contains and which program should open it. You need to understand extensions when a file won't open, when you receive a file type you don't recognize, or when you want to confirm what a download actually is before running it. This guide explains how extensions map to file types, how to reveal them on your device, how associations decide which app launches, and how to look up an unknown extension using a registry like FileInfo.com.
What a File Extension Actually Tells You
An extension is a label, not the file's contents. It signals the expected format so software can pick a compatible program. For example, .txt indicates plain text, .jpg a JPEG image, and .pdf a Portable Document Format file. FileInfo.com's database covers over 10,000 file extensions with details on the associated file types and the programs that open them.
Two practical consequences follow:
- The extension can be wrong or missing. A file renamed from
report.pdftoreport.txtstill contains PDF data; the extension just misleads the app that tries to open it. - The same extension can serve different purposes.
.DATis a generic "data file" extension used by many unrelated programs, so knowing the extension alone may not identify the exact format.
How to See File Extensions on Your Device
Many systems hide extensions by default, which makes it harder to tell a .jpg from a .exe. Revealing them is the first step in diagnosing a file.
Windows
- Open File Explorer.
- On the View menu, enable File name extensions (in Windows 11, this is under View > Show).
- Expected result: filenames now display their full suffix, such as
photo.jpginstead ofphoto.
macOS
- Open Finder.
- Go to Finder > Settings (or Preferences) > Advanced.
- Check Show all filename extensions.
- Expected result: all files show their extensions in Finder windows.
Mobile (Android and iOS)
Mobile file managers vary, but most show extensions in a file's detail or info view. If your file manager hides them, a third-party file manager or a universal viewer can display the type. FileInfo.com recommends File Viewer Plus (Windows), File Viewer for Mac, and File Viewer for Android for opening files when you're unsure of the format.
How File Associations Decide Which Program Opens a File
A file association is the link between an extension and a default application. When you double-click a file, the OS looks up the extension, finds the associated program, and launches it. Associations are why .docx opens in a word processor and .mp4 opens in a media player.
Associations can break or point to the wrong app, which is the most common reason a file "won't open." Typical fixes:
- Right-click the file and choose Open with to pick a different program manually.
- Set a new default for that extension so future double-clicks use the correct app.
- Install the right software if no program on your system handles the format at all.
Looking Up an Unknown Extension
When you encounter an extension you don't recognize, a lookup registry gives you the file type and a list of compatible programs.
- Note the exact extension, including any unusual characters (for example,
.CRYPT14or.NOMEDIA). - Search a file format database. On FileInfo.com you can submit a search or use Advanced Search, and you can also drag and drop or upload a file to view its details directly.
- Read the file type description to learn what the format stores and which applications open it.
- Install or open a compatible program, or use a universal viewer if you only need to inspect the contents.
FileInfo.com also publishes a File Type of the Day and a Weekly Top Extensions list, which can help you recognize formats that are currently common—recent examples include .APK (Android Package File), .JPG (JPEG Image), and .PDF (Portable Document Format File).
Common Reasons a File Won't Open
| Symptom | Likely cause | What to do |
|---|---|---|
| Nothing happens on double-click | No associated program, or broken association | Use Open with or set a new default |
| Opens in the wrong app | Association points to an incompatible program | Reassign the default for that extension |
| Error about corrupt or unsupported file | Extension doesn't match actual contents, or format is proprietary | Verify the true format; try a universal viewer |
| Extension is unfamiliar | Rare or app-specific format | Look it up in a file format database |
Key Takeaways
- A file extension is the suffix after the final period that indicates a file's expected type.
- Extensions are often hidden by default; revealing them helps you diagnose problems.
- File associations determine which program opens a file, and reassigning them fixes most "won't open" cases.
- For unknown extensions, look up the format in a registry like FileInfo.com, which documents over 10,000 extensions and the software that opens them.
- When in doubt, a universal file viewer lets you inspect a file without knowing its exact format.