HTML Table to CSV Tool

Convert HTML table code from websites, reports, dashboards or copied pages into clean CSV data.

HTML Table to CSV
Paste full HTML or only a <table> element. The tool extracts rows and cells from HTML tables and converts them into CSV.

HTML Input and CSV Settings

Optional. You can also paste HTML below.
0 means include all rows.
0 Tables
0 Rows
0 Columns
0 KB Output Size

Detected Tables

No tables detected yet.

CSV Output

Conversion Report

JSON Preview

Detected Headers

Table Preview

No preview yet. Paste HTML table and click Convert.

About This Tool

HTML Table to CSV is a free online data tool that converts HTML table code into CSV format.

You can paste full HTML code, paste a single table element or upload an HTML file. The tool detects HTML tables, extracts rows and cells, handles table headers, supports first table or all tables, converts links, handles line breaks, cleans whitespace and exports the result as CSV.

It also provides CSV output, JSON preview, detected headers, detected table summary, table preview and a conversion report.

This tool is useful for developers, students, data analysts, website owners, researchers, spreadsheet users and anyone who needs to extract table data from HTML pages into Excel, Google Sheets, databases or CSV-based tools.

How to Use HTML Table to CSV

1. Paste HTML code containing a table or upload an HTML file.
2. Choose whether to use the first table or all tables.
3. Choose how headers should be detected.
4. Choose the output delimiter such as comma, semicolon, tab or pipe.
5. Choose how to handle links, line breaks and whitespace.
6. Optionally add a source table column.
7. Click Convert.
8. Review the CSV output, JSON preview, detected headers and report.
9. Copy or download the CSV file.

Privacy Note: This HTML Table to CSV Tool works directly in your browser using JavaScript. The HTML code or file you paste or upload is processed on the page and is not submitted through a form by this tool.

Frequently Asked Questions

Is this HTML Table to CSV Tool free?

Yes. This HTML Table to CSV Tool is free to use and does not require signup.

Can I upload an HTML file?

Yes. You can upload an .html, .htm or .txt file, and the tool will process it directly in your browser.

Can it detect multiple HTML tables?

Yes. You can choose to convert the first table only or all tables found in the HTML code.

Can it extract links from table cells?

Yes. You can output text only, link URL only, or link text plus URL.

Can I open the output in Excel or Google Sheets?

Yes. Download the result as a CSV file and open it in Excel, Google Sheets or other spreadsheet tools.

Does this tool upload my HTML code to the server?

No. The HTML table conversion is done directly in your browser using JavaScript and the page does not submit your data through a form.