Html Table To Json
Free online html table to json tool, no installation required
About HTML Table to JSON
Extracts <table> data from an HTML fragment and emits clean JSON. It finds every table in the markup, lets you pick which one to convert, optionally treats the first row as a header to produce an array of objects, and reports how many tables and records were detected.
How to Use
1. Paste HTML containing one or more <table> elements into the input box. 2. Tick "First row is header" if the first <tr> holds column names. 3. If more than one table is found, choose the target table from the dropdown. 4. Click Extract Data to render the JSON; the badge shows the record count.
Header vs Array Output
With First row is header on, each data row becomes an object keyed by the header cell text; empty header cells fall back to column_0, column_1, etc. With the option off, every row (including the header row) is emitted as a plain array of strings, giving you a matrix of all td/th cell text content.
▶What happens when the HTML has multiple tables?
▶Are <th> cells treated differently from <td> cells?
▶What if a row has fewer cells than the header?
▶How is empty cell text handled?
If this tool has been helpful to you, consider buying me a coffee.
Buy me a coffee