HTML Table to CSV Converter

Paste an HTML table, preview it live, choose which columns to keep, and download the result as CSV.

HTML table

Paste HTML that includes a <table> with <tr> and <td>/<th> markup.

Processing happens locally in your browser; nothing is uploaded.

CSV tableLive table preview. Uncheck a column to drop it from the copy and download output.

0 lines in0 lines outN/A runtime

Convert a table to see a preview here.

Typical tables process in under 10ms on modern browsers.

How to convert an HTML table to CSV

Convert in 3 steps

Takes ~5 seconds
  1. 1
    Paste HTML

    Add HTML that includes a table in the input box.

  2. 2
    Convert

    Click "Convert to CSV" to parse the table rows.

  3. 3
    Pick columns

    Uncheck any columns you don't want, then copy or download.

Unchecking a column updates the preview, copy, and download together.

Who should use this tool?

  • Analysts pulling data out of web tables
  • Developers exporting scraped markup
  • Content teams reusing table data in spreadsheets

Examples

Converts a table with headers into CSV.

Input
<table><tr><th>Name</th><th>Age</th></tr><tr><td>Ada</td><td>30</td></tr></table>
Output
Name,Age
Ada,30

Handles multiple data rows.

Input
<table><tr><th>Name</th><th>Age</th></tr><tr><td>Ada</td><td>30</td></tr><tr><td>Grace</td><td>35</td></tr></table>
Output
Name,Age
Ada,30
Grace,35

Generates column labels when there is no header row.

Input
<table><tr><td>Ada</td><td>30</td></tr></table>
Output
Column 1,Column 2
Ada,30

Convert HTML tables into CSV

Pull structured data out of table markup and into CSV.

Use this HTML table to CSV converter to turn table markup into a spreadsheet-ready file. Paste your table, preview it live, choose whether the first row is a header, and pick which columns to keep before copying or downloading. Everything runs locally in your browser for fast, private conversion.

Live preview

See your table rendered instantly after converting.

  • Table preview
  • Column checkboxes
  • Updates instantly
Download ready

Copy or download only the columns you select.

  • Column filtering
  • Proper CSV quoting
  • No server upload
Privacy first: we never send your input to a server. Everything runs locally in your browser.

Conversion tips

Keep table markup simple for the most reliable results.

  • Paste one table at a time for predictable column detection.
  • Ensure each row has the same number of cells.
  • Uncheck columns you don't need before downloading to keep the file small.

Frequently asked questions

Can I choose which columns end up in the CSV?>
Yes. Uncheck any column checkbox above the preview and the copy/download output updates to match.
Does this handle formatting inside table cells?>
Yes. Inner tags like bold or links are stripped and only the text content is kept.
Is my HTML sent anywhere?>
No. All parsing happens locally in your browser.
What if my table has no header row?>
Choose "No, all rows are data" and generic column labels are generated automatically.

Related HTML tools