Microsoft Excel 97–2003

.xls · Spreadsheets

An XLS file is a Microsoft Excel workbook in the binary format of Excel 97 to 2003. Excel 2007 switched to XLSX, but XLS is far from gone. Accounting packages, banks, e-shops and in-house systems still export "Excel" as XLS, public bodies publish old statistics and forms in it, and company archives are full of it. Some of those files are not real XLS at all, which causes the most common error message described below.

History

Excel appeared on the Macintosh in 1985 and on Windows in 1987. Its native format, BIFF (Binary Interchange File Format), went through several versions. BIFF5 in Excel 5.0 (1993) brought multiple worksheets in one file, and BIFF8, introduced with Excel 97, is what we now call XLS. It remained the default until Excel 2003. Microsoft published the specification in 2007 under its Open Specification Promise and maintains it as [MS-XLS]. Current Excel opens XLS in compatibility mode and can still save it.

What is inside an XLS file

XLS uses the Compound File Binary container, the same as DOC and PPT (first bytes D0 CF 11 E0). A "Workbook" stream holds a sequence of binary records: global settings, fonts, formats and shared strings first, then one substream per sheet with cells, formulas, charts and print settings. Other streams carry VBA macros and document properties. Details from the Library of Congress format description and the specification:

  • Size limits: 65,536 rows and 256 columns (A to IV) per sheet. XLSX allows 1,048,576 rows and 16,384 columns.
  • Macros: an XLS can contain VBA code without any hint in the extension. In the XLSX family only XLSM can.
  • Passwords: the encryption options of XLS (XOR obfuscation, 40-bit RC4, CryptoAPI RC4) are weak by today's standards. Sensitive data belong in an XLSX protected with a password, which uses AES.

How to open an XLS file

  • Windows and Mac: Microsoft Excel, any version, or Excel for the web with a free Microsoft account.
  • Free: LibreOffice Calc on Windows, macOS and Linux, Numbers on a Mac, Google Sheets after uploading to Google Drive.
  • Phone: the Excel app for Android and iOS, Google Sheets, Numbers on iPhone.

Common problems

"The file format and extension don't match"

Excel shows this warning when a file called .xls is actually an HTML table, an XML spreadsheet or a CSV, which many web systems and bank exports produce. If you trust the source, click Yes. The data open normally, then save as XLSX. If the file came unexpectedly by e-mail, do not open it.

Data beyond row 65,536 are missing

Someone saved a larger table as XLS and everything past the limit was cut off. The data cannot be recovered from that XLS. Ask for an XLSX or CSV export.

Macros in an XLS are blocked

Since 2022 Microsoft 365 blocks VBA macros in files from the internet. If you trust the file, open its Properties in File Explorer and tick Unblock.

Dates are four years off after copying

Old Mac workbooks used the 1904 date system, Windows uses 1900. The difference is 1,462 days. The setting is in Excel Options > Advanced > Use 1904 date system.

Converting XLS

We convert spreadsheets on our own servers.

  • XLS to XLSX is the usual modernisation, see XLS to XLSX. All sheets, formulas, formatting, merged cells and charts carry over. VBA macros are dropped, because XLSX cannot hold them.
  • XLS to PDF prints every sheet using its page setup and print areas. A wide sheet without "fit to page width" splits across several pages. More under XLSX to PDF, which behaves the same.
  • XLS to CSV or TXT exports only the first sheet, as values, in UTF-8. CSV uses commas, TXT tabs.
  • XLS to DOCX, DOC, ODT or RTF turns the sheet into a table in a text document. Formulas become their results.
  • XLS to ODS for LibreOffice, the open format some public bodies prefer.

With Excel installed, File > Info > Convert is the quickest way for a single file. Our converter is useful without Office, on Linux or a phone, and for batches of up to 10 files.

XLS at a glance

DeveloperMicrosoft
Format versionBIFF8, Excel 97 to 2003 (default 1997–2007)
Specification[MS-XLS], Open Specification Promise
ContainerCompound File Binary (OLE)
Limits65,536 rows × 256 columns per sheet
SuccessorXLSX (Office Open XML, ISO/IEC 29500)

We can convert XLS into

Documents

PDF DOCX DOC ODT TXT HTML RTFPDF/ADOCMDOTDOTXFODTOTTUOTABWAWTFOZABW

Spreadsheets

XLSXODSDBFDIFFODSOTSSLKUOSXLSMXLTXLTXGNUMERIC

Images

JPG PNGWEBP GIF TIFFHEICAVIFJXLPSDICOAAIAPNGARTAVS BMP CINCURDCXDDSDPXFF FITSFL32 HDRHRZJP2JBIGJNGJPCMNGMTVOTBPALMPAM PBMPCD PCXPFMPGMPGXPHMPICTPPMPSBPTIFQOIRASRGFSGISIXELSUN TGAVICARVIFFVIPS WBMPXBMXPMXWDDCM

Vector images

SVG EPSEMFFXGHPGLPOV PSSIFSVGZWMFXAML

eBooks

EPUB MOBI AZW3 FB2CBZHTMLZ LIT LRF OEB PDB TCRTXTZCB7CBTDJVU

Data

CSVJSONXMLYAMLSQLTSVJSONL

Markup languages

MDTEXRSTADOCWIKIORGDOCBOOKCONTEXTDOKUWIKIHADDOCKICMLIPYNBJATSJIRAMANMSMUSEOPMLTEITEXITEXTILETYPXWIKIZIM