How to use the HTML Table → CSV
1. Right-click the table on any webpage and choose "Inspect" → select and copy the <table>…</table> HTML.
2. Paste the HTML into the input field on the left.
3. The CSV output appears instantly on the right — copy it or open it directly in Excel or Google Sheets.
What is it?
Web pages often display data in HTML tables — pricing grids, sports stats, financial data, product comparisons — but provide no way to download the underlying data. This tool extracts that data from the raw HTML markup and converts it to CSV, ready for import into any spreadsheet or data analysis tool.
The parser uses the browser's native HTML parser to read the <table> element. It locates the header row by finding <th> elements (or falls back to the first row of <td> elements). Each subsequent row of <td> elements becomes a CSV data row.
Cell values containing commas, double-quotes, or newlines are automatically wrapped in double-quotes and escaped per the RFC 4180 CSV standard, making the output compatible with all major spreadsheet applications.
Example
<table>
<thead>
<tr><th>Product</th><th>Price</th><th>Rating</th></tr>
</thead>
<tbody>
<tr><td>Wireless Mouse</td><td>$29.99</td><td>4.5</td></tr>
<tr><td>USB-C Hub</td><td>$49.99</td><td>4.8</td></tr>
</tbody>
</table>Product,Price,Rating Wireless Mouse,$29.99,4.5 USB-C Hub,$49.99,4.8
<th> elements become the CSV header row. Each <tr> of <td> elements becomes a data row.
Benefits
Share structured data with anyone, in any format
CSV output opens directly in Excel and Google Sheets; XML works with legacy enterprise systems; JSON feeds every modern API — convert to whatever format your audience needs.
Bridge incompatible data formats without a custom script
Convert between JSON, CSV, XML, and YAML in one click — the most common inter-system data translation handled instantly, without writing a parser or ETL pipeline.
Inspect, compare, and debug complex JSON structures
Sort, extract, compare, and measure JSON to find unexpected keys, spot structural differences between API versions, and diagnose oversized payloads.
Migrate legacy data to modern formats
Convert XML configs, PHP print_r() dumps, or CSV exports to clean JSON — without writing a one-off migration script that will never be used again.
Frequently asked questions
Can I paste a full webpage's HTML instead of just the table?
Yes. The parser will find the first <table> element in whatever HTML you paste. If the page contains multiple tables, only the first one is extracted — isolate the specific table's HTML for accurate results.
What if the table has merged cells (colspan/rowspan)?
Merged cells are not expanded — the cell content is read as-is. This may produce rows with fewer columns than the header. For tables with complex merging, manual cleanup may be needed after conversion.
Will the CSV open correctly in Excel?
Yes. The output is RFC 4180-compliant CSV. Open Excel, go to Data → From Text/CSV, select the file, and Excel will parse it correctly. Alternatively, paste the CSV text into a blank sheet and use Text to Columns.
Is my data sent to a server?
No. All processing happens entirely in your browser using JavaScript. Your data never leaves your device.