What is XLS?
Complete guide to the XLS file format
Last updated:
What is XLS?
XLS is the binary file format used by Microsoft Excel from version 2.0 in 1987 through Excel 2003. XLS files store spreadsheet data including cells, formulas, charts, pivot tables, macros, and formatting in a proprietary binary structure using the BIFF (Binary Interchange File Format) standard, which evolved through multiple versions (BIFF2 through BIFF8). The format was the dominant spreadsheet file type for two decades and remains in widespread use for compatibility with older systems.
In 2007 Microsoft replaced XLS as the default format with XLSX, based on the Office Open XML standard. XLSX files are smaller, more transparent, and easier to process programmatically. Despite this, XLS files are still encountered in enterprise environments, government systems, and legacy applications that have not migrated to newer formats. All current versions of Excel, LibreOffice Calc, and Google Sheets can open and edit XLS files.
How XLS Works
The legacy .xls file is built on the same Compound File Binary Format that underpins the other old Office formats. That means a single .xls file acts like a miniature file system, with named internal streams that hold the different parts of the workbook. Inside that container, the actual spreadsheet content is written using the BIFF record stream, short for Binary Interchange File Format.
In the BIFF stream, the workbook is stored as a long sequence of binary records. Each record has a type code and a length, followed by its data, and Excel reads these records in order to reconstruct the sheets, cells, and their relationships. Cell values, the formulas behind them, number and font formatting, and definitions for charts are all expressed as records within this stream rather than as readable text.
Because the layout is binary and record based, it was compact and fast to load on the hardware of its time, but it was also closely tied to Excel's own behavior. If the workbook included automation, the VBA macro project was stored as an additional binary part inside the same compound file, sitting alongside the worksheet data rather than in a separate file.
One consequence of this design worth knowing is scale. The classic .xls grid is capped at 65,536 rows and 256 columns per worksheet, a hard limit baked into the format. For the datasets of its era that was ample, but as spreadsheets grew this ceiling became a real constraint and was one of the motivations for a redesigned successor.
History and Standardization
The .xls extension belongs to Microsoft Excel, and the binary form most people mean is the Excel 97 to 2003 generation. For most of its life it was a proprietary format defined mainly by how Excel itself read and wrote workbooks, so other tools had to reverse engineer the BIFF records to interoperate reliably.
Later, Microsoft published documentation for its legacy binary Office formats, including the compound file structure and the BIFF record definitions. That written specification made it much more practical for third party software to open and generate .xls files correctly, even though the format itself remained a product of its original design.
The decisive change came with Office 2007, which introduced the XML based .xlsx as the new default spreadsheet format, along with the macro enabled .xlsm. This new family is built on Office Open XML, published as ECMA-376 and later adopted as ISO/IEC 29500. The redesign also lifted the old grid limits dramatically, giving worksheets a far larger row and column capacity than .xls ever allowed.
XLS Compared to XLSX, CSV, and ODS
Against its successor .xlsx, XLS trades capability for backward compatibility. XLSX is a ZIP of XML parts, so it is more transparent, usually smaller on disk, easier to repair, and it removes the tight row and column ceiling. The honest reason to keep .xls is legacy reach: some older systems, add ins, and rigid workflows still expect the binary format, and a few obscure features can behave slightly differently across the transition.
Compared with CSV, the difference is one of richness versus simplicity. A CSV file is plain text with no formulas, no formatting, no multiple sheets, and no charts; it stores only raw cell values separated by delimiters. That makes CSV wonderfully portable and easy for any program to read, but a .xls workbook preserves the live formulas, styling, and structure that a CSV simply discards.
Against ODS, the OpenDocument Spreadsheet used by LibreOffice and similar suites, XLS reflects a proprietary lineage rather than an open standard first design. ODS is a natural fit for open source and vendor neutral environments, while XLS still benefits from the enormous installed base of existing Excel workbooks and the expectation, in many offices, that a spreadsheet will simply open in Excel. For anything new, converting a legacy .xls to .xlsx is usually the most future proof choice.
Technical Details
XLS vs Other Spreadsheet Formats
| Feature | XLS | XLSX | CSV |
|---|---|---|---|
| Structure/type | Binary (BIFF8)[2] | Zipped XML | Delimited text |
| Formulas/formatting | Yes[1] | Yes | None |
| Multi-sheet | Yes | Yes | No |
| Spec published by | Microsoft[3] | ECMA / ISO | IETF |
| Open/proprietary | Proprietary | Open (vendor-led) | Open |
| Best for | Legacy spreadsheets | Modern spreadsheets | Tabular interchange |
XLS is the legacy binary Excel format, replaced by the XML-based XLSX while CSV stays format-free for plain data.
Pros and Cons
Advantages
Required for exchanging spreadsheets with older software and systems that do not support XLSX.
Supported by Excel, LibreOffice, Google Sheets, and virtually all spreadsheet applications.
All Excel formulas, functions, and chart types from the pre-2007 era are preserved in XLS.
Stores VBA macros for spreadsheet automation, though XLSM is now preferred for macro-enabled workbooks.
Disadvantages
The binary BIFF format is hard to parse, debug, or manipulate without specialized libraries.
XLS is limited to 65,536 rows and 256 columns, compared to 1,048,576 rows and 16,384 columns in XLSX.
XLS files containing macros are a well-known vector for malicious code distribution.
Lacks modern Excel features introduced after 2007 and is no longer the default save format.
When to Use XLS
Here are the most common situations where XLS is the right choice:
Legacy System Integration
Use XLS when exchanging spreadsheets with older enterprise software, ERP systems, or government portals that require XLS.
Backward Compatibility
Save as XLS when recipients use Excel versions older than 2007 or other software with limited XLSX support.
Data Migration
Convert historical XLS archives to XLSX to remove row and column limits and enable modern Excel features.
Opening Legacy Files
Open archived XLS files from legacy accounting or data management systems.
Convert XLS Files
Need to convert your XLS files? Use our free online converter.
Try Document Converter FreeHow to open a XLS file
XLS files, primarily associated with Microsoft Excel, are widely used for spreadsheets and data analysis. Software that opens and works with XLS can be categorized into professional tools like Microsoft Excel, free and open-source alternatives like LibreOffice Calc, browser-based options like Google Sheets, and built-in applications found in operating systems. Each category serves different user needs, from advanced features for professionals to basic functionality for casual users.
When choosing software for XLS, important factors include feature fidelity, as some applications may not fully support advanced Excel features. Users should consider whether they need editing capabilities or simply viewing options, as well as the cost model, which can vary from free to subscription-based. Platform compatibility is also crucial, especially for teams using different operating systems. Lastly, understanding when to convert XLS to other formats can impact workflow efficiency.
Microsoft Excel 2021
Microsoft Excel is the industry standard for spreadsheet software, providing comprehensive tools for creating, editing, and analyzing XLS files. It fully supports all features of the XLS format, ensuring high fidelity in viewing and editing complex spreadsheets.
- PivotTables for data analysis
- Advanced charting and graphing tools
- Macros for automation
- Collaboration features with real-time editing
- Data validation and conditional formatting
- Full compatibility with all XLS features
- Robust data analysis tools
- Widely used in professional environments
- Higher cost compared to alternatives
- Requires installation and updates
- Can be overwhelming for casual users
Exports to: PDF, CSV, TXT, HTML, XML
Best for: Choose Microsoft Excel for complete XLS functionality and professional-grade features.
Visit Microsoft Excel →LibreOffice Calc 7.4
LibreOffice Calc is a free and open-source spreadsheet program that offers a solid alternative for working with XLS files. It supports a wide range of Excel features, although some advanced functions may not translate perfectly.
- Data analysis with pivot tables
- Support for complex formulas
- Chart creation and editing tools
- Macro support with Basic scripting
- Import and export to multiple formats
- Completely free and open-source
- Good compatibility with XLS files
- Regularly updated by the community
- Limited support for advanced Excel features
- Interface may feel less polished
- Occasional formatting issues on complex files
Exports to: PDF, HTML, CSV, ODS, XLSX
Best for: LibreOffice Calc is ideal for users seeking a free, open-source option with decent XLS support.
Visit LibreOffice Calc →Google Sheets 2023
Google Sheets is a cloud-based spreadsheet application that allows users to create and edit XLS files online. It offers real-time collaboration and basic compatibility with Excel features, making it suitable for team projects.
- Real-time collaboration and sharing
- Basic data analysis tools
- Integration with Google Drive
- Add-ons for extended functionality
- Version history for document tracking
- Excellent for collaborative work
- Accessible from any device with internet
- No installation required
- Limited advanced features compared to Excel
- Requires internet connection for full functionality
- Potential privacy concerns with cloud storage
Exports to: XLSX, PDF, CSV, TSV, ODS
Best for: Google Sheets is perfect for users needing a collaborative, cloud-based solution for XLS files.
Visit Google Sheets →WPS Office Spreadsheets 2023
WPS Office Spreadsheets is part of a free office suite that provides a user-friendly interface for working with XLS files. It offers a good level of compatibility with Excel and includes several features for data management.
- Multiple tabbed interface for easy navigation
- Data sorting and filtering tools
- Built-in templates for quick setup
- Chart and graph creation tools
- Support for VBA macros
- User-friendly interface similar to Excel
- Good compatibility with XLS files
- Free version available with essential features
- Ads in the free version
- Some advanced features may be limited
- Less known than other major tools
Exports to: PDF, DOCX, TXT, HTML, XLSX
Best for: WPS Office Spreadsheets is a solid choice for users looking for a free, Excel-like experience with XLS support.
Visit WPS Office Spreadsheets →