To change or manage a Microsoft Excel file extension, you must use the "Save As" menu within the application or rename the file in your operating system's file explorer. The file extension (the characters following the dot at the end of a filename) tells your computer which program to use to open the file and how the data inside is structured.

What You'll Need

  • A computer with Microsoft Excel installed (Windows or macOS).
  • The file you wish to modify.
  • Administrative permissions to rename files in the folder where the document is saved.

Step-by-Step

Depending on whether you want to convert a file to a different Excel format or manually change the extension of an existing file, follow the appropriate method below. Note that menu labels may differ slightly based on your version of Excel, device, or region.

Method 1: Using "Save As" (Recommended)

This is the safest way to change an extension because Excel converts the internal data structure to match the new format, preventing file corruption.

  1. Open the Excel file you want to change.
  2. Click on the File tab in the top-left corner of the ribbon.
  3. Select Save As from the left-hand sidebar.
  4. Choose the location where you want to save the file (e.g., This PC, OneDrive, or Browse).
  5. In the "Save As" dialog box, click the dropdown menu next to Save as type.
  6. Select the desired extension from the list:
    • Excel Workbook (.xlsx): The standard modern format.
    • Excel Macro-Enabled Workbook (.xlsm): Required if your file contains VBA macros.
    • Excel Binary Workbook (.xlsb): Best for very large datasets to reduce file size.
    • CSV (Comma delimited) (.csv): A plain text format used for transferring data between different software.
    • Excel 97-2003 Workbook (.xls): For compatibility with very old versions of Excel.
  7. Click Save.

Method 2: Manually Renaming the Extension (Windows)

Use this method only if the file is already in the correct format but has the wrong extension label. Warning: Simply renaming .txt to .xlsx does not convert the data; it only changes the label.

  1. Open File Explorer and locate your file.
  2. If you cannot see the extension (e.g., you see "Budget" instead of "Budget.xlsx"), click the View tab at the top and check the box for File name extensions.
  3. Right-click the file and select Rename (or press F2).
  4. Delete the existing extension after the dot and type the new one (e.g., change .xls to .xlsx).
  5. Press Enter.
  6. A warning will appear stating that the file might become unusable. Click Yes to confirm.

Method 3: Manually Renaming the Extension (macOS)

  1. Open Finder and locate your file.
  2. Right-click the file and select Rename (or select the file and press Return).
  3. Change the characters after the dot to the desired extension.
  4. Press Return.
  5. When the dialog box asks if you want to keep the current extension or use the new one, click Use [extension].

Common Mistakes

  • Renaming without converting: The most common error is renaming a .csv file to .xlsx manually in the folder. This does not turn the text file into a spreadsheet; it just tricks the computer into trying to open a text file with Excel, which often results in an error message.
  • Saving macros in .xlsx: If you write a complex macro and save the file as a standard .xlsx workbook, Excel will strip all the code out of the file. You must use .xlsm for macros.
  • Overwriting the original: When using "Save As," some users overwrite their only copy of a file. It is safer to give the new version a slightly different name to ensure the original remains intact if the conversion fails.

Tips

  • Use .xlsx for most tasks: Unless you have a specific reason (like macros or legacy software), always use .xlsx. It is more secure and results in smaller file sizes than the old .xls format.
  • Use .csv for imports: If you are uploading data to a website, a database, or a different software program, .csv is the universal standard.
  • Use .xlsb for speed: If your spreadsheet is lagging because it contains hundreds of thousands of rows, try saving it as an Excel Binary Workbook (.xlsb). It opens and saves faster.

Troubleshooting

If the file does not open after you changed the extension, try these steps in order:

  1. Revert the extension: Rename the file back to its original extension to see if it opens again.
  2. Use "Open and Repair": Open Excel, go to File > Open > Browse. Select the file, but instead of clicking "Open," click the small arrow next to the Open button and select Open and Repair.
  3. Check for hidden extensions: If you renamed a file to "Budget.xlsx" but the computer is actually naming it "Budget.xlsx.txt", it won't open. Ensure "File name extensions" is enabled in your view settings to see the true full name.
  4. Check File Permissions: If you cannot rename the file, ensure the file is not currently open in another program. Close all instances of Excel and try again.

Frequently Asked Questions

What is the difference between .xls and .xlsx?

.xls is the legacy format used in Excel 97-2003. .xlsx is the modern XML-based format used in all current versions. .xlsx is more compressed and less prone to corruption.

Can I open a .csv file in Excel?

Yes. Excel can open .csv files by default. However, to keep formatting (like bold text or cell colors), you must save the file as an .xlsx workbook after opening it.

Why does my file need to be .xlsm?

Standard .xlsx files cannot store macros (automated scripts). If your workbook contains VBA code, it must be saved as .xlsm to ensure the code is preserved.

Will changing the extension delete my data?

Using "Save As" will not delete data, but it may remove features (e.g., saving an .xlsx as a .csv removes all formulas and formatting). Manually renaming an extension does not delete data, but it may make the file unreadable until the extension is corrected.

How do I hide file extensions again?

In Windows File Explorer, go to the View tab and uncheck the File name extensions box. On macOS, this is managed in Finder > Settings > Advanced.