HTML Table to CSV
Convert HTML `<table>` markup into CSV, ready to copy or download. Runs entirely in your browser.
🔒 This tool runs entirely in your browser. Your files are never uploaded to a server.
Example shown — paste an HTML `<table>`, or "View Source" / "Inspect" a table from a webpage and paste its markup.
How it works
- Paste HTML table markup — from your own code, or copied from a webpage's source.
- Each row and cell is read and converted to a CSV line.
- Copy or download the resulting CSV.
FAQ
Where do I get a table's HTML markup?
Right-click the table on a webpage, choose "Inspect" (or "View Page Source"), and copy the `<table>...</table>` block from the developer tools panel — that's the raw markup this tool needs.
Does it handle merged cells (colspan/rowspan)?
No — cells are read in document order without accounting for spans, so a table with merged cells may produce a CSV with columns that don't line up perfectly. Works cleanly for standard, non-merged tables.
Does it work with `<th>` header cells?
Yes — both `<th>` and `<td>` cells are read into the output, so a table with a proper header row converts correctly with the header as the first CSV row.
Is my data uploaded anywhere?
No — the conversion happens entirely in your browser by parsing the HTML locally. Nothing is sent to a server.
How we compare
| Feature | Online Tool Store | Copy-paste into a spreadsheet | Browser extensions |
|---|---|---|---|
| Works from raw HTML, no live page needed | ✓ | Requires the live table to select from | Requires installing an extension |
| No install | ✓ | ✓ | Requires a browser extension |
For converting a table's HTML source (from a code snippet, saved page, or dev tools copy) without needing the live page open, this beats a browser extension.