Skip to main content
KalkuNet

JSON to HTML Table — Turn an Array of Objects into Safe <table> Markup

Render JSON array rows into semantic <table><thead><tbody> HTML markup.

Runs in your browserDeveloper · JSON, YAML, TOML, XML & CSV Converters
Indentation:

3 data rows, 7 columns.

hostnameipvlansite.citysite.rackactivenote
core-rtr10.0.0.11JakartaA1true
sw-akses-0110.0.10.1110Bandungtrueuplink <10G> | cadangan
ap-lobby10.0.20.520falsedua baris catatan
  • An array of objects gets one column per key (nested objects become a.b columns, arrays are written as JSON text, null becomes an empty cell). An array of arrays is read row by row.
  • Cell text is escaped (&, <, >, ") so text such as <10G> shows as written and cannot inject HTML.

When to use the JSON Array to Clean HTML <table> Markup Converter

  • One column per key

    Each object in the array becomes a row and each key becomes a column in the order it first appears. Nested objects such as site.city get their own column, and a key missing from an object becomes an empty cell.

  • Tidy, semantic markup

    The output uses thead with th for the column titles and tbody with td for the data, plus a caption when you give one. Indent with 2 spaces, 4 spaces, a tab, or write it on one line to drop into a template.

  • Cell text cannot inject HTML

    The characters &, <, > and quotes are escaped, so text such as <10G> or a script in the data shows as plain text. Testing reads the table back with Python's HTML parser and gets exactly the same cell text.

  • Line breaks inside a cell

    Notes that run over several lines can be written with <br> so they still stack in the browser. With the option off, line breaks are left as they are and the browser shows them as spaces.

Frequently asked questions

What kind of JSON can it read?

An array of objects, an array of arrays (row by row), an array of plain values, or a single object. An array that mixes objects with plain values is reported with its position.

What about arrays inside an object?

Arrays are written as JSON text in one cell, such as ["core","bgp"], so no data is lost.

Does it add CSS?

No. The markup is left plain so it takes your site's styles; add your own classes if needed.

Is my data uploaded?

No. The conversion runs entirely in your browser.

Learn more