EditSafely

Convert HTML to CSV

Convert an HTML table to a CSV file.

Runs on your device, nothing uploaded

Table
Which table on the page, when there are several.
Try:

0 chars · 0 lines

Output

Convert an HTML table to a CSV file.

Type or paste above to see the result here.

Example: Extract a table

What you paste never leaves this tab

Convert HTML to CSV is JavaScript that your browser has already downloaded, and it does the whole job on your own machine. On a normal site, a customer export full of names and emails is sent to a server that can log it, cache it or keep it. Here it is read and transformed inside this tab and nowhere else.

  • No upload
  • No length limit
  • Works offline once loaded
  • Nothing stored or logged

How to use Convert HTML to CSV

  1. 1. Paste the HTML. Select a table on a web page, copy it and paste it into the input pane: the table arrives as its HTML. Page source or an .html file works too, and the tool reads the rows, including th header cells.
  2. 2. Let the extraction run. Each tr becomes a CSV line, each cell a field, tags inside cells are stripped, and entities like & are decoded back to plain characters. When the page holds several tables, a line under the input says which one is used, with a button for the next.
  3. 3. Copy the CSV. Copy the extracted rows and load them into a spreadsheet or script. To take another table from the same page, use that button or set Table to its number.

When to use Convert HTML to CSV

Convert HTML to CSV pulls tabular data out of markup and back into rows and columns. Data is constantly published as HTML tables, in wikis, reports and reference pages, with no download link in sight. Grabbing the source and extracting here beats retyping or fighting a copy-paste that scrambles cells.

  • Scraping a reference table from a website. A Wikipedia page holds the country-code table you need. Copy the table's HTML from devtools, extract it to CSV, and import clean rows instead of wrestling with pasted formatting.
  • Recovering data that only exists as a report. An old system renders monthly figures as an HTML report and its export button died years ago. Saving the page and converting the table recovers the underlying data.
  • Converting emailed HTML tables. A partner sends stats as a formatted table inside an email. View the message source, paste the table markup here, and get CSV you can append to your tracking sheet.

Examples

Extract a table

Input

<table><tr><th>name</th><th>age</th></tr><tr><td>Ada</td><td>36</td></tr></table>

Output

name,age
Ada,36

About the Convert HTML to CSV tool

Convert HTML to CSV does its work locally, right in the browser. Convert an HTML table to a CSV file. There is no upload step, no queue and no account, and your data never travels over the network.

It belongs to the CSV Tools collection on EditSafely, a set of 133 small, focused CSV utilities that share the same instant, private workspace.

You can shape the output with the Table setting, and the result refreshes the moment you change it. A worked example further down the page shows exactly what the tool produces for a real input.

Running locally also makes the tool fast and dependable: results appear as soon as your input does, there is no server outage that can take it down mid-task, and confidential data can be processed without a second thought.

Frequently asked questions

Is Convert HTML to CSV free to use?

Yes, it is completely free. All 2,943 tools on EditSafely work without an account, a subscription or usage limits.

Is it safe to paste sensitive or confidential data?

Everything happens locally. Your browser downloads the tool's code once, then does all the processing itself; nothing you enter is transmitted, stored or logged. You can even go offline after the page loads and it will still work.

How much text can I process at once?

There is no fixed limit; your device's memory is the ceiling. Up to 10 MB the result updates as you type, after a short pause that grows with the size. Above 10 MB a Run button appears so typing stays smooth, and files open up to 50 MB. A very long result shows its first 2,000 lines on screen, while Copy and Download always include all of it.

Do I need to sign up or install anything?

No. The tool works in any modern browser on desktop, tablet or phone. There is no account to create, no extension to add and no software to install.

How do I use the result?

The output panel has a one-click copy button, and you can keep refining the input while you work; the result updates in place as you type.

Related tools

All CSV Tools →