EditSafely

Convert HTML to CSV

Convert an HTML table to a CSV file. Runs entirely in your browser, so your data never leaves your device.

0 chars · 0 lines

Output

The result appears here as you type.

How to use Convert HTML to CSV

  1. 1. Paste the HTML. Drop markup containing a table element into the input pane. Page source copied from the browser works; the tool finds the table and reads its rows, including th header cells.
  2. 2. Let the extraction run. There are no options to tune. Each tr becomes a CSV line, each cell a field, tags inside cells are stripped, and entities like & are decoded back to plain characters.
  3. 3. Copy the CSV. Copy the extracted rows and load them into a spreadsheet or script. If the page had several tables, paste them one at a time to keep their data separate.

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.

There is nothing to configure. Provide the input and the result appears on its own. 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 you type or drop a file, 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,658 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. Because the work happens on your own device rather than on a shared server, the practical ceiling is your machine's memory, which comfortably handles inputs far larger than typical online tools allow.

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