JSON to HTML Converter
Paste JSON and choose a display mode — table, nested list, or cards — to get ready-to-use HTML with a live preview and optional inline styles.
Last updated: May 27, 2026
Find this tool useful? Support the project to keep it free!
Buy me a coffeeWhat is JSON to HTML Converter?
Embedding JSON data in a web page usually means rendering it as a table, a list, or a set of cards. Doing it by hand is straightforward but tedious. This tool renders any JSON value into one of three HTML layouts and gives you the source code to copy.
Table mode is the most useful: when the input is an array of objects, the tool detects every distinct key across the array and produces a column for each, with one row per item. Missing keys produce empty cells. For non-uniform structures, the table degrades into a two-column key/value layout. Nested list mode produces a fully recursive `<ul>` representation, and cards mode renders one styled card per array item.
How to Use JSON to HTML Converter
Paste JSON into the input panel.
Pick a display mode: Table, Nested list, or Cards.
Optionally set a CSS class for the outer table.
Toggle inline styles if you want the preview to look styled without a stylesheet.
Copy the generated HTML.
Common Use Cases
- Embedding API response data into a static HTML page.
- Generating HTML tables for a quick admin or debug page.
- Producing card layouts from a list of objects.
- Visualizing nested JSON as a readable bullet list in documentation.
Example Input and Output
An array of objects becomes an HTML table with one column per key.
[
{ "id": 1, "name": "Alice" },
{ "id": 2, "name": "Bob" }
]<table><thead><tr><th>id</th><th>name</th></tr></thead><tbody><tr><td>1</td><td>Alice</td></tr><tr><td>2</td><td>Bob</td></tr></tbody></table>Privacy
All conversion happens in your browser. No JSON is sent to a server.
Styling
The optional <style> block uses a neutral palette. For production use, remove the style block and target your custom class through your application stylesheet.
Frequently Asked Questions
What happens if my array of objects has different keys?
The tool collects all keys across all objects and creates one column per unique key. Missing keys produce empty cells.
Are HTML special characters escaped?
Yes. All values are HTML-escaped before being inserted, so JSON containing < or & cannot break the output or introduce XSS.
How are nested objects in a table rendered?
Nested objects become a small inner table inside their cell. Arrays inside arrays render the same way recursively.
Does this send my JSON anywhere?
No. All rendering happens locally in your browser.
Related Tools
JSON to CSV Converter
Convert a JSON array of objects to CSV. Flattens nested objects with dot-notation columns and handles arrays within values.
JSON Formatter
Format, validate, and beautify JSON instantly — with clear error messages, Tree View, Diff mode, and Schema validation.
CSV to HTML Table Converter
Convert CSV or TSV data into a clean HTML table with border, striped rows, and responsive wrapper options.
JSON to XML Converter
Convert JSON to XML online. Nested objects and arrays are mapped to XML elements with configurable root element name and optional XML declaration.
JSON Validator
Validate JSON syntax online. Shows valid/invalid status, error location (line and column), and structure stats including type, key count, and depth.
HTML Cleaner
Clean messy HTML by removing inline styles, scripts, comments, empty tags, Word markup, class and data attributes.

