My Tools Garage

HTML Table to JSON

Turn an HTML table into clean JSON.

in-browser

How to use

  1. 1 Copy the HTML of the table you want to convert.
  2. 2 Paste it into the input box.
  3. 3 Choose whether the first row is a header.
  4. 4 Copy the resulting JSON from the output panel.

About HTML Table to JSON

The HTML Table to JSON converter scrapes a table out of HTML and hands you tidy JSON.

Paste the markup of any <table> — copied from a web page, an email or a generated report — and the tool reads the rows and cells and produces a clean JSON array you can drop straight into code, a spreadsheet importer or an API payload.

By default the first row is treated as a header, so the output is an array of objects keyed by the column names, which is usually what you want for real data.

Turn that option off and you get an array of arrays instead, preserving the raw grid of cell values including the header row.

Either way the converter strips inner tags like <b> and <a>, collapses whitespace, decodes common HTML entities such as &amp; and &nbsp;, and fills in empty strings for short rows so every object has the same shape.

It is handy for quickly extracting tabular data without writing a scraper, for prepping fixtures and test data, or for moving content between formats.

All parsing happens in your browser, so the HTML you paste is never uploaded or stored, and the tool works offline once loaded.

FAQ

What is the difference between the two output styles?

With “first row is a header” on, you get an array of objects keyed by the column names. With it off, you get an array of arrays — the raw grid of cell strings, header row included.

Does it keep the HTML inside cells?

No. Inner tags are stripped to plain text, whitespace is collapsed and common entities like &amp; and &nbsp; are decoded, so you get clean string values.