XLS 是什么?XLS 格式完整指南

了解XLS文件的功能及使用场景,全面指南涵盖XLS格式及比较。

免费在线文件转换工具。在 Windows、macOS、Linux、Android 和 iOS 上的 Chrome、Firefox、Safari、Edge、Opera 及其他现代浏览器中运行。无需安装软件或注册。所有转换都直接在您的浏览器中进行,因此您的文件不会离开您的设备。免费使用,无需账户。

XLS

XLS 是什么?XLS 格式完整指南

XLS 文件的完整指南 - 技术细节、优缺点、使用案例和常见问题

最后更新:

Year1987
TypeSpreadsheet
Usage旧版电子表格

它是什么?

XLS是Microsoft Excel从1987年2.0版本到2003年使用的二进制文件格式。XLS文件使用BIFF(二进制交换文件格式)标准在专有二进制结构中存储电子表格数据,包括单元格、公式、图表、数据透视表、宏和格式,该标准经过多个版本演变(BIFF2至BIFF8)。该格式曾是二十年来主流的电子表格文件类型,并且因与旧系统的兼容性需求而仍然广泛使用。

2007年,微软用基于Office Open XML标准的XLSX格式取代了XLS作为默认格式。XLSX文件更小、更透明,更易于编程处理。尽管如此,XLS文件仍然在企业环境、政府系统和尚未迁移到新格式的遗留应用程序中出现。Excel、LibreOffice Calc和Google Sheets的所有当前版本都可以打开和编辑XLS文件。

技术规格

DeveloperMicrosoft Corporation
File Extension.xls
MIME Typeapplication/vnd.ms-excel
Format TypeBinary (BIFF - Binary Interchange File Format)
IntroducedExcel 2.0, 1987
Format VersionsBIFF2 through BIFF8
Superseded ByXLSX (2007)
SoftwareMicrosoft Excel, LibreOffice Calc, Google Sheets

优缺点

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.

被XLSX取代

Lacks modern Excel features introduced after 2007 and is no longer the default save format.

何时使用

以下是XLS最合适的最常见情况:

遗留系统集成

Use XLS when exchanging spreadsheets with older enterprise software, ERP systems, or government portals that require XLS.

向后兼容性

Save as XLS when recipients use Excel versions older than 2007 or other software with limited XLSX support.

数据迁移

Convert historical XLS archives to XLSX to remove row and column limits and enable modern Excel features.

打开遗留文件

Open archived XLS files from legacy accounting or data management systems.

How 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

Windows, macOS, iOS, AndroidSubscription / One-time $149.99

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

可导出为: PDF, CSV, TXT, HTML, XML

适合: Choose Microsoft Excel for complete XLS functionality and professional-grade features.

访问 Microsoft Excel →

LibreOffice Calc 7.4

Windows, macOS, LinuxFree (GPL)

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

可导出为: PDF, HTML, CSV, ODS, XLSX

适合: LibreOffice Calc is ideal for users seeking a free, open-source option with decent XLS support.

访问 LibreOffice Calc →

Google Sheets 2023

All (browser)Free / Paid

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

可导出为: XLSX, PDF, CSV, TSV, ODS

适合: Google Sheets is perfect for users needing a collaborative, cloud-based solution for XLS files.

访问 Google Sheets →

WPS Office Spreadsheets 2023

Windows, macOS, Linux, Android, iOSFree / Paid

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

可导出为: PDF, DOCX, TXT, HTML, XLSX

适合: WPS Office Spreadsheets is a solid choice for users looking for a free, Excel-like experience with XLS support.

访问 WPS Office Spreadsheets →

Convert XLS Files

需要转换XLS文件?使用我们的免费在线转换器。

Convert XLS Files

参考资料

  1. [MS-XLS]: Excel Binary File Format (.xls) Structure - Microsoft Learn
  2. Microsoft Office Excel 97-2003 Binary File Format (.xls, BIFF8) - Library of Congress
  3. Microsoft Excel file format - Wikipedia

关于XLS的常见问题

XLS和XLSX有什么区别?

XLS是Excel 2007之前使用的二进制BIFF格式,行数限制为65,536行。XLSX是基于XML的Office Open XML格式,行数限制为1,048,576行,文件大小更小,与现代工具的兼容性更好。

我能在Google Sheets中打开XLS吗?

可以。Google Sheets可以直接打开XLS文件。将文件上传到Google Drive,然后用Google Sheets打开。某些复杂的格式或宏可能不能完全支持。

我如何将XLS转换为XLSX?

在Excel中打开文件,使用另存为将其保存为XLSX。或者,使用我们免费的在线转换器将XLS转换为XLSX。

包含宏的XLS文件安全吗?

XLS文件可能包含执行代码的VBA宏。在安全设置中禁用宏,仅对来自可信来源的XLS文件启用宏。

为什么我的XLS文件有行数限制?

XLS二进制格式(BIFF8)的设计有硬性限制,最多65,536行。如果需要更多行,请转换为XLSX,它支持超过一百万行。