JSON to HTML Table Converter

Turn a JSON array into HTML table markup you can paste into a page or an email.

Processed on your device. Files are not uploaded

How to turn JSON into an HTML table

  1. Paste your JSON array

    Paste or type it into the box, or press Try an example.

  2. Add a class or caption

    Both are optional. A class helps your stylesheet find the table.

  3. Copy or download

    Paste the table into your page.

Worked example

This is what JSON to HTML Table Converter gives for its own sample values. Open the tool above and change anything to try your own.

JSON

[
  { "id": 1, "name": "Ada Lovelace", "email": "ada@example.com", "active": true, "score": 9.5 },
  { "id": 2, "name": "Linus Torvalds", "email": "linus@example.com", "active": false, "score": 7 },
  { "id": 3, "name": "Grace Hopper", "email": "grace@example.com", "active": true, "score": 10 }
]
Class name (optional)
Caption (optional)

HTML

<table>
  <thead>
    <tr>
      <th scope="col">id</th>
      <th scope="col">name</th>
      <th scope="col">email</th>
      <th scope="col">active</th>
      <th scope="col">score</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>1</td>
      <td>Ada Lovelace</td>
...

About JSON to HTML Table Converter

Turn a JSON array into HTML table markup you can paste into a page or an email template. Text is escaped, and nested objects become dotted columns.

FAQs

What JSON shape works?

A list of objects is best, with one row per object.

Can I get CSV instead?

Use JSON to CSV Converter.

Can I go the other way?

Use HTML Table to JSON Converter.

Related tools