XLS vs XLSX: What's the Difference?

10 min read

XLS vs XLSX explained: key differences, file size, security, performance tips, and how to view or convert Excel files free online.

Try it yourself

Use our free excel to pdf tool to do this instantly — no signup required.

Excel to PDF

If you work with Excel files, you've probably seen both .xls and .xlsx file extensions. They're both Excel formats, but there are important differences.

Need to view an Excel file? Open XLS or XLSX files instantly in your browser with the Linkyhost XLSX Viewer — no Excel required.

Quick Comparison

FeatureXLSXLSX
Introduced1987 (Excel 2.0)2007 (Excel 2007)
Format typeBinaryXML-based (Open XML)
Max rows65,5361,048,576
Max columns256 (IV)16,384 (XFD)
File sizeLargerSmaller (compressed)
SecurityLess secureMore secure
CompatibilityOlder softwareModern software

What is XLS?

XLS is the original Excel Binary File Format used from Excel 97 to Excel 2003. It stores data in a proprietary binary format.

Characteristics:

  • Binary format (not human-readable)
  • Smaller row/column limits
  • Can contain macros
  • Supported by all Excel versions

What is XLSX?

XLSX is the modern Excel format introduced in 2007. The "X" stands for XML - it's actually a compressed ZIP file containing XML documents.

Characteristics:

  • XML-based (technically readable)
  • Much larger capacity
  • Cannot contain macros (use XLSM for macros)
  • Smaller file sizes due to compression
  • Open standard (Office Open XML)

A Brief History of Excel File Formats

Understanding where these formats came from helps explain why both still exist today.

  • 1985 — Microsoft Excel 1.0 launches on Macintosh with its own binary file format.
  • 1987 — Excel 2.0 arrives on Windows. The .xls extension becomes standard.
  • 1993 — Excel 5.0 introduces Visual Basic for Applications (VBA), enabling macros within XLS files.
  • 1997 — Excel 97 refines the binary format. This version of XLS (BIFF8) becomes the most widely used and remains the basis of the .xls format through Excel 2003.
  • 2006 — Microsoft announces the Office Open XML (OOXML) standard and submits it for international standardization.
  • 2007 — Excel 2007 ships with XLSX as the default format. Row limits jump from 65,536 to over one million.
  • 2008 — OOXML is approved as an ISO/IEC standard (ISO 29500), making XLSX a recognized open format.
  • Present — XLSX is the universal default. XLS persists mainly in legacy systems and archived files.

Why Did Microsoft Create XLSX?

  1. Larger capacity - Modern data needs exceeded XLS limits
  2. Smaller files - ZIP compression reduces size significantly
  3. Open standard - Easier for other software to read/write
  4. Better security - XML format is easier to scan for threats
  5. Data recovery - XML is easier to repair if corrupted

Which Format Should You Use?

Use XLSX when:

  • Creating new spreadsheets
  • Working with large datasets
  • Sharing files with others
  • File size matters
  • Using modern Excel features

Use XLS when:

  • Compatibility with very old software
  • Required by legacy systems
  • Working with macros (though XLSM is better)

Bottom line: Use XLSX unless you have a specific reason not to.

When to Use XLSM (Macro-Enabled Workbooks)

If your spreadsheet relies on VBA macros, neither XLS nor XLSX is the right choice. XLSX deliberately strips macros for security, and while XLS supports macros, its other limitations make it a poor option for new work. That is where XLSM comes in.

What is XLSM?

XLSM is identical to XLSX in structure — it uses the same XML-based, ZIP-compressed format and has the same row, column, and file size characteristics — but it allows VBA macro code to be stored inside the file.

When you should use XLSM:

  • Your workbook contains VBA macros or user-defined functions
  • You need automation like auto-generated reports, data validation scripts, or custom toolbar buttons
  • You are distributing templates that include macro-driven workflows

Security considerations:

  • Most email providers and corporate firewalls block or flag XLSM attachments because macros can carry malicious code
  • Recipients will see a security warning when opening an XLSM file and must explicitly enable macros
  • If your recipients only need to view the data (not run macros), export a copy as XLSX or PDF before sharing

Quick rule of thumb: Use XLSX for data and XLSM for automation. If you are unsure, start with XLSX and switch to XLSM only when you add your first macro.

How to Tell XLS from XLSX

By extension:

  • File ends in .xls = XLS format
  • File ends in .xlsx = XLSX format
  • File ends in .xlsm = XLSX with macros

By file size: The same data in XLSX is typically 25-75% smaller than XLS.

By opening: XLS files may show "Compatibility Mode" in newer Excel versions.

Converting Between Formats

XLS to XLSX

In Excel:

  1. Open the .xls file
  2. Click File → Save As
  3. Choose "Excel Workbook (*.xlsx)"
  4. Save

Online: Upload to online converters if you don't have Excel.

XLSX to XLS

In Excel:

  1. Open the .xlsx file
  2. Click File → Save As
  3. Choose "Excel 97-2003 Workbook (*.xls)"
  4. Save

Warning: You may lose data if your spreadsheet exceeds XLS limits.

Opening XLS and XLSX Files

Without Excel

Free options:

Convert to PDF

For sharing without editing:

  1. Upload to Linkyhost Excel to PDF
  2. Get a shareable link
  3. Formatting preserved perfectly

How to Share Excel Files

