Skip to content
migration.tools
JSON to HTML table

JSON to HTML table converter

Render a JSON array as an HTML table, with nested objects flattened into columns.

Going the other way? HTML table to JSON

Options

JSON

HTML table

The result appears here as soon as there is input.

Processed on this device. Nothing you paste or drop is uploaded.

How to use it

  1. 1Paste your JSON or drop a file onto the input panel.
  2. 2Adjust the options — the result updates as you type.
  3. 3Copy the HTML table or download it. Drop several files to convert a batch into one ZIP.

How JSON becomes HTML table

A table needs rows, so the converter first finds the list of records in your JSON — the top-level array, or the largest array of objects nested inside it — and makes one row per record.

Nested objects are flattened into dotted column names (address.city), arrays inside a record are written as JSON text in a single cell, and the header is the union of every key that appears in any record, so sparse data lines up correctly.

JSON and HTML table, briefly

JSON is the default language of web APIs and document databases. It nests objects and arrays to any depth and distinguishes strings, numbers, booleans and null, but has no comments and no date type.

An HTML table is how tabular data appears on a web page. Converting it lets you lift data out of a page, or drop a clean table into an email or CMS.

Questions

What if my JSON isn't an array of objects?

The converter looks for the list of records inside the document — for example the array under "data" or "items" in an API response — and tells you which one it used. A single object becomes one row.

Is the HTML safe to paste into a page?

Cell contents are HTML-escaped, so characters like <, > and & in your data can't break the markup. The table has a thead and tbody and no inline styles.