The file extension for a standard Microsoft Excel workbook is .xlsx. If you save a workbook in the older Excel 97-2003 format, the extension is .xls. Other Excel-related extensions exist for specific purposes: .xlsm for macro-enabled workbooks, .xlsb for binary workbooks, .csv for comma-separated values, and .xltx for templates. Knowing which extension to use ensures compatibility, preserves features like macros, and prevents data loss when sharing files.
What You'll Need
- Microsoft Excel installed (any modern version: Excel 2016 or later, Microsoft 365, or Excel for Mac).
- A workbook you want to save or convert.
- Basic familiarity with the Save As dialog.
Step-by-Step
- Open your workbook in Excel. Launch Excel and open the file you want to work with.
- Go to File > Save As. The exact location of Save As may vary slightly by version, but it is always under the File tab. On Mac, it is under File > Save As as well.
- Choose a location. Select the folder where you want to save the file. You can use OneDrive, This PC, or any local folder.
- Enter a file name. Type a descriptive name in the File name box. Do not include the extension manually unless you want to override the default; Excel adds it automatically based on the format you choose.
- Select the file format from the Save as type dropdown. This is where you pick the extension. Common choices:
- Excel Workbook (*.xlsx) – the default for most workbooks without macros.
- Excel Macro-Enabled Workbook (*.xlsm) – required if your workbook contains VBA macros.
- Excel 97-2003 Workbook (*.xls) – for compatibility with very old Excel versions.
- CSV (Comma delimited) (*.csv) – plain text, no formatting or formulas.
- Excel Template (*.xltx) – for reusable templates.
- Click Save. Excel may show a compatibility checker warning if you choose an older format or if features are not supported. Review the warning and click Continue if you accept the limitations.
- Verify the extension. After saving, check the file name in File Explorer (Windows) or Finder (Mac). The extension should match your choice. If extensions are hidden, enable “File name extensions” in View settings (Windows) or Finder Preferences > Advanced (Mac).
Common Mistakes
- Saving a macro workbook as .xlsx. Macros are removed when you save as .xlsx. Always use .xlsm for files with macros.
- Assuming .csv preserves formatting. CSV files store only raw data; formulas, colors, and multiple sheets are lost.
- Manually typing the extension in the file name. This can create double extensions (e.g., report.xlsx.xlsx) if the “Save as type” already adds one. Let Excel handle it.
- Ignoring compatibility warnings. Saving to .xls may drop features like conditional formatting or new functions. Read the warning before proceeding.
- Forgetting to check the file after conversion. Always reopen the saved file to confirm data and features are intact.
Tips
- Use .xlsx for everyday work; it is the standard and widely supported.
- If you collaborate with users on older Excel versions, consider saving a copy as .xls, but keep the original .xlsx.
- For files with macros, use .xlsm and ensure macro security settings are appropriate.
- When exporting to CSV for data exchange, be aware that special characters and leading zeros may be lost; test with a small sample first.
- Enable file extensions in your operating system to avoid confusion when sharing files.
Troubleshooting
- Excel says “The file format and extension don’t match” when opening. This usually means the file was renamed incorrectly. Check the actual format by opening it in a text editor (for CSV) or try opening with Excel’s “Open” dialog and selecting the correct file type.
- Macros are missing after saving. You likely saved as .xlsx. Reopen the original, save as .xlsm, and re-enable macros.
- Cannot save as .xls because of unsupported features. Excel will warn you; either remove the features or save as .xlsx instead.
- CSV file opens with all data in one column. This happens when the delimiter is not recognized. Use Excel’s Text Import Wizard (Data > From Text/CSV) to specify the delimiter.
- File extension is hidden and you cannot see it. In Windows File Explorer, go to View > Show > File name extensions. On Mac, Finder > Preferences > Advanced > Show all filename extensions.
Frequently Asked Questions
What is the default file extension for Excel?
The default is .xlsx for Excel 2007 and later. It supports all modern features except macros.
How do I save a file with macros?
Use the “Excel Macro-Enabled Workbook (*.xlsm)” format in the Save As dialog. Macros are not saved in .xlsx files.
Can I open .xlsx files in older Excel versions?
Excel 2007 and later can open .xlsx natively. Excel 2003 and earlier require the Compatibility Pack from Microsoft.
What is the difference between .xls and .xlsx?
.xls is the older binary format (Excel 97-2003), while .xlsx is the newer XML-based format. .xlsx is more efficient and supports more features.
Why does my CSV file lose formatting?
CSV is a plain text format that stores only data, not formatting, formulas, or multiple sheets. Use .xlsx to preserve those.
How can I change the file extension after saving?
You can rename the file in File Explorer or Finder, but changing the extension does not convert the file format. Use Save As to properly convert.