Convert JSON to table format by pasting one strict JSON object or a non-empty array of objects into the JSON to HTML Table Converter and copying its escaped HTML table fragment.
The converter turns records with named properties into semantic HTML table markup for documentation, prototypes, email drafts, static pages, and developer handoffs. Processing happens in the current browser tab: data is not uploaded, input is not evaluated as JavaScript, no API is called, and generated markup is not inserted with innerHTML.
This workflow produces HTML rather than CSV, Excel, or a sortable data grid. Its strongest fit is a flat set of records that needs a readable table with headers, followed by presentation work in the page, template, email draft, or design system where it will be used.

What the HTML table contains
The generated fragment contains a table element, a thead section with one header row, and a tbody section containing the data rows. Headers come from the union of own enumerable keys across the supplied records. Keys found in the first record appear first, while keys first encountered in later records are appended in their first-observed order.
The converter deliberately leaves presentation and page semantics to the destination. It does not add CSS classes, inline styles, captions, IDs, links, sorting controls, data attributes, or inferred column types. A single object becomes one row, while each object in an accepted array becomes a data row. Nested data stays inside its original cell instead of creating additional rows.
Prepare JSON with named records
The input must be strict JSON as defined by RFC 8259. It must contain either one object or a non-empty array whose members are all objects.
| Input shape | Result | Reason |
|---|---|---|
| One JSON object | One data row | Its named properties supply the columns |
| Array with one or more objects | One data row per object | Properties are combined into a union of columns |
| Empty array | Rejected | At least one record is required |
| Primitive root or array of primitives | Rejected | Primitive values do not provide stable named columns |
| Array containing any non-object member | Rejected | Every array member must be an object |
Comments, trailing commas, undefined, NaN, Infinity, BigInt syntax, and JavaScript object literals are also rejected. Remove those constructs before conversion rather than expecting the parser to repair them. Duplicate member names should not be used as data because standard JSON parsing resolves them before table generation, so their original multiplicity cannot be preserved.
Build and inspect the table
-
Open the JSON to HTML Table Converter and paste one strict JSON object or a non-empty array of objects. Make sure the root has the required object shape and that the payload contains no unsupported JavaScript syntax.
-
Run the conversion. The tool parses the JSON, creates the union of available columns, and produces the HTML fragment together with a readable preview.
-
Inspect the columns and rows. Check that keys from the first record appear first, newly discovered keys from later records appear afterward, missing properties have blank cells, explicit null values display as null, and nested values remain visible as compact JSON.
-
Review the escaped preview, especially strings containing markup-sensitive characters. A value such as <script> should appear as text rather than becoming an executable tag.
-
Copy the exact HTML fragment. It includes the table structure and escaped header and cell content, but it intentionally does not include destination-specific presentation such as a caption or stylesheet.
-
Paste the fragment into the destination, add an appropriate caption and styles, and test the result in the final page. Confirm that the surrounding document supplies enough context and that the page meets its own accessibility and Content Security Policy requirements.
Read missing values and nested data correctly
A missing property and an explicit JSON null remain separate in the output. If the first record contains {"active": true} and a later record omits active, the active cell for that later record is empty. If the later record contains {"active": null}, its cell displays the text null. This prevents two different states from silently collapsing into the same table.
Strings remain strings, while numbers and Booleans use their JSON-readable spelling. Nested objects and arrays are serialized as compact JSON in a single cell. This preserves the nested value without inventing a row-and-column policy, but it may not be convenient for spreadsheet-style reading.
If the destination requires dot-path columns, one row per nested item, normalized child tables, or relational flattening, transform the records against an explicit schema before generating the HTML table. Otherwise, the compact JSON cell is the supported representation.
Add presentation without weakening escaping
The generated table is a structural starting point rather than a finished interface. Add a destination-specific caption, apply the relevant styles, and make sure users can understand what each column represents. The WHATWG HTML syntax reference can help confirm that the copied elements remain valid when inserted into the target document.
Every header and cell is encoded for HTML text context. Ampersands, less-than signs, greater-than signs, quotes, and apostrophes are escaped in the generated fragment. The on-page preview is also safer than an HTML injection preview because it is rendered with React text nodes using the original cell values rather than by injecting the generated markup.
Escaping does not remove the need for downstream review. Follow the OWASP XSS Prevention Cheat Sheet when deciding how untrusted content will be handled in the final page, and keep that content in an appropriate text context.
Choose the output that matches the destination
Before converting, decide whether the destination needs a table for human reading or a different data format for further processing. The generated HTML is well suited to records with stable, named fields and to content that must remain visible within a page.
-
Use the HTML table when the result will be placed in documentation, a static page, a prototype, an email draft, or a developer handoff.
-
Plan to add sorting, filtering, or other controls in the destination; the converter does not generate interactive table features.
-
Choose a different workflow when the destination expects spreadsheet formulas, workbook features, or one nested item per row.
-
Define a schema before flattening nested records, because the converter intentionally preserves nested structures rather than multiplying rows.
Respect the conversion limits
The converter checks both input and output boundaries. It fails rather than silently truncating a result that exceeds a documented limit.
| Boundary | Limit |
|---|---|
| Input characters | 500,000 |
| Data rows | 10,000 |
| Columns | 200 |
| Output characters | 5,000,000 |
Prototype-shaped key names such as __proto__ are read only as own properties and are never assigned into a prototype-bearing accumulator. Nested values may also increase the generated output size, so even input that stays below the character limit can exceed the output limit. If conversion fails, reduce the payload or redesign the destination schema rather than assuming that part of the table was successfully produced.
If you're weighing options, How to Choose the Right JSON-to-Rust Struct Approach covers this in detail.
If you're weighing options, JSON to XML Bulk Conversion: A Practical Workflow covers this in detail.