1xA2ZOne Data. Any Format.
Live syncLocal-first · no data upload

Convert HTML to CSV

Paste HTML containing a <table>, or copy a table from a web page, into the Quick paste box. The tool reads the first table, takes the text only, and writes CSV on the right.

Runs entirely in your browser. Your data is never uploaded. Tiếng Việt

01

Spreadsheet

SheetsExcelCSVTSV
✦ Quick pasteSheets / Excel, CSV, TSV, Markdown, JSON, HTML, LaTeX, wiki…
0 rows · 0 columnsSelected cell: A1
02

Live Output

Markdowntwo-way
SyncedEdit directly; the table on the left updates itself
0 characters
Every change is processed right in your browserReady · LocalUTF-8 · by xuanhieu.org

When you need to convert HTML to CSV

You convert HTML to CSV when you need a table from an internal page, an email or a system export that only exists as HTML. What you usually want is a contact list or price table to open in Excel. HTML carries formatting and CSV does not, so you should know exactly what survives.

How to do it

  1. Copy the <table>...</table> markup, or select the table on the web page and copy it. You can also press Import file and choose an .html file.
  2. Paste it into the Quick paste box and press Load into table ↵. The tool detects HTML when you copied a table from a web page or the pasted markup starts with <table, and takes the first table. For a whole HTML page, use Import file.
  3. Look at the grid to confirm the column count, especially where the original table had merged cells.
  4. Open ⚙ Options on the CSV tab to pick the delimiter and BOM, then press Copy result or Download file.

A real example

The phone number 0201234567 keeps its leading zero, because the tool never turns text into numbers. The <th> row becomes the CSV header line, and the <thead> and <tbody> tags do not appear.

Input · HTML

<table>
  <thead><tr><th>Name</th><th>Email</th><th>Phone</th><th>City</th></tr></thead>
  <tbody>
    <tr><td>Anna Reed</td><td>anna@example.com</td><td>0201234567</td><td>London</td></tr>
    <tr><td>Ben Cole</td><td>ben@example.com</td><td>0207654321</td><td>Leeds</td></tr>
    <tr><td>Cara Lin</td><td>cara@example.com</td><td>0161234567</td><td>Bristol</td></tr>
  </tbody>
</table>

Result · CSV

Name,Email,Phone,City
Anna Reed,anna@example.com,0201234567,London
Ben Cole,ben@example.com,0207654321,Leeds
Cara Lin,cara@example.com,0161234567,Bristol

Options worth changing

Delimiter
Choose semicolon if you open the CSV in Excel on a locale where commas may land in one column. Choose Tab when Email or Address cells hold many commas and you want to avoid quotes.
Add UTF-8 BOM
Tables scraped from non-English pages often contain accents. Turn on the BOM so Excel reads them properly.
Formula guard
Phone numbers written as +84... start with a plus sign, so this option adds an apostrophe and changes the cell value. Turn it on only if you worry the CSV will be read as formulas.

Common problems

Limits

Frequently asked questions

I only have a page link, not the HTML.

The tool does not load pages. Open the page, select the table, copy and paste into the Quick paste box, or save the page as an .html file and use Import file.

Does my data go to a server?

No. The HTML is read in your browser and the page sends nothing out.

Why is my table missing columns?

Usually a colspan in the original HTML. Look at the grid after loading and fill or move the shifted cells.

Can I go from CSV back to HTML?

Yes. Paste the CSV into the Quick paste box and open the HTML tab to get the <table> markup.

Related conversions

1xA2Z · Guide

Table statistics