HTML Table to JSON
Convert HTML table markup to JSON or CSV — handles thead, th, colspan headers, and type coercion.
Preview
| Name | Role | Country | Active |
|---|---|---|---|
| Alice Chen | Frontend Engineer | Canada | true |
| Bob Müller | Backend Engineer | Germany | false |
| Carlos Rivera | DevOps | Mexico | true |
How HTML table parsing works
The parser locates the first <table> element using a regex tokenizer — no DOM required. It extracts <tr> rows, then pulls cell content from<th> or <td>tags, stripping inner HTML and decoding common HTML entities. With "First row is header" enabled, column names come from the first row; otherwise generic column_N keys are used.
Type coercion converts numeric strings to numbers, "true"/"false" to booleans, and empty cells to null. For the reverse conversion see JSON to Table. To parse CSV see CSV to JSON.
Private & free — this tool runs entirely in your browser.
Recommended: IndieKit — Ship your Next.js startup in days.affiliate
Related Converters tools
JSON to YAML
Convert JSON into clean, readable YAML instantly.
YAML to JSON
Convert YAML configuration into valid JSON.
JSON to CSV
Flatten a JSON array of objects into CSV rows.
CSV to JSON
Parse CSV with headers into a JSON array of objects.
JSON to XML
Convert JSON structures into nested XML markup.
JSON Minifier
Strip whitespace to produce compact JSON.
JSON to TypeScript
Generate TypeScript interfaces from a JSON sample.
JSON to SQL
Turn a JSON array of objects into SQL INSERT statements.