JSON to Markdown Table
JSON to Markdown Table converts a JSON array of objects into a GitHub-flavored Markdown table in your browser, with one column per key, nested fields flattened and number columns right-aligned. It shows the token count of the table against the minified JSON.
How to use JSON to Markdown Table
- Paste a JSON array, open a .json file, or try the sample.
- Choose whether nested objects become columns and number columns are right-aligned.
- Copy the Markdown table or download it, and check the token count against the JSON.
Frequently asked questions
Which JSON shapes work?
An array of objects (one row each), an array of arrays (the first row is the header), an array of plain values, or a single object, which becomes a Key and Value table. An object that wraps one list, such as {"data": [...]}, is unwrapped.
Does a Markdown table use fewer tokens than JSON?
Often, because the keys are written once in the header instead of on every row. Not always: sparse data with many empty columns can come out longer. The page counts both on your data with the o200k tokenizer used by GPT-4o and newer OpenAI models, against the JSON with its spaces removed.
What happens to nested objects and arrays?
With flattening on, {"team": {"city": "London"}} becomes a team.city column and list items become numbered columns. With it off, the nested value is written as compact JSON in one cell.
Is my data uploaded?
No. The table is made in your browser and nothing is sent to a server.
Next step
Want the table in a document? Turn the Markdown into a PDF. Open Markdown to PDF.