Convert Excel to HTML

The code example above demonstrates how to convert Excel to HTML using C#. The HtmlExportOptions class is used to customize how the HTML output is generated. The available options are:

  • OutputRowNumbers property: Indicates whether to show row numbers in the resulting HTML file.
  • OutputColumnHeaders property: Indicates whether to show column headers in the resulting HTML file.
  • OutputHiddenRows property: Indicates whether to display hidden rows in the resulting HTML file.
  • OutputHiddenColumns property: Indicates whether to display hidden columns in the resulting HTML file.
  • OutputLeadingSpacesAsNonBreaking property: Indicates whether to show leading spaces (extra spaces before the first character in a cell) as non-breaking spaces in the resulting HTML file.

Discover more Excel file type conversions with IronXL.

Ready to Get Started?
Nuget Downloads 1,889,917 | Version: 2026.3 just released
Still Scrolling Icon

Still Scrolling?

Want proof fast? PM > Install-Package IronXL.Excel
run a sample watch your data become a spreadsheet.