Converters

HTML Table to JSON Converter

Paste an HTML <table> below to convert its rows into a JSON array.

What does this tool do?

Paste an HTML <table> below to convert its rows into a JSON array. Everything runs locally using JavaScript in your browser — nothing you paste or upload is ever sent to a server.

How to use this tool

  1. Paste your html table into the left-hand box.
  2. Click Convert to JSON.
  3. Copy the json output from the right-hand box.

Frequently asked questions

Which row is used for the column names?

The first row of the table (whether it uses <th> or <td> cells) is treated as the header row and supplies the key names.

Does it support <thead> and <tbody>?

Yes — the tool reads all <tr> rows in document order regardless of whether they're wrapped in <thead>/<tbody>, so both plain and semantic tables work.

What if a cell contains HTML formatting like bold text?

Only the visible text content of each cell is extracted; inline markup like <strong> or <em> is stripped.