HTML Table Extractor
Extract a table from a web page or from pasted HTML as CSV, JSON or Markdown. The tool finds every table element, reads the one you choose with its header row, expands cells that span several rows or columns and returns clean data you can open in a spreadsheet or use in code.
Frequently asked questions
How do I pick a table when a page has several?
Enter its number in the order the tables appear in the HTML, starting with 1. If the number is too high, the tool tells you how many tables the page has.
How is the header row chosen?
The first row becomes the header when it is inside thead or consists only of th cells. Otherwise the columns are named Column 1, Column 2 and so on, and every row is kept as data. Duplicate header names get a number appended.
What happens with merged cells?
A cell with colspan is repeated in every column it covers, and a cell with rowspan is repeated in the rows below it, so every row has the same number of columns.
Which output formats are there?
CSV with standard quoting of commas, quotes and line breaks, JSON as an array of objects keyed by the header names, and a Markdown table. Cell text is taken without HTML tags and with whitespace collapsed.
Can it read tables that a script builds?
No. The tool reads the HTML the server returns and does not run JavaScript. If a table only appears after the page has loaded, copy the rendered HTML from your browser's developer tools and paste it.
Are there size limits?
The tool reads up to 2 MB of HTML from a URL or 2,000,000 pasted characters, and up to 5,000 rows and 100 columns per table.