logohsb.horse

HTML Table ↔ JSON Converter

Convert between an HTML table element and normalized Table JSON entirely in your browser.

Normalize merged cells, multi-row headers, captions, and legacy summary attributes into rectangular Table JSON, then serialize it back to a regular HTML table when needed.

Input files and results stay in your browser.

Conversion direction

HTML header handling

HTML input

Open a local file

Maximum 5 MiB. The file is never uploaded.

JSON result

Safe table preview

Convert a table to display its preview here.

How to use

  1. 1

    Choose a direction

    Select HTML to JSON or JSON to HTML.

  2. 2

    Provide the table

    Paste text or open a local file of at most 5 MiB.

  3. 3

    Inspect the result

    Review normalization notes and the safe preview, then copy or download the result.

Table JSON rules

Table JSON contains a caption, one header, column alignments, and rectangular string cells. HTML classes, styles, link URLs, and original merged-cell presentation are not retained.

Frequently asked questions

What happens to rowspan and colspan?
Their values repeat into every covered cell to form a rectangle. Associations remain, but the original merged presentation does not.
Can scripts or formatting in the HTML execute?
No. The converter extracts displayed cell text, and the preview is built safely from validated Table JSON.
Can I convert multiple tables at once?
No. Provide exactly one table element per input.