What changing a file type actually means
Changing a file type on Mac means renaming the extension — the letters after the dot at the end of a filename. A file called document.docx has the extension .docx. If you change it to document.txt, you have changed the extension to .txt. The Mac system uses that extension to decide which program opens the file.
This is different from converting a file, which changes what is actually inside it. Renaming the extension alone does not convert the contents. If you rename a Word document to .txt, the file still contains Word formatting — you have just told Mac to treat it as plain text, which usually breaks it.
You might need to change extensions when a program expects a certain file type, when you are moving files between Mac and Windows, or when you want to open a file with a different program. The process itself takes seconds, but understanding when it will work and when it will not matters.
Key Takeaways
- Mac hides file extensions by default, so you must show them first through Finder preferences or by selecting a file and pressing Command-I.
- Changing only the extension does not convert the file contents — a Word document renamed to .txt will still be a Word document inside.
- Some file types can be opened by multiple programs, so changing the extension tells Mac which program to use by default.
- Windows and Mac sometimes use different extensions for the same file type, so renaming extensions is useful when sharing files between systems.
Show file extensions in Finder
Mac hides file extensions by default, so the first step is making them visible. Open Finder and go to the menu bar at the top. Click Finder, then select Settings (or Preferences on older Mac versions). Click the Advanced tab.
Check the box next to Show all filename extensions. Close the window. Now every file in Finder will display its extension. You will see photo.jpg instead of just photo, and spreadsheet.xlsx instead of just spreadsheet.
Rename the extension directly in Finder
Once extensions are visible, right-click the file you want to change and select Rename. The entire filename, including the extension, becomes editable. Click at the end of the filename and delete the old extension, then type the new one.
For example, if you have image.png and want to change it to image.jpg, select the text, delete .png, and type .jpg. Press Enter. Mac will ask if you are sure you want to change the extension — click Use the new extension.
The file now has a new extension, and Mac will try to open it with the program associated with that file type. This works when ready and does not require any other software.
Use Get Info to change the extension
Another method is to select the file, press Command-I to open Get Info, and look for the Name & Extension section. You can edit the extension directly here without renaming the whole file. This method is useful when you only want to change the extension and keep the filename exactly as it is.
Some files have a checkbox that says Hide extension. If that box is checked, the extension will not show in Finder even after you change it. Uncheck it if you want the extension to be visible.
When changing extensions actually works
Changing an extension works when the file format is compatible with the new program. A plain text file saved as .txt can be renamed to .csv (comma-separated values) and opened in Excel, because both formats are just text with different organization. An image file can be renamed from .jpg to .png because both are image formats that Mac can read.
Changing an extension does not work when you are trying to convert between completely different file types. Renaming a Word document from .docx to .xlsx will not make it a spreadsheet — it will just confuse the program that tries to open it. The file still contains Word formatting and text, not spreadsheet data.
If you need to actually convert a file — turning a Word document into a PDF, or a PNG image into a JPG — you must use the program that created it or a conversion tool. straightforward changing the extension will not do this.
Changing extensions for Windows compatibility
Windows and Mac sometimes use different extensions for the same file type. A video file might be .mov on Mac and .avi on Windows. If you are sending a file to someone on Windows and they cannot open it, changing the extension to the Windows version sometimes helps.
Before you do this, check what program they are using. If they have the same software you do, the extension usually does not matter — most programs can open their own files regardless of extension. If they have different software, ask them what file type they need, then change the extension to match.
What to do if a file will not open after changing the extension
If you changed an extension and now the file will not open, the most likely reason is that the file format is not actually compatible with the new extension. Undo the change by renaming the extension back to the original. The file should open normally again.
If you need to convert the file to a different format, open it with the original program, then use File > Export As or Save As and choose the format you need. This actually converts the contents, not just the extension. Most programs like Word, Preview, and Final Cut Pro have export options for common file types.
Frequently Asked Questions
Why does Mac hide file extensions by default?
Mac hides extensions to make filenames cleaner and simpler for everyday users. The system uses the extension internally to know which program to use, so most people do not need to see it. Showing extensions is useful when you work with files across different programs or systems.
Can I change a PDF to a Word document by renaming the extension?
No. Renaming a PDF to .docx will not convert it to an editable Word document — it will just break the file. PDFs and Word documents have completely different internal structures. You would need to use a conversion tool or manually recreate the content in Word.
What happens if I change a file extension and then change it back?
The file returns to normal and opens with its original program. Changing extensions does not damage the file itself — it only changes how Mac identifies it. You can rename extensions back and forth without losing any data.
Do I need to change the extension if I am just opening a file with a different program?
No. You can right-click any file, select Open With, and choose a different program without changing the extension. This is safer than renaming the extension, because it does not change how the file is identified on your system.
Can I change multiple file extensions at once?
Mac does not have a built-in batch rename tool for extensions. You can select multiple files and rename them one at a time, or use a third-party tool like Batch Rename or A-Zippr if you need to change many files. For most situations, renaming files individually is faster than learning new software.