Category: Developer tools

HTML Table to CSV

Community idea by 지훈 #T1Q7Missing a tool?

Extract cell text from pasted HTML tables and copy CSV

Paste HTML table markup and extract tr, td and th text as CSV. Decode entities, choose comma, semicolon or tab, and copy locally.

JSON
Name,Score
Ava,92
Noah,88

Everything on this page is processed in your browser. Nothing is uploaded.

What this tool does

This HTML table to CSV converter extracts cell text from pasted markup. It matches every tr row and each td or th cell, treating header cells and data cells the same. Inside each cell it removes tags, HTML comments, script blocks and style blocks, decodes named and numeric HTML entities, turns br and closing block tags into line breaks, collapses repeated spaces and tabs, and trims each line. Rows with no extracted cells are skipped. Choose comma, semicolon or tab as the CSV delimiter. Cells containing the delimiter, quotes or line breaks are quoted and inner quotes are doubled; rows are joined with CRLF. The result updates as the pasted HTML or delimiter changes and can be copied. This is not a page scraper: it does not fetch URLs, request the target page, upload files or download CSV. It does not expand colspan or rowspan, choose one table from several, understand nested tables, honor thead/tbody/tfoot/caption semantics, add a header-row mode, repair malformed HTML, or extract href, src or data attributes. It outputs CSV only, not JSON, Markdown or Excel. HTML and CSV stay in the browser.

How to use it

  1. Paste HTML markup that contains table rows and cells.
  2. Choose comma, semicolon or tab as the CSV delimiter.
  3. Review the extracted cell text and copy the CSV output.

Privacy

This tool runs entirely in your browser. Your input is never uploaded, stored or shared — closing the tab removes it.

Frequently asked questions

How do I convert an HTML table to CSV?
Paste the table markup. The tool reads tr rows and td or th cells, removes markup inside cells, decodes entities and emits CSV text.
What if the HTML contains multiple tables?
There is no table picker. Every matching row from all pasted tables is emitted into one CSV output.
Is pasted HTML uploaded?
No. The pasted HTML and generated CSV stay in the browser, and LocalTools does not fetch the URL of a page.
Are rowspan and colspan expanded?
No. Each td or th contributes exactly one CSV cell, so merged cells can shift later columns.
Can it extract links or image URLs?
No. Only visible cell text is kept. Attributes such as href, src and data-* are not exported.