JSON to HTML Table

Convert a JSON array of objects into a clean, escaped HTML table.

  • 100% client-side · your data never leaves your browser
  • Instant, no rate limits
  • Free, no sign-up
Input JSON
HTML table

Your result appears here

Paste JSON into the panel on the left — everything runs privately in your browser.

Overview

JSON to HTML Table — Generate HTML Tables Online

Convert a JSON array of objects into a clean, properly escaped HTML table with thead and tbody. JsonDrift derives the columns from the union of keys, renders one row per object, and HTML-escapes every cell so the markup is safe to drop into a web page or email. A single object becomes a key/value table. Everything runs in your browser.

No uploadsNo sign-upOpen source
  1. Why convert JSON to an HTML table?

    Sometimes you just need to display JSON data as a table on a page, in an email, or in a CMS without wiring up a framework. Generating semantic <table> markup from a sample gives you a drop-in snippet you can style with your own CSS, no JavaScript required.

  2. Safe, semantic markup

    The output uses a proper table structure — thead with th headers and tbody with td cells — and escapes &, <, >, and quotes in every value so the table can't break your layout or introduce injection. Nested objects and arrays are rendered as compact JSON strings.

    • thead / tbody structure with th and td cells
    • Columns from the union of keys across all rows
    • Every cell HTML-escaped (&, <, >, quotes)
    • Single object renders as a key/value table
  3. Style it your way

    The generated table carries no inline styles, so it inherits your site's CSS. Add a class to the <table>, apply borders and zebra striping with your stylesheet, or wrap it in a scroll container for wide data. It works in static pages, server-rendered HTML, and most email clients.

  4. Tips for clean output

    Flat arrays of objects produce the cleanest tables. For nested data, flatten first with the JSON Flattener or select the fields you want to display. For huge datasets, paginate or virtualize on the page rather than generating one enormous table.

FAQ

Frequently asked questions

How do I convert JSON to an HTML table?

Paste a JSON array of objects and JsonDrift returns semantic, escaped <table> markup ready to paste into any page.

Is the HTML safe to embed?

Yes. All cell content is HTML-escaped, so values containing <, >, &, or quotes won't break the markup or inject content.

Can I style the table?

Yes. The output has no inline styles, so it inherits your CSS — add a class and style borders, striping, and spacing however you like.

Is my JSON uploaded?

No. The conversion runs entirely in your browser.

Continue with a related tool

All tools

Learn more in our guides

All guides