Skip to content
← Back

HTML Table to CSV - Online Tool

Data
Runs locally · Not uploaded

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.

Was this result helpful?

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

  1. Copy table outerHTML from DevTools.
  2. Pick a delimiter.
  3. 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