My Tools Garage

JSON to Markdown Table

Turn a JSON array of objects into a Markdown table.

in-browser

How to use

  1. 1 Paste a JSON array of objects into the input box.
  2. 2 Choose left, center or right column alignment.
  3. 3 Review the generated Markdown table on the right.
  4. 4 Copy the Markdown and paste it into your document.

About JSON to Markdown Table

When you have data as a JSON array of objects and need it in a document, a Markdown table is usually what you want.

Writing the pipe-and-dash syntax by hand is slow and easy to get wrong, especially once the data has more than a few columns.

This tool does it instantly: paste a JSON array and each object becomes a row, with the keys turned into column headers and the values laid out beneath them.

A single object is accepted too and produces a one-row table.

The converter is careful about real-world data.

Columns are taken from the union of keys across every object in first-seen order, so rows that are missing a field simply get an empty cell instead of breaking the layout.

Pipe characters inside values are escaped so they display literally rather than splitting a column, line breaks within a value collapse to a <br> tag, and nested objects or arrays are rendered as compact JSON.

You can set the column alignment to left, center or right, which is emitted using the standard ---, :---: and ---: separator forms that every Markdown renderer understands.

Everything runs locally in your browser.

Nothing is uploaded, logged or stored, so it is safe for private or internal data and keeps working offline once the page has loaded.

When the table looks right, copy it with one click and paste it into a README, an issue, a pull request or a wiki.

FAQ

What if my objects have different keys?

Columns are built from the union of all keys in first-seen order. Any object missing a key gets an empty cell, so the table stays rectangular and valid.

How are pipes and line breaks handled?

Pipe characters are escaped as \| so they show literally, and newlines inside a value become <br> so the table layout is not broken.

Can I convert a single object?

Yes. A single JSON object is wrapped automatically and produces a table with one data row.