HTML Table to JSON
Parse an HTML table into clean JSON objects in one click.
Parse an HTML table to JSON
Result: —
How to use the HTML Table to JSON
- Paste the markup of an HTML table into the input box.
- Choose whether the first row holds the column headers.
- Click Convert to JSON and copy the parsed records.
Features
- Regex based parser with no dependencies
- Header cells become the object keys
- Entities and inline tags are unescaped
- Falls back to arrays when there is no header
Advertisement
Frequently Asked Questions
Common questions about the free online html table to json.
Paste the table markup and click Convert to JSON. The header row becomes the object keys and
every body row becomes one JSON object.
Clear the header checkbox and each row is exported as a plain array of cell values in the
order in which they appear.
Yes. Entities such as amp, lt, gt, quot and nbsp plus numeric character codes are converted
back into the characters they stand for.
Inline markup inside a cell is stripped and line break tags become spaces, so only readable
text ends up in the JSON output.
Yes. A cell with a colspan value is followed by the matching number of empty values so the
remaining columns stay aligned.
The first table element in the pasted markup is parsed. Without a table element the whole
text is scanned for table rows instead.
No. The parsing runs entirely inside your browser with plain regular expressions, so nothing
leaves your device.
Markup without any table rows produces a clear error message instead of an empty JSON result
you cannot use.
Last updated: October 10, 2026