Skip to main content

HTML table conversion problem

Fix HTML Table Conversion with Rowspan or Colspan

Convert an HTML table to CSV while detecting merged cells, repeated headers and text that does not map cleanly to a rectangular grid.

Use the matching tool

HTML Table to CSV

Open HTML Table to CSV

What the error actually means

HTML tables can merge cells across rows or columns, nest other elements and repeat headers. CSV requires one value at every row-column intersection, so merged-cell meaning must be expanded or reconstructed before export.

Likely causes

  • The table uses rowspan or colspan.
  • Headers repeat inside the body.
  • Visible text comes from nested links or spans.
  • Several tables exist on the page.

Merged-cell expansion

Problem

One category cell spans five rows and becomes blank in four CSV rows

Correct pattern

Repeat the category value across the five related records

A safe repair workflow

  1. 1Select the intended table.
  2. 2Inspect merged cells and multi-row headers.
  3. 3Define how spanning values should expand.
  4. 4Export and compare the rectangular output visually.

How to verify the result

A file that downloads successfully is not automatically a correct file. Check the result at both the structural and business-data levels:

  • Every row has the same width.
  • Spanning labels remain associated.
  • Repeated headers are removed.
  • Links and visible text map as intended.

Read the deeper guides