Sharing an Excel file by email attachment often leads to formatting issues, version conflicts, and file size limits. Here are better approaches.

Convert to PDF first: If the recipient only needs to read the data, converting to PDF guarantees the layout stays intact regardless of what software they use. Use Linkyhost Excel to PDF to convert and generate a shareable link in one step.

Use cloud storage: Upload to Google Drive, OneDrive, or Dropbox and share a link. This avoids attachment size limits and lets you control permissions.

Share via Google Sheets: Upload your XLS or XLSX file to Google Sheets, then share the link. Recipients can view without installing any software, and you can set view-only or edit permissions.

Best practices for sharing:

  • Remove sensitive data or hidden sheets before sharing
  • Use PDF when recipients do not need to edit
  • Use cloud links when you want to update the file after sharing
  • Include a brief description of what each sheet contains if the workbook has multiple tabs

File Size Comparison

Example with identical data:

DataXLS SizeXLSX SizeSavings
1,000 rows150 KB45 KB70%
10,000 rows1.2 MB350 KB71%
50,000 rows5.5 MB1.4 MB75%

XLSX compression is very effective, especially for text-heavy data.

Performance Tips for Large Excel Files

Working with spreadsheets that contain tens of thousands of rows or complex formulas can be slow regardless of file format. These tips help keep things responsive.

Reduce file size:

  • Delete unused rows and columns beyond your data range — Excel sometimes tracks empty cells far beyond the actual content area
  • Compress or remove embedded images; link to external images where possible
  • Clear formatting on cells that do not need it, especially conditional formatting rules that span large ranges

Speed up calculations:

  • Switch calculation mode to Manual (Formulas → Calculation Options → Manual) while editing, then recalculate with Ctrl+Shift+F9 when ready
  • Replace volatile functions like INDIRECT, OFFSET, and NOW with static alternatives where possible
  • Use helper columns instead of deeply nested formulas — they are easier to debug and often faster to calculate

Use the right format:

  • For very large files that do not need to be shared outside Excel, consider XLSB (Excel Binary Workbook). It offers the speed of binary with the capacity of XLSX.
  • Avoid keeping files in XLS format if they are near the 65,536 row limit — convert to XLSX to prevent truncation

Hardware and settings:

  • Disable automatic spell-checking on large workbooks (File → Options → Proofing)
  • Close other workbooks while working with a large file to free memory
  • Keep Excel and your operating system updated for the latest performance improvements

Compatibility Issues

XLSX in Old Software

Old programs that only support XLS:

  • Excel 2003 and earlier (without compatibility pack)
  • Some legacy business software
  • Old database import tools

Solution: Install Microsoft's free compatibility pack or save as XLS.

XLS in Modern Software

Most modern software opens XLS without issues:

  • Excel 2007+ ✓
  • Google Sheets ✓
  • LibreOffice ✓
  • Numbers ✓

Security Considerations

XLS Security Risks

  • Binary format can hide malicious code
  • Harder to scan for threats
  • Macro viruses were common in XLS files

XLSX Security Benefits

  • XML is transparent and scannable
  • Cannot contain macros (XLSM is separate)
  • Easier to detect threats
  • Compression adds minor obfuscation

What About XLSM, XLSB, and Others?

ExtensionDescription
.xlsxStandard Excel 2007+ workbook
.xlsmExcel workbook with macros
.xlsbBinary workbook (smaller, faster)
.xltxExcel template
.xlsLegacy Excel 97-2003

Frequently Asked Questions

Can I just rename .xls to .xlsx?

No. The formats are completely different internally. You must convert properly using Excel or a converter.

Which is more compatible?

XLS works with older software, but XLSX works with all modern software. For most users, XLSX is more practical.

Do I lose data converting XLS to XLSX?

No, converting XLS to XLSX preserves all data. Converting XLSX to XLS may lose data if you exceed the smaller limits.

Why is my XLSX larger than XLS?

Unusual, but possible with many images or complex formatting. Generally XLSX is smaller.

Can Google Sheets open both?

Yes. Google Sheets opens and exports both XLS and XLSX.

Is XLSB better than XLSX for performance?

XLSB (Excel Binary Workbook) loads and saves faster than XLSX, especially for very large files. However, XLSB is not an open standard, so it has weaker support outside of Excel. Use XLSB for internal workbooks that stay within Excel, and XLSX when you need to share files or work with other applications.

How do I open an XLS file without Excel on my phone?

On Android, Google Sheets opens XLS files natively. On iPhone, the Numbers app handles XLS files, or you can install the free Microsoft Excel app. For a quick view without installing anything, open the Linkyhost XLS Viewer in your mobile browser and upload the file.

Can I password-protect an XLSX file?

Yes. In Excel, go to File → Info → Protect Workbook → Encrypt with Password. This works for both XLSX and XLS files. Keep in mind that if you forget the password, recovery is extremely difficult. For sharing a read-only version, consider converting to PDF using Linkyhost Excel to PDF instead.

Summary

XLS:

  • Old format (1997-2003)
  • 65K row limit
  • Larger files
  • Legacy compatibility

XLSX:

  • Modern format (2007+)
  • 1M+ row limit
  • Smaller files (compressed)
  • Better security

Recommendation: Use XLSX for new files. Convert old XLS files to XLSX when possible. Use Linkyhost to share as PDF for universal compatibility.