JSON to HTML Table Converter
Turn JSON data into an HTML table you can read at a glance or paste into a page. Each object becomes a row, every key becomes a column, nested fields are flattened into names like address.city, and all values are escaped.
How to Convert JSON to an HTML Table
Quick answer: paste your JSON array or open a .json file; the table code appears below, ready to copy.
-
1
Add your JSON
Paste it or open a .json file.
-
2
Choose options
Flattening and styling.
-
3
Copy the code
Paste it into your page.
-
4
Or download
Save the .html file.
What You Get
Why Show JSON as a Table?
JSON is great for programs but tiring to read when it holds many records. A table shows the same data in rows and columns, so you can compare values at a glance, spot gaps and share the data with people who do not read code. The converter builds that table as HTML, ready for a report, a documentation page, an email or an internal dashboard.
How the Table Is Built
The converter finds the array of objects, at the top level or inside the first property that contains one, such as "data" or "items". Every key found in any object becomes a column, so missing values become empty cells. With flattening on, nested objects become columns such as team.name and team.floor; lists of simple values are joined with semicolons. Turn flattening off to show nested objects as JSON text in a single cell.
A Clean HTML Table
The result is a standard HTML table with a <thead> for the column names and a <tbody> for the data, which is the structure that browsers, screen readers, content systems and email builders handle best. Every value is escaped, so characters such as <, > and & in your JSON show as text instead of breaking the page.
Styling Options
Add a class name gives the table class="data-table", so you can style it from your site's style sheet. Include simple styling adds a short style block with borders, padding, a shaded header and striped rows, which is handy for pages without their own table styles and for quick previews. Indent the HTML makes the code easy to read; turn it off for the most compact output.
Where to Paste the Table
Most website builders and content systems have an HTML block or code view: paste the table there. In blog editors, switch to the HTML or text tab first. For emails, paste into the HTML source of the template; tables are the most reliable layout in email programs. Keep the styling option on when the destination has no table styles of its own.
More Conversions
Need the data in another format? Try JSON to CSV or JSON to TXT. To check text before or after converting, the Word Counter and Remove Extra Spaces tools help, and to show the HTML code itself on a page, use HTML Encode.
Example
The sample team list becomes a table with the columns name, role, team.name and team.floor and one row per person. Paste it into a page with styling on to share a readable team overview.
Practical Tips
If your JSON wraps the records in an outer object, such as { "data": [ … ] }, the array is found automatically. For very deep data, turn flattening off to keep nested parts readable as JSON inside single cells. Rename keys in your data before converting if you want friendlier column headings, for example "first_name" to "First name".
Private, Free and Instant
The converter is free and handles files up to 5 MB. There is no sign-up, no limit beyond the 5 MB file size and nothing to install. Everything runs in your browser, so documents, exports and private data are never uploaded or stored. Open a file from your device or paste text from another program, then copy the result or download it with the right file extension. It works on Windows, Mac, Linux, Chromebooks, iPhone and Android.
JSON to HTML: Showing Data as a Table
A JSON array of records can be shown on a web page as a table. The keys become column headings and each object becomes a row.
Good practice
- Escape text so characters such as < do not break the page.
- Add a caption and use header cells for accessibility.
- Keep very large tables paged or scrollable on small screens.
For spreadsheets, use JSON to CSV.
Frequently Asked Questions
Questions about JSON to HTML