JSON to HTML Table Converter.

Convert JSON to a copy-ready HTML table in one click. Choose plain HTML, styled CSS, Bootstrap classes, Tailwind classes, nested sub-tables, or a flattened grid - all privately in your browser.

No signup · No uploads · Copy or download HTML

HTML output

Preview

// Paste JSON and press "Convert JSON to HTML table".

Convert JSON to HTML table online - free and private

A JSON to HTML table converter turns structured JSON into semantic <table> markup you can paste into a web page, CMS, documentation site, or email template. Paste a JSON array of objects above, choose the output style, and copy the generated HTML. Because the conversion runs client-side, your JSON is never uploaded.

How to convert JSON to HTML table in three steps

  1. Paste your JSON, ideally a JSON array of objects.
  2. Choose output options - plain HTML, styled CSS, Bootstrap, Tailwind, nested sub-tables, or flattened columns.
  3. Copy or download the HTML table snippet and paste it where you need it.

Plain, styled, Bootstrap, and Tailwind table output

Different projects need different markup. Choose plain HTML for clean semantic output, styled HTML table for a self-contained snippet with CSS, Bootstrap table classes for Bootstrap projects, or Tailwind table utility classes for Tailwind sites. The generated table is copy-ready either way.

Nested JSON to HTML table with sub-tables

Real JSON often contains nested objects and arrays. This tool can keep nested structure as HTML sub-tables, flatten nested keys into columns like profile.city, or keep complex values as JSON text inside cells. That gives you control over readability, hierarchy, and page layout.

What the generated markup looks like

A JSON array becomes complete, semantic table markup:

<table>
  <thead>
    <tr><th>id</th><th>name</th><th>role</th></tr>
  </thead>
  <tbody>
    <tr><td>1</td><td>Ada</td><td>admin</td></tr>
    <tr><td>2</td><td>Alan</td><td>dev</td></tr>
  </tbody>
</table>

A real thead and tbody, not a pile of divs — so it is accessible to screen readers, sortable by table libraries, and styleable with ordinary CSS.

Framework presets that drop straight in

Plain semantic HTML inherits whatever your stylesheet already does. The Bootstrap preset emits the familiar table table-striped classes. The Tailwind preset emits the equivalent utilities. The inline-styled option carries its CSS in style attributes — ugly inside a codebase, but exactly what an HTML email needs, since most mail clients strip external stylesheets.

Values are escaped — why that matters

If a value in your data contains a script tag, dropping it raw into markup would execute it. Values are HTML-escaped as the table is built, so the text renders as text.

One honest caveat: that protects the markup you copy from here. If you are rendering untrusted JSON dynamically in your own application, you still have to escape on output there — a generator cannot protect code it does not run inside.

Nested objects: flatten or sub-table

Flatten turns address into address.city and address.zip columns. The table stays a simple grid you can sort and style — almost always the right choice.

Sub-tables nest a whole table inside the cell, preserving the structure visually. Good for display, awkward for sorting. If your data is deeply nested, a tree view usually beats a table entirely.

Why use this JSON to HTML table tool?

It is private, fast, and purpose-built for web output. Values are escaped safely, the table can be previewed before copying, and the output can be downloaded as a complete HTML file. Need a spreadsheet instead? Try JSON to Table, JSON to CSV, or JSON to Excel. Learn the details in our guide on how to convert JSON to HTML table.

FAQ

JSON to HTML table, answered.

How do I convert JSON to HTML table online? +

Paste a JSON array of objects into the JSON to HTML table converter and press Convert JSON to HTML table. The tool turns object keys into table headers, values into table cells, and gives you copy-ready HTML that you can paste into a web page, CMS, email template, or documentation page.

Can this tool create a styled HTML table from JSON? +

Yes. You can choose plain HTML, a styled snippet with included CSS, Bootstrap table classes, or Tailwind CSS utility classes. That lets you create either minimal semantic markup or a ready-to-use styled HTML table from JSON.

How does it handle nested JSON objects and arrays? +

Nested data can be rendered as nested sub-tables, flattened into dot-notation columns, or kept as JSON text inside cells. Nested sub-tables are useful when you want to preserve hierarchy, while flattening is better for spreadsheet-style layouts.

Can I convert a JSON array to an HTML table? +

Yes. A JSON array of objects is the best input shape. Each object becomes one table row, and the union of object keys becomes the table columns. Single objects and arrays of scalar values are also supported.

Can I copy or download the generated HTML table? +

Yes. You can copy the HTML table snippet to your clipboard or download a complete .html file. The output is escaped safely so quotes, angle brackets, and other text values do not break the table markup.

Is my JSON uploaded when converting to HTML? +

No. The JSON to HTML table conversion runs entirely in your browser. Your data is never uploaded, stored, logged, or seen by any server, and there is no file-size cap beyond your device memory.

Is the generated HTML safe from XSS? +

Values are HTML-escaped when the markup is generated, so angle brackets and ampersands in your data cannot break out and become tags. That said, if you are rendering untrusted JSON dynamically in your own app rather than pasting static markup, always escape on output there too — a generator cannot protect code it does not run in.

How are nested objects rendered in an HTML table? +

Two options. Flatten them into dot-notation columns such as address.city, which keeps the table simple and scannable, or render a nested sub-table inside the cell, which preserves the structure visually. Flattening is usually the better choice for anything you intend to sort or style.

Can I get a Bootstrap or Tailwind styled table? +

Yes. Choose the framework preset and the markup comes out with the right utility classes — table table-striped for Bootstrap, or the equivalent Tailwind classes — so it drops straight into your page and inherits your existing design without you writing any CSS.