This tool turns a JSON array of objects into a ready-to-paste HTML table. It is handy when an API or export gives you JSON but you need a quick table for a web page, a documentation block, or an HTML email — without writing the markup by hand.
How it works
- The JSON is parsed and validated to be an array of objects.
- The tool collects the union of all keys across every object, in first-seen order, to form the header row. This means objects that omit a key still align — the missing cell is simply blank.
- It emits a semantic
<table>with a<thead>of<th>headers and a<tbody>of one<tr>per object. - Every value is HTML-escaped (
<,>,&,",'), and nested objects/arrays are JSON-stringified so nothing is dropped.
Example
Input:
[
{ "name": "Ada", "role": "Engineer" },
{ "name": "Alan", "role": "Mathematician" }
]
Produces a two-column table with name and role headers and two rows. Toggle inline borders when you need the table to look right inside an email client that strips external CSS.
Notes
Because keys are unioned across all rows, heterogeneous arrays still render cleanly. Escaping is applied to both headers and cell values, so the snippet is safe to drop straight into a page. Everything runs locally — your JSON never leaves the browser.