DevGrill

JSON to Markdown Table

Turn a JSON array into a neat Markdown table for READMEs, issues and docs.

Runs in your browser

0 chars
0 chars

Tables for READMEs, issues and docs

Markdown tables are the easiest way to show structured data in a README, a pull request, an issue or a wiki, but writing them by hand means counting pipes and dashes. Paste JSON and get a GitHub-flavored table: an array of objects becomes one row per object with a column for every key, an array of arrays uses its first row as the header, and a single object becomes a two-column key and value table.

Columns are lined up so the Markdown is readable as plain text too, and columns that only hold numbers are right-aligned. Characters that would break a table are handled: | is escaped and line breaks become <br>. Nested objects and arrays are shown as compact JSON in inline code.

How to use the JSON to Markdown Table

  1. Paste your JSON. An array of objects, an array of arrays, or one object.

  2. Choose the style. Line up columns for readable source, or turn it off for the shortest output.

  3. Check the preview. It shows how the table will look once rendered.

  4. Copy the Markdown. Paste it into GitHub, GitLab, Notion, Obsidian or your docs.

Tips

  • Missing keys leave empty cells, so objects don't all need the same fields.
  • Wide characters like Chinese, Japanese or emoji count as two columns when lining up, so the source stays aligned in most editors.
  • Have CSV instead? Convert it to JSON in the JSON ↔ YAML ↔ CSV converter first.

Frequently asked questions

Does it work on GitHub?

Yes. The output is GitHub-flavored Markdown, which GitHub, GitLab, Bitbucket, Notion and most Markdown editors understand.

How are numbers aligned?

A column where every value is a number gets --: in its separator row, which right-aligns it. Turn off Right-align numbers to keep everything left-aligned.

Can I make a table from CSV?

Convert the CSV to JSON with the JSON ↔ YAML ↔ CSV converter, then paste the result here.

Is my data uploaded?

No. The table is made in your browser.

Related tools