450+ free calculators — no sign-up, no ads, no paywalls. Browse all tools →
Start typing to search...
Structured table extractor

HTML Table to JSON Converter

Extract table data from HTML and transform it into clean JSON objects or arrays with header mapping, merged-cell support, and optional value type detection.

HTML Input

JSON Output

0 records0 fields0 B

Local browser processing Colspan and rowspan aware No signup

How to Convert an HTML Table to JSON

Turn web table markup into structured development data in three steps.

STEP 01

Add the HTML

Paste a table or complete HTML page, or upload a valid .html or .htm file.

STEP 02

Choose the structure

Select a table, define header behavior, and choose objects, arrays, or a wrapped table object.

STEP 03

Export the JSON

Review the generated data, copy it, or download a UTF-8 .json file.

Purpose-Built Mapping for HTML Tables

HTML tables describe visual rows and cells, while JSON requires an explicit data structure. This converter builds a rectangular grid, creates reliable property names from headers, and maps each data row into the selected JSON format.

Duplicate or blank headings receive unique fallback names. Optional type detection converts clear numbers, booleans, and null values while leaving identifiers with leading zeros and ordinary text unchanged.

  • Select from multiple tables in a complete HTML document
  • Expands rowspan and colspan values into aligned cells
  • Extracts table text without executing pasted scripts
HTML
JSON

Why Use This HTML Table to JSON Converter?

Built for API fixtures, scraping workflows, development, QA testing, migration, and analysis.

Private processing

Your HTML is parsed locally and is never submitted to the website server.

Flexible JSON models

Generate objects for named fields, raw arrays, or a wrapped object with columns and rows.

Reliable field names

Blank and duplicate table headings are normalized into unique JSON property names.

Frequently Asked Questions

Practical answers about table extraction and JSON output.

Can I convert a complete HTML page?

Yes. Paste a full HTML document and select any detected table from the table menu.

How are table headings used?

In object mode, the first row becomes JSON property names. Blank or repeated headings receive unique fallback names.

How are rowspan and colspan handled?

Merged cells are expanded across their covered row and column positions to preserve alignment.

Does it convert numbers and booleans?

When type detection is enabled, clear numeric, boolean, and null values become native JSON types.

Is my HTML uploaded to the server?

No. Table detection, extraction, conversion, copying, and download creation happen locally in your browser.

Are links and HTML formatting preserved?

No. The converter extracts readable cell text and omits HTML tags, styles, scripts, and link markup.