Convert HTML to XLSX

Turn HTML files into XLSX. Each table element becomes one sheet, named after its caption or Table 1, Table 2 and so on, including tables a page uses only for layout.

Converted in an isolated sandbox on our serversDeleted after 24 hours

Drop HTML files on the dialor turn it to pick what to do

Every table becomes its own sheet.Each table on the page gets a sheet in one XLSX workbook. Text outside tables is left out.

  1. What you get

    One XLSX file with a sheet for each table element. A sheet is named after the table's caption, or Table 1, Table 2 and so on when there is no caption. Tables that a page uses only for layout also become sheets.

    The first row stays text. In the other rows, numbers, dates and booleans become typed cells.

  2. What stays text

    Codes with a leading zero, codes with a leading + and values with more than 15 digits stay text instead of becoming numbers.

    Links and formatting keep only their text. A table inside a cell becomes text in that cell.

  3. Merged cells

    A cell that spans several rows or columns keeps its text in its first cell. The other cells it covered are left empty.

  4. What is left out

    Text outside tables is not in the workbook. Headings, paragraphs and lists on the page that are not inside a table do not appear.

    A page without tables has nothing to put in a sheet, so the conversion stops with unsupported_elements. To go the other way, use XLSX to HTML.

HTML and XLSX.What each format is.

The formats

From · HTML

HTML

The markup of web pages. Text, links and structure, usually with CSS and images alongside.

Extensions
.html .htm
MIME type
text/html
Kind
Text and data
To · XLSX

Excel Workbook

Excel's workbook format since 2007. Sheets, formulas, formats and charts in zipped XML.

Extensions
.xlsx
MIME type
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
Kind
Documents

In your code.The same HTML to XLSX conversion through the API, for your app or your agent.

terminal
$ cv convert report.html report.xlsx
$ cv convert report.html report.xlsx

Questions.What people ask about HTML to XLSX.

01OF 04

A sheet takes the name of its table's caption. A table without a caption is named Table 1, Table 2 and so on.

No. Only table elements are converted. Text outside tables is left out.

The page has no tables. Each sheet comes from a table element, so a page without one stops the conversion with unsupported_elements.

Yes. Codes with a leading zero or a leading + stay text, and so do values with more than 15 digits.

More conversions.Other ways in and out of HTML and XLSX.