Understanding File Extensions and Their Importance
File Extensions
A file extension is the characters after the period in a file name (e.g., .docx, .jpg). The operating system reads the extension to decide which application opens the file. There are 3 things file extensions tell the system:
- File Type: identifies the digital format, such as document, image, or spreadsheet.
- Associated Application: points to the software that can open and edit the file (e.g., .docx opens in Microsoft Word).
- File Behavior: shows how the file interacts with the OS and other applications.
Security note: double extensions like filename.doc.exe often disguise malware. Extensions like .exe received from unknown sources should be treated with caution.
Why File Extensions are Used
File extensions identify the file type. The operating system uses this information to decide which application can open the file. For example, a .docx extension tells the system to open the file in Microsoft Word.
Information Provided by File Extensions
- File Type: Shows the digital format, such as a text document, image, or spreadsheet.
- Associated Application: Points to the software that can open and edit the file.
- File Behavior: Shows how the file works with the operating system and other applications.
Protection Against Malware
Knowing file extensions helps identify harmful files. Some extensions, like .exe (executable files), may contain malware if received unexpectedly or from unknown sources. Being aware of safe extensions helps users avoid opening risky files.
The characters after the period in a file name (e.g., .docx, .jpg).
The operating system reads the extension to:
- Identify the file type (document, image, spreadsheet)
- Decide which application should open the file
Security note: double extensions like .doc.exe can disguise malware.
Common File Extensions
| Extension | Description | Typical Application |
|---|---|---|
| .doc | Microsoft Word document | Microsoft Word |
| .docx | Microsoft Word Open XML document | Microsoft Word |
| .ppt | Microsoft PowerPoint presentation | Microsoft PowerPoint |
| .pptx | Microsoft PowerPoint Open XML presentation | Microsoft PowerPoint |
| .xls | Microsoft Excel spreadsheet | Microsoft Excel |
| .xlsx | Microsoft Excel Open XML spreadsheet | Microsoft Excel |
| Portable Document Format | Adobe Acrobat Reader | |
| .jpg or .jpeg | JPEG image | Image viewers/editors |
| .png | Portable Network Graphics image | Image viewers/editors |