What Is an Excel File Extension? A Guide to .xlsx, .xls, .csv, and More

If you've ever saved a spreadsheet and noticed letters like .xlsx or .csv appear at the end of the filename, you've encountered a file extension. For Excel specifically, there isn't just one — Microsoft's spreadsheet software supports a surprisingly wide range of file formats, each serving a different purpose. Understanding what these extensions mean helps you work more confidently with data, avoid compatibility headaches, and make smarter decisions about how you save and share your files.

What Is a File Extension?

A file extension is the short suffix at the end of a filename, separated by a period. It signals to your operating system — and to any software you're using — what type of file it is and how to open it.

For example:

  • budget_2024.xlsx → an Excel workbook
  • contacts.csv → a comma-separated values file
  • report_old.xls → an older Excel format

Extensions aren't just cosmetic labels. They define the underlying file structure, what data can be stored, and which programs can read the file.

The Most Common Excel File Extensions

Excel has evolved significantly over the decades, and so have its file formats. Here's a breakdown of the formats you're most likely to encounter:

ExtensionFull NameIntroducedKey Trait
.xlsxExcel WorkbookExcel 2007Default modern format; XML-based
.xlsExcel 97–2003 WorkbookExcel 97Legacy binary format
.xlsmExcel Macro-Enabled WorkbookExcel 2007Like .xlsx but supports VBA macros
.xlsbExcel Binary WorkbookExcel 2007Faster load times for large files
.csvComma-Separated ValuesBroadly universalPlain text; no formatting
.xltxExcel TemplateExcel 2007Reusable template without macros
.xltmExcel Macro-Enabled TemplateExcel 2007Reusable template with macro support

Breaking Down the Key Formats 📄

.xlsx — The Modern Default

When you save a new spreadsheet in Excel today, it almost always defaults to .xlsx. This format was introduced with Excel 2007 as part of Microsoft's move to the Office Open XML standard — a compressed, XML-based structure that replaced the older proprietary binary format.

.xlsx files:

  • Are smaller than older .xls files in many cases
  • Support up to 1,048,576 rows and 16,384 columns
  • Are compatible with Google Sheets, LibreOffice, and other modern tools
  • Cannot store VBA macros (code that automates tasks)

If you're working with standard data, formulas, charts, and pivot tables, .xlsx is almost certainly the right format for day-to-day use.

.xls — The Legacy Format

.xls is Excel's binary format from the pre-2007 era. You'll typically encounter it when opening files created in older versions of Excel or passed along from systems that haven't been updated.

Key differences from .xlsx:

  • Limited to 65,536 rows — a hard ceiling that can cause real problems with large datasets
  • Larger file sizes in many cases
  • Broader compatibility with very old software
  • Still opens without issue in modern Excel, though you may be prompted to convert it

.xlsm — When Macros Are Involved 🤖

If someone sends you an .xlsm file, it contains VBA (Visual Basic for Applications) macros — scripts that automate repetitive tasks like formatting, data entry, or generating reports. Excel separates macro-enabled files from standard files deliberately, as a security measure. When you open an .xlsm file, Excel typically warns you before enabling macros.

If you try to save a workbook containing macros as .xlsx, Excel will strip the macros out — and warn you before doing so.

.xlsb — Speed for Large Files

.xlsb stores data in a binary format rather than XML, making it significantly faster to open and save when working with very large datasets (think hundreds of thousands of rows with complex formulas). It supports macros like .xlsm. The trade-off is reduced compatibility — some third-party tools that can read .xlsx may struggle with .xlsb.

.csv — Universal but Stripped Down

.csv files are plain text files where each row represents a record and each value is separated by a comma (or sometimes a semicolon or tab, depending on regional settings). They contain no formatting, no formulas, no charts — just raw data.

CSV is arguably the most universally compatible data format in existence. Databases, CRMs, programming languages, and virtually every data tool can read and write CSV. When moving data between systems — say, exporting customer records from a CRM into Excel, or feeding data into a Python script — CSV is often the default choice.

The limitations are real, though: a CSV can only represent a single sheet, and nothing visual survives the export.

What Determines Which Format You Should Use?

This is where individual setups create genuinely different answers. Several variables affect which extension makes sense in a given situation:

  • Who else needs to open the file — colleagues on older systems, external tools, or web apps may have format constraints
  • Whether your workbook contains macros — if yes, .xlsx won't preserve them
  • File size and performance — very large files may behave better as .xlsb
  • Data portability needs — if the file needs to feed into a database or another application, CSV is often expected
  • Security policies — some organizations block macro-enabled files (.xlsm) at the email or network level
  • Platform — Google Sheets handles .xlsx well but has limited support for .xlsm macros, and essentially no support for .xlsb

How Excel Extensions Behave Across Platforms

Excel on Windows, Excel on Mac, Excel for the web (Microsoft 365), Google Sheets, and LibreOffice Calc all handle these formats slightly differently. Generally speaking:

  • .xlsx has the broadest cross-platform support
  • .xlsm macros may not run correctly outside of desktop Excel
  • .xlsb has the narrowest third-party compatibility
  • .csv works everywhere, with minor regional formatting quirks (decimal separators, date formats) that can occasionally cause data issues

Viewing and Changing File Extensions

On Windows, file extensions are sometimes hidden by default. You can reveal them in File Explorer by going to View → Show → File name extensions. On macOS, extensions are generally visible but can be toggled in Finder's preferences.

In Excel itself, you choose the format when you use File → Save As and select from the format dropdown. The extension updates automatically based on your selection.

Renaming a file's extension manually (e.g., changing .xls to .xlsx by editing the filename) does not convert the file — it only changes the label, and the file may not open correctly or at all. Proper conversion requires opening the file in Excel and re-saving in the target format.

The Format Question Is Really a Use-Case Question

Excel's range of extensions exists because no single format solves every problem. A financial model with complex macros has different needs than a simple contact list being handed off to a marketing platform. The "right" extension shifts depending on your workflow, your collaborators, the tools in your stack, and how the file will be used after it leaves your hands. The format itself is almost never the interesting part — it's what those variables look like in your specific situation that determines which one actually fits.