Spreadsheet Industry Standard.xlsxMIME: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet

XLSX Format Specification: Office Open XML, Shared Strings & ZIP Architecture

Understand the modern spreadsheet standard: XML worksheet structures, shared string deduplication tables, cell formulas, and client-side conversion.

XLSX is the default file format for Microsoft Excel spreadsheets, introduced with Office 2007 to replace the legacy proprietary binary .xls format. Standardized as part of Office Open XML (ECMA-376 and ISO/IEC 29500), an XLSX file is actually a compressed ZIP archive containing structured XML documents, shared string tables, styles, and calculation workbooks.

Format Specification & Header Signature

Core file signatures, developer metadata, and standard RFC specifications:

Magic Bytes (Hex Signature)50 4B 03 04 (PK.. - standard ZIP archive signature)
MIME Media Typeapplication/vnd.openxmlformats-officedocument.spreadsheetml.sheet
Standard / SpecificationECMA-376 / ISO/IEC 29500
Initial Developer / OrganizationMicrosoft Corporation / ECMA Committee (2007 (Excel 2007 / Office Open XML))
Container FormatZIP Archive (PKZip v2.0)
Schema StandardECMA-376 / ISO/IEC 29500 (SpreadsheetML)
Max Worksheet Dimensions1,048,576 rows by 16,384 columns (XFD)
Character EncodingUTF-8 XML documents

Operating System & Browser Compatibility Matrix

Where .xlsx is natively supported without third-party codecs:

Platform / EnvironmentNative SupportImplementation Notes
Windows / macOSSupportedNative support in Microsoft Excel, Apple Numbers, and LibreOffice Calc.
Web & MobileSupportedNative viewing in Google Sheets, Microsoft 365 Web, and mobile viewers.

Advantages of Microsoft Excel OpenXML Spreadsheet

  • •Open XML standard prevents vendor lock-in and allows programmatic generation.
  • •ZIP compression significantly reduces spreadsheet file sizes compared to legacy .xls.
  • •Supports advanced financial formulas, pivot tables, macros, and charting engines.
  • •Shared string table deduplicates repetitive text across millions of cells.

Limitations & Trade-Offs

  • •Complex nested XML makes naive string parsing difficult without specialized libraries.
  • •Macros (.xlsm) can carry security risks if not isolated.

Inside the XLSX ZIP Archive

Renaming an .xlsx file to .zip and extracting it reveals a standardized directory structure: [Content_Types].xml defines MIME mappings, xl/workbook.xml defines sheet names, and xl/worksheets/sheet1.xml holds the raw cell data.

Text strings are stored in xl/sharedStrings.xml as a unique indexed array. Individual cells reference an index number (e.g. `<c t="s"><v>0</v></c>`), drastically reducing RAM consumption for large tables.

Frequently Asked Questions about Microsoft Excel OpenXML Spreadsheet

Can I convert CSV to XLSX in browser JavaScript?

Yes! WebAssembly and lightweight JS engines (like SheetJS) can package tabular CSV data into an authentic .xlsx ZIP archive entirely in client-side memory.

What is the difference between .xls and .xlsx?

.xls is an obsolete proprietary binary format (BIFF8) limited to 65,536 rows. .xlsx is an open ZIP/XML format supporting over 1 million rows.