Logo JSON Parser Online

Convert JSON Array to HTML Table

Paste a JSON array of objects and click Generate. The first object's keys become the table headers, and each subsequent object becomes a row. The output is a plain <table> element you can paste into any HTML page.

All JSON Tools

28 tools

Free, fast, runs in your browser. No login needed.

Made with ❤️ in India · © 2025 parsejsononline.com
INPUT
1
OUTPUT
1
✅ Ready
Characters: 0
Ctrl+Enter to run
What is this tool?

How to use

  1. Paste your JSON array of objects into the INPUT pane.
  2. Click Generate.
  3. Copy the output HTML or download it as an .html file.
  4. Add CSS to the table element to match your page's styling.

How it works

The generator reads the keys of the first object in your array as the column headers and writes them into a <thead> row. Each subsequent object becomes a <tr> in the <tbody>, with each key's value in the corresponding <td>.

Column list is fixed to the first row. If later objects have additional keys that the first object lacks, those extra fields are silently omitted. If later objects are missing keys from the first object, those cells render as undefined.

Nested values. Object and array-valued cells are serialized to a JSON string and placed as text content in the cell — they are not expanded into nested tables.

No styling. The output is a plain unstyled <table>. Add CSS to style it — a simple starting point: table { border-collapse: collapse; } td, th { border: 1px solid #ccc; padding: 8px; }

Important: Cell values are not HTML-escaped. If your data contains <, >, or & characters, the rendered HTML may be incorrect or present an XSS risk. Only use this tool with trusted data, and escape values manually if needed before inserting into a web page.

FAQ

What JSON input does this expect?

An array of objects — e.g., [{"id": 1, "name": "Alice"}, {"id": 2, "name": "Bob"}]. Each object becomes a table row. If your input is an object containing an array (e.g., {"users": [...]}), that array is detected automatically.

How do I add styling to the table?

The output is a plain unstyled

. Add CSS: table { border-collapse: collapse; } td, th { border: 1px solid #ccc; padding: 8px; } for a basic grid appearance. Or apply your project's existing table CSS classes to the element.

What happens to nested objects in cells?

Object and array values are serialized as a JSON string inside the cell. They are not expanded into nested tables.

Is the output safe to use in a web page?

Only with trusted data. Cell values are not HTML-escaped — data containing < or > characters will produce invalid or unsafe HTML. Escape values manually or sanitize the output before using it in a web page with user-supplied data.

Is my data sent anywhere?

No. Generation runs entirely in your browser.

Related tools

JSON Table ViewerRender JSON as a styled interactive table — no HTML needed. JSON to MarkdownGenerate a Markdown table instead of HTML. JSON to CSVExport as CSV for spreadsheet import.