Excel File Formats: How They Change Your Work
In this article
Yes, Microsoft Excel file formats change the way you work — from how you share files and recover data to whether macros run and how large your workbook can grow. Choosing the right format (XLSX, XLSM, XLSB, CSV, or the older XLS) affects compatibility, file size, security, and even the features you can use.
Background: From XLS to XLSX
Before Excel 2007, the default format was .xls, a binary format introduced with Excel 97. It stored data in a proprietary structure that was efficient for its time but had limits: a worksheet could hold only 65,536 rows and 256 columns, and the format was prone to corruption. In 2007, Microsoft switched to the Office Open XML (OOXML) format, with .xlsx as the default. This change was more than a new extension — it replaced the binary file with a ZIP-compressed package of XML files. That shift brought smaller file sizes, better data recovery, and support for up to 1,048,576 rows and 16,384 columns per sheet.
How the Formats Differ
Each format serves a different purpose, and knowing the difference prevents lost work or broken links.
- .xlsx — The default since Excel 2007. XML-based, compressed, no macros. Best for most workbooks.
- .xlsm — Same as XLSX but allows macros (VBA code). Use when your file contains automated tasks.
- .xlsb — Binary format that stores data in a more compact way. Opens and saves faster for very large files, but macros are allowed and the format is not as widely supported by other tools.
- .xls — The legacy format. Needed if you collaborate with people using Excel 2003 or earlier, but it lacks modern features and has row/column limits.
- .csv — Plain text with comma-separated values. No formatting, formulas, or multiple sheets. Universally readable, but data types are lost.
- .ods — OpenDocument Spreadsheet, used by LibreOffice and Google Sheets. Excel can open it, but complex formatting may shift.
How File Format Affects Your Daily Work
The format you choose changes how you work in practical ways. With .xlsx, you get automatic recovery: if Excel crashes, it can often restore the file from the XML structure. The ZIP compression also means files are 50–75% smaller than the old XLS, making email sharing easier. However, if you use macros, you must save as .xlsm — saving a macro-enabled file as XLSX will strip the code, and Excel warns you but many users click past it and lose hours of automation. For large datasets (over 100,000 rows), .xlsb can save and open noticeably faster because it avoids the XML parsing overhead. But if you need to import the data into a database or another application, CSV is often the only format that works without conversion.
Choosing the Right Format
Ask yourself these questions before saving:
- Will anyone use Excel 2003 or earlier? If yes, use .xls or consider exporting to CSV.
- Does the file contain macros? Then you need .xlsm or .xlsb.
- Is the file huge and slow? Try .xlsb for speed, or .csv if you only need raw data.
- Do you need to preserve charts, formatting, and multiple sheets? Use .xlsx or .xlsm.
- Will you share with non-Excel tools? CSV or ODS might be safer.
Common Problems and Misconceptions
A frequent issue is the “file format and extension don’t match” warning. This happens when you rename a file’s extension (e.g., changing .xlsx to .xls) without actually converting it. Excel may open it, but the file is still XML and could corrupt. Another misconception is that CSV preserves formulas — it does not. When you save a sheet as CSV, only the calculated values are kept, not the formulas. Also, many users think that saving as .xlsb is risky because it’s “binary,” but it is actually a stable, well-documented format — just not as universally supported as XLSX in third-party tools.
Security and Macros
Macros are powerful but can carry viruses. The .xlsm and .xlsb formats allow embedded VBA code, which is why Excel shows a security warning when you open them. If you receive a macro-enabled file from an unknown source, do not enable macros unless you trust the sender. For sensitive data, consider saving as .xlsx (no macros) or even as a PDF for final distribution. The XML formats also allow you to inspect the file contents — you can unzip an .xlsx to see all parts, which is useful for auditing but also means sensitive data is not encrypted unless you add a password.
Alternatives and Future Trends
If you collaborate heavily, Google Sheets and LibreOffice can open and edit XLSX files, but they may not support every advanced feature (like certain chart types or complex conditional formatting). For data exchange, CSV remains the lingua franca, but it lacks types — dates and numbers can be misinterpreted. A newer option is the .xltx template format, which is just an XLSX with a different extension that forces a copy when opened. Microsoft continues to support XLSX as the default, but the binary XLSB remains for performance-critical work. There is no sign that XLSX will be replaced soon, but cloud-based collaboration is pushing toward formats that handle real-time co-authoring, which XLSX supports via Excel Online.
Frequently Asked Questions
What is the difference between .xlsx and .xlsm?
The only difference is that .xlsm can contain macros (VBA code), while .xlsx cannot. If your file has no macros, use .xlsx; it is safer and more compatible. If you have macros, you must use .xlsm, otherwise Excel will delete the code when saving.
Why is my .xlsx file so large?
XLSX is compressed, but large data volumes, high-resolution images, and many conditional formatting rules can inflate it. Try removing unused styles, compressing images, or saving as .xlsb, which often reduces size further because it stores data in a more compact binary form.
Can I open .xlsb in Google Sheets?
No, Google Sheets does not support .xlsb. You must convert it to .xlsx or .csv first. This is a common reason to stick with .xlsx if you collaborate online.
Does saving as .xls lose data?
Yes, potentially. The old .xls format does not support newer features like sparklines, slicers, or large worksheets beyond 65,536 rows. Excel will warn you about these incompatibilities, but many users ignore them and lose data.
Why does Excel say the file format and extension don’t match?
This warning appears when the file’s actual format differs from its extension. For example, you renamed a .xlsx to .xls, or you downloaded a file that was saved incorrectly. To fix it, save the file in the correct format from Excel, or use a converter.