JSON to HTML table

Input
Output

JSON to HTML Table

Turn an array of JSON objects into a clean HTML table you can paste into an email, a web page or a report.

Example: an API response for an email report

The records are inside the response, under data.users. Bracely finds the array by itself, and the nested address becomes address.city and address.pin columns:

Input

{
  "page": 1,
  "total": 2,
  "data": {
    "users": [
      {
        "id": 1,
        "name": "Ananya Rao",
        "plan": "Pro",
        "address": {
          "city": "Pune",
          "pin": "411001"
        }
      },
      {
        "id": 2,
        "name": "Kabir <Admin>",
        "plan": "Free",
        "address": {
          "city": "Delhi",
          "pin": "110001"
        }
      }
    ]
  }
}

Output

<table>
  <thead>
    <tr><th align="right">id</th><th>name</th><th>plan</th><th>address.city</th><th>address.pin</th></tr>
  </thead>
  <tbody>
    <tr><td align="right">1</td><td>Ananya Rao</td><td>Pro</td><td>Pune</td><td>411001</td></tr>
    <tr><td align="right">2</td><td>Kabir &lt;Admin&gt;</td><td>Free</td><td>Delhi</td><td>110001</td></tr>
  </tbody>
</table>

How do I use the JSON to HTML table?

  1. Paste an array of objects.
  2. Pick which array to use if there are several.
  3. Copy the HTML.

What does the JSON to HTML table do?

  • Escaped, valid HTML
  • Nested keys become dotted columns
  • Switch Format for Markdown

When to use the JSON to HTML table

An HTML table is what you need when the data goes into an email, a web page, a CMS block or a report rather than Markdown. Paste the JSON and copy a plain <table> with a header row and one row per record, ready to style with your own CSS.

Every value is HTML-escaped, so a name like Kabir <Admin> shows as text instead of breaking the page or injecting markup. Number columns get align="right". Nested objects become dotted columns such as address.city, and Bracely finds the array inside a response by itself; type a path in Array to choose a different one.

Frequently asked questions

Does the table have any styling?
No CSS is added, only align="right" on number cells, so it fits whatever page or email template you paste it into. Add a class or your own styles after pasting.
Can I use it in an email?
Yes. It's a plain table with no scripts or external styles, which is what email clients handle best.
Is the output safe to paste into a page?
Yes. Values are HTML-escaped, so text can't turn into markup.
Is my data uploaded?
No. Bracely runs entirely in your browser, so nothing you paste or open leaves your device.

More JSON tools

Bracely has 108 JSON tools in one page. Related ones:

Runs entirely in your browser. Nothing you paste is uploaded. Made by Saurabh Pagrut · About · Privacy policy
Last updated · Version 6.7 · Changelog
Saurabh Pagrut on GitHub · LinkedIn · X · YouTube · Instagram