Skip to content
scraper.tools

HTML table to CSV and Excel converter

Pull every table out of a web page or pasted HTML and download it as CSV, Excel or JSON. Merged cells are expanded and header rows are detected for you.

Showing a sample page so you can try things straight away. Fetch a URL or paste HTML to use your own.

How to use it

  1. 1

    Enter a page URL, or switch to Paste HTML and paste markup containing a table.

  2. 2

    Pick the table you want from the list. Each one shows its size and first header cells.

  3. 3

    Check the preview, then download CSV, Excel or JSON, or copy it to paste into a sheet.

Questions

How are merged cells handled?
Cells with colspan or rowspan are expanded so every row has the same number of columns. The merged value is repeated in each position it covers, which keeps the data rectangular for spreadsheets and databases.
How does it decide which row is the header?
Rows inside <thead>, or leading rows made only of <th> cells, become column names. Multi-row headers are joined per column. If a table has no header markup, the first row is used.
The table I see on the page is not listed. Why?
Some sites draw tables with JavaScript after the page loads, or build grid layouts out of <div> elements. This tool reads the HTML the server sends. For div-based grids, use the visual builder, which detects repeating elements of any kind.
Is my pasted HTML uploaded anywhere?
No. Pasted HTML is parsed in your browser and never sent to our servers. Only the URL option makes a server request, because browsers cannot fetch other sites directly.

Guides

Related tools

Need the same data every day, or from many pages? Build a scraper by clicking what you want, then schedule it.