JSON to HTML Converter Online — Free & Private

Paste JSON and get HTML output. Everything runs in your browser and nothing is uploaded.

Loading…
JSON → HTML tables and lists for previews and emails
Writes JSON as an HTML fragment of tables and lists, ready to paste into a preview, an email or a doc page.

Developer notes

An object becomes a table with one row per key. An array of objects becomes a table whose header row gathers all the keys. A list of plain values becomes a ul list. Nested objects and arrays become tables or lists inside the cell. An object with a single key, such as { "rows": [...] }, is unwrapped first so the table starts at the data. The output is a fragment, not a full HTML document, and every value is HTML-escaped.

Use cases

Preview an API response as a table in a ticket or an email. Turn a small JSON export into a table for a doc page. Check how a nested payload reads before you build the real template.

About these options

For CSV output, choose the delimiter, how fields are quoted, the line endings and whether to write a header row. Auto uses a comma in English and a semicolon in French, German and Spanish, as Excel expects. For CSV input, the delimiter is detected on the first line (comma, semicolon, tab or pipe). You choose whether that line holds the column names. JSON output can use 2 or 4 spaces or a single line, with an optional recursive key sort. XML output can be pretty-printed with a chosen indent width. YAML output takes an indent width and a quoting mode for strings. XML comments are dropped, because the conversion goes through a JSON tree.

Examples

Object with a nested object and a list

Input

{ "title": "FastMinify", "hero": { "headline": "Developer tools in your browser", "cta": "Open tools hub" }, "features": ["minify", "convert", "encode"] }

Output

<table> <tbody> <tr> <th>title</th> <td>FastMinify</td> </tr> <tr> <th>hero</th> <td> <table> <tbody> <tr> <th>headline</th> <td>Developer tools in your browser</td> </tr> <tr> <th>cta</th> <td>Open tools hub</td> </tr> </tbody> </table> </td> </tr> <tr> <th>features</th> <td> <ul> <li>minify</li> <li>convert</li> <li>encode</li> </ul> </td> </tr> </tbody> </table>

Array of objects as a table

Input

[ {"id": 1, "name": "Neo"}, {"id": 2, "name": "Trin"} ]

Output

<table> <thead> <tr> <th>id</th> <th>name</th> </tr> </thead> <tbody> <tr> <td>1</td> <td>Neo</td> </tr> <tr> <td>2</td> <td>Trin</td> </tr> </tbody> </table>

Related tools

Other converters that start from JSON are linked on this page.

JSON → HTML FAQ

How the HTML is built

How is an object with a single key handled?

A wrapper such as { "rows": [...] } is unwrapped, so the table shows the rows and not the wrapper key.

Is the HTML escaped?

Yes. The characters &, < and > in values are escaped, so the text cannot add markup.

What happens to a null value?

A null value gives an empty cell.

Is my data sent to a server?

No. The conversion runs in your browser, and FastMinify never receives what you paste.

Convert JSON to YAML, XML, CSV, TOML, TSV, SQL, HTML, Properties and INI. Every converter runs in your browser.