What Do File Extensions Mean? .exe, .zip, .pdf and More
The few letters at the end of a file name tell you what the file is and which program opens it.
A file extension is the part of a file name after the last dot, as in “report.pdf” or “holiday.jpg”. The operating system usually decides which program opens a file by looking at its extension.
Show extensions in Windows
By default, Windows hides known extensions. That can make a file called “invoice.pdf.exe” appear as just “invoice.pdf”. In File Explorer, turn on View → Show → File name extensions to always see them.
Common extensions
| Extension | Type |
|---|---|
| A document that looks the same on every device | |
| .docx, .xlsx, .pptx | Word, Excel and PowerPoint files |
| .txt | Plain, unformatted text |
| .jpg, .png, .webp | Image files |
| .mp4, .mov | Video files |
| .mp3, .wav | Audio files |
| .zip, .rar, .7z | Compressed archives |
| .exe, .msi | Windows programs or installers |
| .html | Web page |
Extensions to be careful with
Some extensions run code on your computer when opened. Do not open files like these unless you are sure of their source:
- .exe, .msi, .scr, .com: programs and installers
- .bat, .cmd, .ps1, .vbs, .js: command and script files
- .docm, .xlsm: Office documents with macros
- .lnk: shortcut files (can launch another program)
Does changing the extension convert the file?
No. Renaming a .png file to .jpg does not turn it into a JPG; it only changes the label, and the file may not open. To change the format you need a program or tool that converts it.
Frequently asked questions
How do I change which program opens a file?
Right-click the file and choose “Open with → Choose another app” to change the default program.
How do I open a file with no extension?
If you know what the file is, you can add the right extension. If you do not know and its source is unclear, do not open it.