What File Extension Should an Excel Workbook Use?
Question details
The user needs to understand the differences between various Excel workbook file extensions and learn which format is appropriate for different use cases.

- Product
- Microsoft Excel / WPS Spreadsheet
- Device & OS
- not provided
- Scenario
- Saving a new spreadsheet or sharing an existing workbook and needing to select the most appropriate file format.
- Observed behavior
- Selecting the correct file extension ensures data integrity, preserves VBA macros, optimizes file size, and maintains compatibility with older software.
Before selecting a format, verify whether your spreadsheet contains VBA macros or if you need to share the file with users running Excel versions older than 2007.
Choosing the Correct Excel File Format When Saving
Select the appropriate Excel extension based on whether your workbook contains macros, has a large dataset, or requires backward compatibility.
Microsoft Excel uses different file extensions to determine how workbook data is stored and whether executable code like macros is permitted. Choosing the right format prevents data loss and maintains file security.
Use the .xlsx format for standard Excel workbooks. This is the default XML-based format and is best for most daily tasks. It cannot store VBA macro code, making it a secure option when sharing data.
Choose the .xlsm format if your workbook contains Visual Basic for Applications (VBA) code. The spreadsheet software requires this specific extension to allow macros to be saved and executed.
Select the .xlsb format for very large spreadsheets. Instead of XML, this format saves data in a binary structure, which significantly speeds up opening and saving times for large files.
Use the .xls format only when you need to maintain compatibility with Excel 97-2003. This older binary format does not support newer features or the expanded row/column limits introduced in modern versions.

Easily Open, Edit, and Save Any Excel File Format with WPS Office
WPS Spreadsheet provides full compatibility with all major Excel file extensions, including .xlsx, .xlsm, .xlsb, and legacy .xls files. You can effortlessly switch between formats and run VBA macros without losing any formatting or data.
- 1. Open your file: Launch WPS Spreadsheet and open your existing spreadsheet, or create a new one.
- 2. Access the Save As menu: Click on 'Menu' in the top-left corner and select 'Save As'.
- 3. Select your format: In the 'File Type' dropdown menu, choose the appropriate format (.xlsx, .xlsm, .xlsb, or .xls) based on your needs.
- 4. Save the document: Click the 'Save' button to safely store your workbook in the selected file format.

Frequently Asked Questions
Can I just change the file extension by renaming the file?
No. Simply renaming a file extension (for example, manually changing .xls to .xlsx) can corrupt the file structure. You must open the file in your spreadsheet software and use the 'Save As' function to convert it properly.
Why can't I save macros in a standard .xlsx file?
As a strict security measure introduced by Microsoft, the .xlsx format is designed to be entirely free of executable code. To save macros safely, you must explicitly use the .xlsm (macro-enabled) format.
What are the specific benefits of using the .xlsb format?
The .xlsb (binary) format is highly optimized for performance. It reads and writes much faster than the standard XML-based .xlsx format, making it ideal for workbooks containing massive amounts of data or complex calculations.




