Online HTML Table to CSV converter: parses table/tr/td elements from HTML fragments, extracts table data, and outputs standard CSV. Supports complex table structures. All processing is done locally.
TL;DR: Free online HTML table to CSV converter. Extract data from table/tr/td elements in HTML fragments into standard CSV, supporting complex structures and quote escaping. Web scraping essential. Runs locally.
For local tools, open DevTools → Network and search your input — it should not appear in requests.
Next steps
Usage Guide
Parse HTML <table> to CSV/TSV with colspan/rowspan expansion and comma/semicolon/Tab delimiters — local only.
1. Steps
- Copy table outerHTML from DevTools.
- Pick a delimiter.
- Convert; merged cells are forward-filled.
2. Merged cells
Spanned cells repeat values into a full matrix — expected for rectangular exports.
3. Pitfalls
- Rich-text copy is not HTML source.
- Links/images become text; NBSP normalizes.
- Div-based fake tables will not parse.
4. Delimiters
- Comma for general interchange.
- Semicolon for many EU Excel locales.
- Tab for paste into spreadsheets.
5. Pipeline
HTML → CSV → Excel/ETL; use sibling tools for JSON or Markdown.
6. Privacy
Local parse only; no URL fetching.
FAQ
No. A fragment containing the table tags is enough; the tool locates table/tr/td automatically and outputs the first row as-is without rewriting column names. Note that a right-click copy usually yields rich text — select the table in DevTools and copy its outerHTML instead.
colspan/rowspan are expanded into a full matrix with the visible values forward-filled, so repeated cells in the output are expected — convenient for rectangular downstream processing. Clear them in your spreadsheet if the business logic needs blanks.
Comma for general interchange and most English environments; semicolon is easier for Excel under European regional settings; Tab is often the steadiest when pasting straight into a spreadsheet. Fields containing the delimiter, quotes, or line breaks are escaped per CSV rules. If the whole table lands in one column, the delimiter is probably wrong — switch and re-convert.
First confirm the fragment really contains table, tr, and td or th elements — nested tables or div-based fake tables may fail to parse. On dynamic sites, grab the rendered DOM rather than the pre-hydration template source.
Use html-table-to-json for an array of objects, or html-table-to-markdown for documentation. This page focuses on CSV/TSV that goes into spreadsheet software and scripts.
Neither. Parsing runs in your browser on your own machine; this page is not a crawler and never visits URLs on your behalf — it parses exactly what you paste.
Related Tools
Related Articles
The Complete Guide to Table Format Conversion: Excel, CSV, JSON, Markdown, and HTML
Convert between Excel, CSV, JSON, Markdown, and HTML tables — delimiters, headers, empty cells, merged-cell boundaries, and matching browser tools.
HTML Table to JSON: How to Preserve Rows, Columns and Structure
Converting an HTML table from a web page to JSON — how to keep headers, handle merged cells and nested structure? Step-by-step with our HTML table to JSON tool.
Online CSV/JSON Converter: Convert Between Table Data Formats
CSV ↔ JSON with RFC 4180 quoting, Excel dialects, BOM handling, and this site's real boundaries. Links to SQL, YAML, and TSV workflows.