Data Conversion Tools Runs in your browser Free · no account

HTML Table to CSV

This tool finds the tables in a block of HTML and converts their rows and cells into CSV. Cell text is extracted with entities decoded and whitespace collapsed, and rows shorter than the widest one are padded so the columns stay aligned. Paste the page source and get a file a spreadsheet can open.

Options
HTML 0 characters
CSV

Your result will appear here.

Not sure where to start? Use Load example.

Results update automatically and are calculated on your device. Nothing you type is sent to a server.

Runs in your browser. Processing happens entirely in your browser. Nothing you enter is sent to Delimiter.live.

How to use the HTML Table to CSV

  1. Copy the table markup — in browser developer tools, right-click the table element and copy its outer HTML.
  2. Paste it in. Surrounding page markup is ignored, so you do not need to trim it precisely.
  3. Choose the first table or all of them if the page has several.
  4. Copy or download the CSV.

Example

Input
<table><tr><th>Name</th></tr><tr><td>Ada</td></tr></table>
Output
Name
Ada

Common use cases

  • Getting a reference table off a documentation page into a spreadsheet.
  • Turning a rendered report back into data you can sort and filter.
  • Extracting a pricing or specification table for comparison.
  • Capturing a table from a page that offers no export.

Limitations and things to watch for

  • Merged cells are not expanded. A cell with colspan or rowspan produces one value, so a table relying heavily on merges will come out misaligned — those tables usually need manual work whatever you use.
  • Only text is extracted. Links become their link text, and images are dropped entirely including their alt text.
  • Header and body rows are not distinguished in the output. A th row becomes an ordinary CSV row, which is what a spreadsheet expects as its header anyway.
  • Nested tables are not merged into the parent. Each table element is treated separately.

Frequently asked questions

How do I get the HTML of a table?
Open developer tools, right-click the table in the elements panel and choose Copy → Copy outerHTML. Copying rendered text from the page instead loses the cell boundaries, which is what the tags provide.
What happens to merged cells?
They are read as a single cell, so colspan and rowspan do not expand into repeated values. Tables that merge heavily will not line up, and are usually worth fixing by hand rather than automating.
Can it handle multiple tables?
Yes. It converts the first by default and tells you how many it found; switch the option to convert every one, separated by a blank line.
Are entities decoded?
Yes. &amp;amp; becomes &, &amp;nbsp; becomes a space, and numeric references are resolved, so the CSV contains readable text rather than markup.
Is the HTML uploaded?
No. Parsing runs entirely in your browser, so pages behind a login stay on your device.

Share this tool