JSON to HTML Table
Paste a JSON array of objects or an array of arrays and get a clean HTML <table>: one header row from the object keys (or the array values), one row per record, escaped cell text so the markup stays valid. Nested objects and arrays inside a cell are rendered as readable JSON, and null, booleans and numbers keep their JSON type so nothing is lossy. Works entirely on your device.
🔒 100% Client-Side & Private — processed locally in your browser. Files never leave your device.
Options
Your result will appear here
Type or paste your input above, adjust the options, then press Run. Tip: press Ctrl+Enter to run, and ? for every shortcut.
How it works
Turning a JSON array into markup
Paste a JSON array and the tool returns an HTML table with a thead header row and a tbody of records. An array of objects takes its headers from the keys, collecting any key seen across the rows; an array of arrays uses the first row as the header, or numbers the columns when there is only one row, so a single record still renders sensibly.
When a table beats a JSON blob
It helps when you want to preview API output, a config dump or a small dataset inside a document, a wiki page or an email and real table markup reads far better than a wall of braces.
Styling and nested values
The style option adds no class, a zebra class or a bordered class to the table element, leaving the CSS to you. Pretty-print nested values keeps objects and arrays inside a cell indented as JSON; switching it off compacts them onto one line.
Escaping and edge cases
Escaping is on by default, so angle brackets, ampersands and quotes in cell text become entities and the markup stays valid. Input must be a non-empty array and is capped at 1,000,000 characters; strings, numbers and booleans are written as they are, while null becomes an empty cell.
Built in the page, never transmitted
The table is assembled in the browser from the text you paste, so your JSON is never uploaded and the tool works without a network connection.
Questions
What input does it accept?
A JSON array. An array of objects uses the object keys as the header; an array of arrays uses the first row as the header (or numbers the columns when there is a single row). Numbers, booleans and null are preserved as their JSON values.
How are nested values handled?
Objects and arrays inside a cell are pretty-printed as JSON so nothing is lost, and cell text is HTML-escaped (with the option to disable it) so the table markup stays valid.
What does the Style option do?
It only adds a class attribute to the table element: plain leaves no class, zebra adds class "zebra" and bordered adds class "bordered". You supply the CSS that styles those classes.
Related tools
See categoryCSV to HTML Table
Turn CSV data into a clean HTML table, with optional inline styling, on device.
JSON Formatter & Validator
Pretty-print, minify, recursively sort keys or validate JSON, with line/column errors.
CSV to JSON
Parse CSV (RFC 4180) into a JSON array, with delimiter sniffing and type inference.
CSV Profiler
Profile a CSV file: per-column type inference, missing values, unique counts, and numeric stats.