The correct spelling is E-X-T-E-N-S-I-O-N
Extension is spelled with eight letters: E, X, T, E, N, S, I, O, N. The word comes from the verb "extend," meaning to stretch out or add to something. In computing, an extension is the short code at the end of a filename that tells your device what kind of file it is and which program should open it.
You see extensions every time you save a document or read a file. They appear after a period at the end of the filename. For example, a Word document might be named "budget.docx" — the ".docx" part is the extension. A photo might be "vacation.jpg". A text file might be "notes.txt". The extension is always those letters after the final period.
The reason extensions matter is that your computer uses them to decide what to do with a file. When you double-click a file with a .pdf extension, your device knows to open it in a PDF reader. When you click a .mp3 file, it opens in your music player. Without the extension, your device would not know which program to use.
Key Takeaways
- Extension is spelled E-X-T-E-N-S-I-O-N and refers to the letters after the period at the end of a filename.
- Common extensions include .docx for Word documents, .pdf for PDFs, .jpg for photos, and .mp3 for audio files.
- Your device uses the extension to determine which program should open the file.
- Changing or removing an extension can prevent a file from opening correctly, even though the file itself has not changed.
- Most devices hide extensions by default, but you can turn on the setting to see them in your file manager.
Why extensions have different lengths
Not all extensions are the same length. Some have three letters (.jpg, .pdf, .txt), some have four (.docx, .xlsx), and a few have five or more. The length depends on what the file format is called and how the people who created it decided to abbreviate it.
A three-letter extension is often called a "file type" or "file format." The most common ones are .txt (plain text), .jpg (photograph), .pdf (portable document), .mp3 (audio), and .zip (compressed folder). Four-letter extensions usually come from Microsoft Office programs: .docx is Word, .xlsx is Excel, .pptx is PowerPoint. The extra letter often indicates a newer version of the format.
The important thing to remember is that the length does not matter — what matters is that the extension matches what the file actually is. If you rename a photo from "picture.jpg" to "picture.doc," your device will try to open it as a Word document and fail, even though the photo itself has not changed.
How to see extensions on your device
Most computers hide extensions by default to make filenames look cleaner. If you want to see them, the steps depend on whether you use Windows or Mac.
On Windows, open File Explorer and look at the top menu. Click the "View" tab. You should see a checkbox labeled "File name extensions" — click it to turn it on. From that point forward, you will see the extension on every file in that folder and in most other places on your computer.
On Mac, open Finder and click on any file. Press Command and I at the same time to open the file information window. Look for a checkbox that says "Hide extension" — if it is checked, click it to uncheck it. The extension will now appear on that file. To make all extensions visible at once, open Finder's preferences, click the "Advanced" tab, and check the box that says "Show all filename extensions."
What happens if you change an extension
Changing an extension does not change what the file is — it only changes what your device thinks the file is. If you have a photo named "sunset.jpg" and you rename it to "sunset.txt," the photo is still a photo. But when you try to open it, your device will try to open it as a text file and show you gibberish instead of the image.
Sometimes you might need to change an extension on purpose. For example, if you read a file that should be a .zip but your device saved it as .txt, renaming it back to .zip will let you open it correctly. But in most cases, changing an extension is a mistake that breaks the file.
If you accidentally change an extension and the file will not open, you can usually fix it by changing the extension back to what it should be. The file itself is not damaged — you just told your device to look for the wrong program.
Common extensions and what they mean
| Extension | File Type | What Opens It |
|---|---|---|
| .docx | Word document | Microsoft Word, Google Docs |
| Portable document | Adobe Reader, web browser | |
| .jpg | Photograph | Photo viewer, web browser |
| .png | Image with transparency | Photo viewer, web browser |
| .mp3 | Audio file | Music player, web browser |
| .mp4 | Video file | Video player, web browser |
| .xlsx | Excel spreadsheet | Microsoft Excel, Google Sheets |
| .zip | Compressed folder | Built-in compression tool |
| .txt | Plain text | Notepad, text editor |
Why you should not remove extensions
Some people try to hide extensions by removing them from a filename. This almost always causes problems. Your device still needs the extension to know what program to use, so removing it just makes the file harder to open.
If you do not like seeing extensions, the better solution is to hide them in your file manager settings rather than delete them from the filename. That way your device still knows what each file is, but you see a cleaner filename on your screen. Hiding extensions in settings keeps your files working correctly while making your file list look the way you want.
Frequently Asked Questions
Can I change a file's extension to convert it to a different format?
No. Changing the extension does not convert the file — it only tells your device which program to use. If you have a .jpg photo and rename it to .pdf, it will not become a PDF. You need to use a conversion program or save the file in a different format from within the original program.
Why do some files not have an extension?
Some older files or files created on different operating systems may not have extensions. Your device may still be able to open them if it can recognize the file type by looking at the data inside, but it is usually harder. Adding the correct extension back to the filename makes the file easier to open.
Is it safe to change an extension if I know what I am doing?
Yes, but only if you are certain about what you are changing. Changing an extension is safe as long as you remember that it does not change the file itself — it only changes what program your device will try to use to open it. If you make a mistake, you can always change it back.
What does the period before the extension mean?
The period is a separator that tells your device where the filename ends and the extension begins. Your device reads everything after the final period as the extension. This is why you should not use periods in the middle of a filename — it can confuse your device about which part is the extension.