JSON to Markdown Table

Convert JSON arrays and objects to Markdown tables ready to paste into docs or READMEs

Shortcuts: Ctrl+Enter run · Ctrl+L clear · Ctrl+D download

About JSON to Markdown Table

JSON to Markdown Table converts a JSON array into a Markdown table that you can paste directly into a README, wiki, documentation site, or GitHub issue. Each array item becomes a table row, and the keys become column headers. It saves the tedious work of manually formatting Markdown tables by hand.

  • ✓Produces a valid GitHub-flavored Markdown table, with pipes and line breaks in values escaped
  • ✓Uses all unique keys across the array as column headers
  • ✓Handles missing keys gracefully — empty cells where a key is absent
  • ✓One-click copy of the Markdown output

Turning JSON into Markdown Tables

Markdown tables are the easiest way to show structured data in a README, a GitHub issue or pull request, a wiki page, or documentation built with tools like Docusaurus or MkDocs. Writing them by hand is fiddly — every row needs the right number of pipes and the separator row must match the header. This tool generates GitHub-flavored Markdown tables from JSON automatically.

Three input shapes

  • ·An array of objects becomes a table with one column per key (the union of keys across all rows) and one row per object
  • ·A single object becomes a two-column Key / Value table, ideal for documenting configuration options
  • ·An array of plain values (strings or numbers) becomes a single-column table

Example

[
  { "endpoint": "/users", "method": "GET", "auth": true },
  { "endpoint": "/login", "method": "POST", "auth": false }
]
| endpoint | method | auth |
| --- | --- | --- |
| /users | GET | true |
| /login | POST | false |

How awkward values are handled

  • ·Pipe characters inside values are escaped as \| so they do not split the cell
  • ·Line breaks inside values are replaced with spaces, since a Markdown table row must stay on one line
  • ·Nested objects and arrays are written as inline JSON wrapped in backticks, so they render as code
  • ·null and missing values become empty cells

Where it is useful

  • ·Documenting API endpoints, environment variables or feature flags in a README
  • ·Pasting query results or test output into a GitHub issue so reviewers can read it
  • ·Writing release notes or comparison tables from data you already have as JSON

Markdown tables have no way to merge cells or nest tables, so deeply nested data reads poorly. Flatten it first with the JSON Flattener, or pick out the fields you need, to get one clean column per value.

Tip: GitHub, GitLab, Notion and most documentation generators render this table format. Classic Markdown without the GitHub extensions does not support tables at all.

Frequently Asked Questions

Ad