Developer

HTML Table to CSV Converter

Convert an HTML table into CSV. Extracts rows and cells from table markup, decodes entities, and quotes fields for clean spreadsheet import.

Last reviewed by the Radiatus Cloud team

Extract the data from an HTML table into CSV for spreadsheets.

Need this built for your product?

We design, build & host secure software & APIs.

Talk to an engineer

Convert an HTML table to CSV

This tool extracts the data from an HTML table and outputs it as CSV, ready to open in a spreadsheet. It finds the table in the pasted markup, reads each table row, and pulls the text from every header and data cell, stripping away the surrounding tags. HTML entities such as the ampersand and non-breaking space codes are decoded back into normal characters, and any field containing the delimiter, quotes or line breaks is quoted correctly so the CSV imports without errors.

It handles both header cells and data cells, so the first row of a table with a proper header becomes the first CSV row.

Getting data out of web pages

Tables on web pages often hold exactly the data you want in a spreadsheet, but copying and pasting them frequently brings along formatting or loses the structure. Pasting the table's HTML here gives you clean CSV that imports neatly into Excel, Google Sheets or a database. This is useful for scraping published figures, extracting reference data, and migrating content.

The tool parses the markup as text, so it works even on table HTML copied from view-source or developer tools without needing a live page. All conversion happens locally in your browser, so the content stays private.

Related tools

  • JSON Formatter — Format and beautify JSON in your browser. Pinpoints syntax errors by line and column, flags unsafe integers, and never uploads your data to a server.
  • JSON Validator — Validate JSON syntax with precise line and column errors, and check documents against a JSON Schema. Runs locally in your browser, nothing uploaded.
  • Regex Tester — Test regular expressions against sample text with live match highlighting, capture groups and flag control. Runs entirely in your browser.
  • HTML Minifier — Minify HTML by removing comments and redundant whitespace, without breaking inline elements or pre blocks. Runs entirely in your browser.

Frequently Asked Questions

How do I get the table HTML?

Copy it from the page source or browser developer tools, or from any document containing table markup, and paste it in. A live page is not needed.

Does it handle header cells?

Yes. Both th header cells and td data cells are read, so a table with a header row produces a matching first CSV row.

Are HTML entities decoded?

Yes. Entities such as the ampersand and non-breaking space codes are converted back to normal characters in the CSV output.

What if there are multiple tables?

The tool converts the first table it finds in the markup. Paste a single table for predictable results, or the specific table you need.

How are commas inside cells handled?

Cells containing the delimiter, quotes or line breaks are wrapped in double quotes with inner quotes doubled, so the CSV parses correctly.

Privacy & Security

Everything runs in your browser; nothing is uploaded.

Data: None
Client-side-Side
Active
v1.0

How to Use

Paste HTML containing a table to extract its data as CSV.

Disclaimer: This tool is provided "as is" without warranty of any kind. Results are for educational and utility purposes.