Online HTML Table to JSON converter: parses HTML tables into JSON object arrays, using header cells as keys and data cells as values. Essential for web data extraction. All processing is done locally.
TL;DR: Free online HTML table to JSON converter that parses HTML tables into JSON object arrays with header cells as keys and data cells as values. Essential for structuring web data. Local processing only.
For local tools, open DevTools → Network and search your input — it should not appear in requests.
Next steps
Usage Guide
Paste HTML tables to JSON with header and empty-as-null options — local extraction for docs and admin pages.
1. Paste table HTML
Paste a table fragment, set options, copy JSON.
- Paste table.
- Set options.
- Copy.
2. Irregular markup
Colspans/nested tables misalign — simplify first.
3. Entities
Decode double-escaped text before converting.
- One table.
- Unmerge.
- Decode entities.
4. CSV / Markdown
Use sibling converters when spreadsheets or docs are the target.
5. Validate
Check fields/rows; all-null columns hint colspan issues.
6. Privacy
Prefer redacted samples on shared screens; document options.
FAQ
By default the first row (often th) supplies the keys; turn off the header option to use column indexes (ColumnN) instead. Empty cells can be mapped to null so downstream code can distinguish empty strings from missing values.
Copy the outer table's outerHTML from DevTools, or simplify the table into a regular grid before converting. Paste one table at a time on multi-table pages — missing closing tags also shift columns.
Usually a wrong header row count, or misalignment caused by colspan. After converting, check that the fields are complete and the row count matches, then verify against the original HTML with a small sample.
After normal parsing, entities are already decoded text. If you pasted double-escaped source, run it through the in-site HTML entity tools first, then come back to convert the table.
Use html-table-to-csv for Excel and html-table-to-markdown for docs. JSON suits API mocks and program consumption; CSV suits spreadsheet software.
Free with no registration wall. Parsing runs locally in the browser, and nothing you paste is transmitted to any external destination.
Related Tools
Related Articles
HTML Table to JSON: How to Preserve Rows, Columns and Structure
Converting an HTML table from a web page to JSON — how to keep headers, handle merged cells and nested structure? Step-by-step with our HTML table to JSON tool.
The Complete Guide to Table Format Conversion: Excel, CSV, JSON, Markdown, and HTML
Convert between Excel, CSV, JSON, Markdown, and HTML tables — delimiters, headers, empty cells, merged-cell boundaries, and matching browser tools.
Unexpected token '<' is not valid JSON — 5 Reasons Your API Returned HTML Instead
fetch throws SyntaxError: Unexpected token '<' when the response body is HTML, not JSON. Covers the 5 root causes: SPA history fallback returning index.html, auth 302 redirects, gateway 502 error pages, wrong baseURL, and missing res.ok checks — with curl diagnostics.