1xA2ZOne Data. Any Format.
Live syncLocal-first · no data upload

Convert JSON to Markdown

The tool only handles tabular data. Switch on Flatten nested objects (a.b.c) on the JSON tab, paste an array of objects into the Quick paste box, and the Markdown tab gives a table where nested objects become a.b.c columns and arrays become a.0, a.1.

Runs entirely in your browser. Your data is never uploaded. Tiếng Việt

01

Spreadsheet

SheetsExcelCSVTSV
✦ Quick pasteSheets / Excel, CSV, TSV, Markdown, JSON, HTML, LaTeX, wiki…
0 rows · 0 columnsSelected cell: A1
02

Live Output

Markdowntwo-way
SyncedEdit directly; the table on the left updates itself
0 characters
Every change is processed right in your browserReady · LocalUTF-8 · by xuanhieu.org

When you need to convert JSON to Markdown

JSON nests; a Markdown table is flat, one record per row and one key per column. If you want an API response or config in a README, the hard part is turning the nested bits into columns. This page loads sample JSON with a customer and an order nested inside each record, with flattening and padded columns already on.

How to do it

  1. Open the JSON tab, then ⚙ Options, and tick Flatten nested objects (a.b.c). The most reliable shape is an array of objects, one table row per element.
  2. Paste the JSON into Quick paste and press Load into table ↵, or use Import file with a .json file. The grid shows columns such as customer.name. With flattening off, nested parts stay in the cell as JSON text.
  3. Look at the column count. The longest array decides how many a.0, a.1, a.2 columns appear. Delete spare columns in the grid.
  4. Switch to the Markdown tab, adjust alignment, then Copy result or Download file.

A real example

The table has 7 columns. The customer object becomes customer.name and customer.city, and the items array becomes order.items.0 to order.items.2. Order A2 has one item, so its last two cells are empty.

Input · JSON

[
  {
    "id": "A1",
    "customer": {
      "name": "Anna Reed",
      "city": "London"
    },
    "order": {
      "total": 450,
      "items": [
        "book",
        "pen"
      ]
    }
  },
  {
    "id": "A2",
    "customer": {
      "name": "Ben Cole",
      "city": "Leeds"
    },
    "order": {
      "total": 1250,
      "items": [
        "backpack"
      ]
    }
  },
  {
    "id": "A3",
    "customer": {
      "name": "Cara Lin",
      "city": "Bristol"
    },
    "order": {
      "total": 299.5,
      "items": [
        "notebook",
        "pen",
        "ruler"
      ]
    }
  }
]

Result · Markdown

| id  | customer.name | customer.city | order.total | order.items.0 | order.items.1 | order.items.2 |
| --- | ------------- | ------------- | ----------- | ------------- | ------------- | ------------- |
| A1  | Anna Reed     | London        | 450         | book          | pen           |               |
| A2  | Ben Cole      | Leeds         | 1250        | backpack      |               |               |
| A3  | Cara Lin      | Bristol       | 299.5       | notebook      | pen           | ruler         |

Options worth changing

Flatten nested objects (a.b.c)
On, nested parts become their own columns. Off, each cell holds the nested part as raw JSON text: fewer columns but long, hard-to-read cells.
Align columns
With many columns like this one, padding makes the plain text easier to read. Turn it off if long a.b.c headers make the table too wide.
Escape special characters
JSON values containing *, _ or square brackets show literally when this is on. The pipe character is always escaped.
Bold first column
Handy when the first column is an id or key, so README readers can scan rows faster.

Common problems

Limits

Frequently asked questions

How does nested JSON become a table?

Turn on Flatten nested objects (a.b.c) on the JSON tab, then paste the JSON into Quick paste. Objects become a.b.c columns and arrays become a.0, a.1, one column per element.

Can Markdown keep the nesting?

No. A Markdown table is flat. Nested parts spread across columns or, with flattening off, sit as JSON text inside a cell.

My JSON is a single object, not an array.

Some object shapes still load as a table: an object of arrays gives one column per key, and an object of objects adds a first column called key. Paste into Quick paste or use Import file with a .json file; other shapes give an error or do not become a table.

Is my data sent to a server?

No. JSON parsing and table building happen in your browser.

Can I turn a Markdown table back into JSON?

Yes. Paste the table into Quick paste, where Markdown is recognised, then open the JSON tab and pick an output shape.

Related conversions

1xA2Z · Guide

Table statistics