TexToolsAI

JSON to Markdown Table Converter

To turn JSON into a Markdown table, paste an array of objects below. Each key becomes a column, each object becomes a row, nested keys are flattened to names like user.id, and pipes are escaped. You get a GitHub-Flavored Markdown table to copy. It all runs in your browser.

Read as JSON: 2 rows, 4 columns.

Table options

Preview

endpointmethodauth.typeauth
/api/convertPOSTBearer
/api/healthGET

How the conversion works

  1. Your text is parsed as strict JSON. If that fails and there are several lines, each line is parsed on its own as JSON Lines.
  2. Columns are every key found in any object, in the order they first appear. A key missing from one object gives an empty cell, and so does null.
  3. Numbers and true or false are written as text. Arrays are written as compact JSON, for example ["x","y"].
  4. The table follows the GitHub Flavored Markdown tables spec: a header row, a delimiter row of dashes, and one line per row, with | inside a cell escaped as \|.

The JSON rules are the ones in RFC 8259, which is why comments and trailing commas are rejected. The browser does the parsing with JSON.parse, so very large numbers can lose precision, just as they do in any JavaScript code.

Have CSV or spreadsheet cells instead?

Use the Markdown table generator, which reads CSV, TSV and cells pasted from a spreadsheet. If a table from ChatGPT or Claude shows up as plain text, our guide to fixing broken Markdown tables in LLM output lists the usual causes.

Need the table as safe HTML?

Paste the Markdown into the free playground to see the sanitized HTML that the TexToolsAI API returns. The API documentation shows how to send the same request from your code, and the Pro plan is ₹799 per month for 50,000 requests per month. Got hidden characters in the values? Clean them first with the AI text cleaner.

Frequently asked questions

Is my JSON sent to a server?

No. The tool parses your JSON with the browser's own JSON.parse and builds the table in JavaScript on your device. Nothing is sent to TexToolsAI or anyone else, and nothing is saved. Closing the tab clears it.

What JSON shapes does it accept?

An array of objects (each key becomes a column), a single object (one row), an array of arrays (the first inner array is the header), an array of plain values (one column), and JSON Lines with one object per line.

How are nested objects and arrays shown?

With flattening on, a nested object such as {"user":{"id":7}} becomes a column named user.id. Arrays, and nested objects when flattening is off, are written into the cell as compact JSON text.

Why does it say my JSON is not valid?

Strict JSON does not allow comments, trailing commas, single quotes or unquoted keys. JavaScript object literals often contain these, so remove them and try again. The message shows the error that JSON.parse reported.

What happens to pipes and line breaks inside values?

A pipe character would end the cell early, so it is written as \| as the GFM spec describes. A line break inside a value becomes <br>, which only shows as a break where the renderer allows that HTML tag.