HTML Table to CSV & JSON

Extract tables from HTML or a table copied from any web page into CSV, TSV or JSON. Merged cells and grouped headers are handled.

Runs in your browser. Nothing is uploaded.

How to use the HTML Table to CSV & JSON

  1. Copy a table from a web page and paste it into the left box, or paste the page's HTML, open a saved .html file, or press Load example.
  2. If the page has several tables, pick one in the Table menu. Each is listed with its caption and size.
  3. Choose CSV, TSV (for spreadsheets) or JSON in the Output menu.
  4. Keep Repeat merged cells ticked to copy a merged cell's value into every cell it covers.
  5. Copy the result or download it.

Get table data out of web pages

Web pages are full of useful tables: statistics, price lists, schedules, sports results, product specifications and reports. Getting that data into a spreadsheet is surprisingly awkward. Copying and pasting often loses the columns, merges cells into one long line or brings along formatting you do not want. Retyping is slow and error-prone.

This tool reads HTML tables and turns them into clean CSV, TSV or JSON. Copy the table from the page, paste it here and the data is ready to download.

Three ways to give it a table

  • Copy and paste from a page: select the table in your browser, copy and paste into the input. The tool uses the HTML your browser copied, so the structure is kept.
  • Paste HTML source: paste the source of a page or a fragment that contains <table> elements.
  • Open a saved page: open an .html file you saved from your browser.

When the HTML contains more than one table, the Table menu lists them all with their captions and sizes, so you can pick the right one.

Handles real-world tables

Real tables are rarely a simple grid. Headers span several columns, a region name covers several rows, a note runs across the whole table. The tool lays every cell on a regular grid, honouring rowspan and colspan, so each value stays in the column it belongs to. With Repeat merged cells on, merged values are copied into every covered cell, which makes the data easy to sort and filter. Whitespace is cleaned up the way a browser displays it.

Pick the output

  • CSV for databases, scripts and most import tools.
  • TSV for pasting straight into Excel, Google Sheets or Numbers.
  • JSON for code, with header rows as keys and optional number detection.

Everything happens in your browser; the original website is never contacted. To keep working with the data, open it in the CSV Viewer, convert it with the Data Converter, or turn it into a Markdown table.

Frequently asked questions

Can I just copy a table from a website?

Yes. When you copy part of a web page, your browser also puts its HTML on the clipboard. Pasting into the input uses that HTML, so the table's rows and columns arrive intact rather than as loose text.

How are merged cells handled?

Cells that span several rows or columns are laid out on a regular grid. With Repeat merged cells on, the value is copied into every cell it covers, which is best for sorting and filtering. With it off, only the first cell gets the value and the rest are empty.

What do I get in JSON mode?

An array of objects whose keys come from the header row. When a table has two header rows, such as a group heading above sub-columns, the keys combine them, for example Q3 2026 Chairs. Untick Header row as keys to get an array of arrays.

Why do numbers like 1,250 stay as text in JSON?

Thousands separators differ between countries, so 1,250 could mean one thousand two hundred and fifty or one and a quarter. Rather than guess, the value is kept as written. Plain numbers such as 310 become JSON numbers when Detect numbers is on.

Is anything uploaded or fetched?

No. The HTML is read in your browser and the tool never loads the original web page, its images or scripts.

Tutorials