Microsoft Excel XLS MIME Type
application/vnd.ms-excel means, how legacy Excel workbooks are structured, which applications open them, and how Poly supports .xls files. MIME type details for application/vnd.ms-excel
In active use| MIME type | application/vnd.ms-excel |
|---|---|
| Extensions | .xls.xlt |
| First standardized | 1996 |
| Created by | Microsoft |
| Browser support | No native browser preview, Excel for the web |
| Example applications | Microsoft Excel, LibreOffice Calc, Excel for the web |
| Poly support | Yes. Poly recognizes `application/vnd.ms-excel` and `.xls` workbooks, then prepares supported sheets for preview, search, and agent use. Protected, damaged, or incompatible files may not process. |
| Indexed by Poly | Yes. After successful processing, Poly makes readable cell content and rendered sheets searchable. Filename-only recognition does not include `.xlt` templates. |
| Preview in Poly | Yes. `.xls` files open in Poly's connected spreadsheet viewer, and processed workbooks receive a first-sheet thumbnail. Preview requires a connection. |
| Poly agent | Yes. After successful processing, the Poly agent can read sheet text and rendered sheet images, but it does not run macros or refresh external data. |
What does application/vnd.ms-excel mean?
application/vnd.ms-excel is the registered media type for Microsoft Excel spreadsheets. Microsoft registered it as a generic Excel identifier, independent of the application's version, subtype, or platform.1
Today, the type is most closely associated with the legacy .xls workbook family. Excel 97 through Excel 2003 used the BIFF8 binary format by default. Earlier Excel releases also used .xls, but their Binary Interchange File Format, or BIFF, records are not necessarily identical.23
The related .xlt extension identifies an Excel 97-2003 template. Microsoft describes both .xls workbooks and .xlt templates as binary Excel formats, while LibreOffice maps its corresponding import and export filters to application/vnd.ms-excel.34
.xls normally stores BIFF records in an OLE Compound File Binary container. .xlsx is a ZIP-based Office Open XML package. .xlsb is a newer binary workbook format introduced with Office 2007.23Why is 1996 listed as the registration date?
Microsoft submitted application/vnd.ms-excel for registration in February 1996 and followed up with IANA on March 25, 1996. The registration requires no parameters, allows an optional name parameter, and describes the object as a spreadsheet.1
Excel and .xls files are older than the MIME label. Early Excel versions used BIFF2, BIFF3, and BIFF4 as single worksheet streams. Excel 5.0 introduced BIFF5 and the compound-file workbook structure in 1993. Excel 97 introduced BIFF8 in 1997, which remained the default through Excel 2003.2
Microsoft began publishing the binary workbook specification under its Open Specification Promise in 2007. The maintained [MS-XLS] specification documents the BIFF8 structures used by Excel 97, Excel 2000, Excel 2002, and Excel 2003.5
How can you identify an XLS file?
Most Excel 5.0 and later .xls workbooks begin with the eight-byte Compound File Binary signature:
D0 CF 11 E0 A1 B1 1A E1
Those bytes identify the container, not Excel. Legacy Word and PowerPoint files, Windows Installer packages, and other compound files can have the same header. A BIFF workbook also contains a Workbook or older Book stream with records describing workbook globals and individual sheets.256
This page therefore does not list the shared compound-file header as a definitive magic number. Reliable identification checks the filename, declared media type, compound-file directory, and BIFF records together.
Some very old .xls files make detection more complicated. Excel 2.0 through 4.0 workbooks can be plain BIFF streams rather than compound files, and a file saved for compatibility may contain more than one BIFF generation.2 Renaming a CSV file or modern .xlsx package to .xls does not convert its contents.
How do you open an application/vnd.ms-excel file?
General-purpose browsers do not parse BIFF workbooks themselves. Use a spreadsheet application or a web service:
- Microsoft Excel opens Excel 5.0/95 and Excel 97-2003
.xlsworkbooks, as well as.xlttemplates.3 - LibreOffice Calc imports and exports several legacy Excel generations under
application/vnd.ms-excel.4 - Excel for the web can open
.xlsworkbooks, but converts them to the newer.xlsxformat for browser editing.7
Support in Poly
Poly recognizes application/vnd.ms-excel and .xls filenames as spreadsheets. When processing succeeds, you can:
- Browse the workbook with a first-sheet thumbnail and a connected spreadsheet preview.
- Search readable cell content and find visually related rendered sheets.
- Ask the Poly agent about text and images in the processed sheets.
The interactive preview requires a connection. Poly presents the workbook's readable sheet content, but it does not run VBA or Excel 4.0 macros, refresh external data connections, or behave like a live spreadsheet calculation environment. Password-protected, damaged, or incompatible workbooks may not produce a preview or content index.
Use a spreadsheet application when you need to edit cells, audit formulas, refresh data, or navigate a large model. Poly's preview and agent support are designed for finding and understanding readable workbook content.
Poly does not currently infer .xlt from a filename. Supply the correct media type when importing a legacy template if you want Poly to treat it as an Excel spreadsheet.
Should you convert XLS to XLSX, PDF, or CSV?
Choose a destination based on what must survive:
| Destination | Best for | Main tradeoff |
|---|---|---|
| XLSX | Continued editing in current spreadsheet software | Legacy macros and unsupported features require review |
| Fixed-layout review, printing, and sharing | Formulas, filters, cell structure, and editability are reduced | |
| CSV | Exchanging one plain table with data tools | Only one sheet's values survive; formulas, types, formatting, and charts are lost |
| ODS | Editing in an OpenDocument workflow | Excel-specific formulas and features may translate differently |
Microsoft has used XLSX as Excel's default workbook format since Office 2007, while retaining .xls for compatibility.23 Excel for the web also converts .xls to .xlsx before editing.7
Conversion creates a new representation. Renaming budget.xls to budget.xlsx leaves the BIFF bytes unchanged. For an important workbook, preserve the original, create an editable modern copy, and export reviewed PDF or CSV copies when those simpler representations are useful.
Security and privacy considerations
Treat an unexpected XLS attachment as active-capable content. A legacy workbook can contain VBA, Excel 4.0 macro sheets, external links, embedded OLE objects, and data connections. Microsoft's current default macro setting disables macros with a notification, and Microsoft warns that enabling all macros can expose a computer to malicious code.8
External content can also create privacy and integrity risks. Microsoft blocks external workbook content by default because linked images and data connections can contact remote systems, disclose information, or access data with the recipient's credentials.9 Enable links or connections only when you trust both the workbook and its sources.
Workbooks may preserve author and company properties, comments, hidden sheets, hidden names, formulas, cached values, and links to local or network locations. A printable view does not reveal everything stored in the file. Inspect workbook properties, hidden content, links, and macros before publishing sensitive data.
Conversion is not sanitization. It can make a review copy easier to inspect, but a successful preview does not prove that the original workbook is safe.
XLS compared with XLSX
| Property | XLS | XLSX |
|---|---|---|
| Common extension | .xls | .xlsx |
| Media type | application/vnd.ms-excel | application/vnd.openxmlformats-officedocument.spreadsheetml.sheet |
| Main structure | BIFF binary records, commonly inside OLE/CFB | ZIP package containing XML and related parts |
| Default Excel era | Excel 97 through Excel 2003 | Excel 2007 onward |
| Macro convention | An XLS workbook can contain macros without changing its extension | Macro-enabled workbooks normally use .xlsm |
| Browser editing | Converted to XLSX by Excel for the web | Supported directly by Excel for the web |
XLSX is usually the practical editable format for a new workbook. Keep XLS when a legacy workflow requires it, when a system specifically exports it, or when preserving the original file matters.
Footnotes
- Internet Assigned Numbers Authority.
application/vnd.ms-excelMedia Type Registration. The 1996 registration identifies Microsoft Excel generically and documents its parameters and security considerations. ↩ ↩2 - Library of Congress. Microsoft Office Excel 97-2003 Binary File Format (.xls, BIFF8). The format description covers BIFF history, compound-file structure, identification, metadata, and successors. ↩ ↩2 ↩3 ↩4 ↩5 ↩6
- Microsoft. File Format Reference for Word, Excel, and PowerPoint. Microsoft distinguishes Excel 5.0/95 and Excel 97-2003
.xlsworkbooks,.xlttemplates,.xlsb, and.xlsx. ↩ ↩2 ↩3 ↩4 ↩5 - The Document Foundation. File Conversion Filter Tables. LibreOffice lists legacy Excel workbook and template filters under
application/vnd.ms-excel. ↩ ↩2 - Microsoft. MS-XLS: Excel Binary File Format (.xls) Structure. The maintained specification covers the BIFF8 format used by Excel 97 through Excel 2003. ↩ ↩2
- Microsoft. Compound File Header. The CFB specification defines the shared eight-byte header signature. ↩
- Microsoft Support. Differences Between Using a Workbook in the Browser and in Excel. Microsoft documents opening
.xlsin Excel for the web and converting it to.xlsxfor editing. ↩ ↩2 - Microsoft Support. Change Macro Security Settings in Excel. Microsoft documents the available macro policies and warns against enabling all macros. ↩
- Microsoft Support. Block or Unblock External Content in Office Documents. Microsoft explains the risks of linked content and data connections and recommends enabling them only for trusted sources. ↩