File Extensions
Learn the concept, follow the practical steps, and apply what you learn through a simple activity.
File Extensions: Understanding What a File Really Is
A file extension is the part at the end of a filename that usually tells Windows and other operating systems what type of file it is and which apps can open it. Examples include .jpg, .png, .pdf, .docx, .xlsx, .mp3, and .mp4.
1. Anatomy of a Filename
Consider holiday-photo.jpg. holiday-photo is the filename and .jpg is the extension. Together they form the complete filename.
- .jpg / .jpeg β common image files
- .png β images, often useful when transparency is needed
- .gif β images/animations
- .pdf β portable documents
- .docx β Microsoft Word documents
- .xlsx β Microsoft Excel workbooks
- .pptx β PowerPoint presentations
- .txt β plain text
- .mp3 β audio
- .mp4 β video
- .zip β compressed archive
2. Why Extensions Matter
Operating systems use file type information to decide how a file should be handled. When you double-click a PDF, for example, Windows can use the default PDF application to open it. Changing an extension does not magically convert the underlying file into another format.
3. File Extension vs File Format
These terms are related but not identical. An extension is part of the filename. A format describes how the actual data is structured. Simply renaming photo.jpg to photo.png does not convert the JPEG data into a PNG file.
4. Show Extensions in Windows
- Open File Explorer.
- In Windows 11, select View β Show β File name extensions.
- In Windows 10, open the View tab and enable File name extensions.
- Now you can see endings such as
.jpg,.pdf, and.docxdirectly in filenames.
invoice.pdf.exe is an executable program, not an ordinary PDF document.5. Changing the Default App
If the correct file opens in an unwanted application, you usually do not need to rename the extension. Right-click the file, choose Open with, select the appropriate application, and choose the option to always use that app when available.
6. Renaming an Extension
Renaming a file is safe when you are only changing its descriptive name. Be careful when changing the extension itself. Windows may warn that the file could become unusable. Do not change extensions just to make a file βlookβ like another type.
7. Common File-Type Mistakes
| Mistake | What happens | Better approach |
|---|---|---|
| Changing .jpg to .png | The data is still JPEG data. | Use an image converter/editor to actually convert it. |
| Hiding extensions | Important file-type information is less visible. | Keep extensions visible when learning/troubleshooting. |
| Deleting an extension | The file may stop opening normally. | Keep the correct extension. |
| Opening unknown executable files | Potential security risk. | Verify the source before opening. |
8. Practical Activity
- Create a folder named File Extension Practice.
- Create or copy one image, one text/document, one PDF, and one audio/video file into it.
- Turn on File name extensions.
- Write down each filename and its extension.
- Right-click each file and check Open with.
- Pick one file and explain why its extension matches its type.
9. Quick Self-Check
- What is a file extension?
- What extension is commonly used for PDF documents?
- Does renaming .jpg to .png convert the image?
- Why is
.exedifferent from.pdf? - How can you make extensions visible in File Explorer?
Key Takeaway
File extensions help you understand file types and how your computer should handle them. Learn to recognize common extensions, keep them visible, and never assume that changing a filename ending actually converts the file.