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.
This tool runs entirely in your browser. Open DevTools → Network panel and search your input — it appears in no request.
Next steps
Usage Guide
Tables copied from the web or email often need to become JSON for APIs or databases. Parse HTML table markup into row arrays locally — great for one-off scrape structuring.
1. Convert
colspan/rowspan may flatten or lose merge semantics — rebuild nasty tables in Excel then excel-to-json.
- Paste HTML containing a table.
- Convert to a JSON array (objects keyed by header cells).
- Copy into the next pipeline step.
2. Uses
- Structure scrape results quickly.
- Turn wiki/doc tables into API mocks.
- Chain with html-table-to-csv or markdown converters.
3. Caveats
Format markup with html-formatter; validate JSON with schema tools.
- Nested tables may need manual splitting.
- Inline styles are not JSON fields.
FAQ
Completely free with no registration. Parsing happens entirely in your browser and page data never leaves it.
Header cells (th or the first row) become the keys, and data cells become the corresponding values.
Extracting table data from web pages for structured processing, such as cleaning scrape results or pre-import format conversion.
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
A full walkthrough of converting between Excel, CSV, JSON, Markdown, and HTML tables: format characteristics, conversion paths, hands-on workflows, and common pitfalls — 12 free online converters in one place.
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.