JSON to Table Converter
Convert JSON arrays into clean HTML or Markdown tables with custom columns and escaped markup.
Run tool
Convert structured JSON data into clean HTML or Markdown tables online. Paste a JSON array containing objects or simple values into the input field to generate formatted tabular markup. When processing arrays of objects, the converter automatically gathers column headers from keys as they appear in the data and leaves empty cells for any missing properties. Arrays composed of simple values like strings or numbers are arranged neatly into a single-column table. You can select HTML markup, Markdown tables, or both formats together depending on your publishing workflow. The converter automatically escapes special HTML characters in table cells and escapes pipe symbols within Markdown rows to preserve proper rendering. Please note that input must be a formatted top-level JSON array rather than a standalone object or empty text. Empty arrays do not generate a table. When converting arrays with mixed data types, non-object entries occupy only the first column.
Instructions
- Paste your JSON array into the JSON Input field.
- Specify your desired output format: HTML, Markdown, or both.
- Generate the table to view the rendered tabular structure.
- Copy the generated markup to embed in your web pages, README files, or documentation.
Examples
- [{"name": "Alice", "role": "Engineer"}, {"name": "Bob", "role": "Designer", "team": "Product"}] converted to HTML produces a table with columns for name, role, and team, leaving an empty cell where team is missing for Alice.
- ["Apples", "Bananas", "Cherries"] converted to Markdown creates a single-column table listing each fruit in a separate row.
FAQ
What JSON structures are supported?
The converter accepts top-level JSON arrays. These arrays can hold objects with key-value pairs or scalar values like strings and numbers. Single objects must be enclosed in square brackets to form an array.
How are missing object keys handled across different rows?
Columns are created based on the order keys are first encountered. If a subsequent object lacks a property, that cell remains empty in the resulting table.
Does the converter escape special characters?
Yes. Special HTML characters are escaped in HTML output, and pipe characters are escaped in Markdown table cells to maintain valid syntax.
Can I output both HTML and Markdown tables at once?
Yes. Selecting the combined format option generates both the HTML table and the Markdown table simultaneously from the provided JSON data.