HTML Table to CSV Online
Extract an HTML table to CSV, including row spans, column spans and quoted cells.
Open HTML Table to CSVFree · No sign-up · Browser-based processing
What HTML Table to CSV does
Extract a selected table from pasted HTML and export its rows as CSV. Cells containing commas, quotes or line breaks are quoted. Row and column spans reserve empty covered cells so the output keeps its rectangular layout. Nested table rows are excluded from the outer table.
Common uses
- Recover tabular data from HTML reports
- Prepare tables for CSV to JSON conversion
How to use HTML Table to CSV
- Paste HTML containing at least one table.
- Choose a zero-based tableIndex if there are several tables.
- Run the converter and download the CSV or copy it into your spreadsheet editor.
Privacy: Runs locally in your browser. Input is not uploaded to the DevNet Kit server.
HTML Table to CSV example
Try the tool with this representative input:
<table><tr><th>Name</th><th>Note</th></tr><tr><td>Ada</td><td>Hello, world</td></tr></table>Options
{"tableIndex":0,"delimiter":","}Expected result
Name,Note
Ada,"Hello, world"HTML Table to CSV FAQ
What happens to merged cells?
The text is placed in the top-left cell; remaining covered positions are empty.
Does the tool load the webpage?
No. Paste the HTML source; the tool reads it in an inert template and makes no page request.
Extract a table from pasted HTML into quoted CSV records
Paste HTML containing a table and choose its zero-based tableIndex. The converter extracts rows from that table without fetching the original webpage or including rows belonging to nested tables.
Merged cells place their text in the top-left CSV cell; the remaining covered positions are empty. CSV cannot preserve visual row spans, column spans, CSS or formatting. Review the rectangular records before importing them into another application.
Worked example
Input and settings:
<table><tr><th>Name</th><th>Note</th></tr><tr><td>Ada</td><td>Hello, world</td></tr></table>Options:
{"tableIndex":0,"delimiter":","}Expected result or interpretation:
Name,Note
Ada,"Hello, world"Questions about this workflow
How do I extract the second table from HTML?
Set tableIndex to 1. The index starts at zero, so tableIndex 0 selects the first table and 1 selects the second.
Will a merged HTML cell repeat its value in every CSV position?
No. The text appears once in the top-left position, and the other positions covered by rowspan or colspan are left empty.