Markdown Table to JSON Converter
Paste a Markdown table, or a whole README with tables in it, and get clean JSON: one object per row, with the header row as keys. Numbers and true / false are detected, and escaped pipes and <br> line breaks are handled. Runs in your browser, so your text is never uploaded.
Markdown Input
JSON Result
What Does This Converter Do?
It reads tables written in GitHub Flavored Markdown (GFM), the format used in README files, GitHub issues, wikis, Obsidian notes and AI chat answers, and turns each row into a JSON object. The header row gives the keys. Paste just the table, or a whole document: the converter finds every table and ignores the text around it.
How to Convert a Markdown Table to JSON
- Paste the Markdown, drop a .md file on the box, or load it from a link with URL.
- Choose how numbers and empty cells should be written.
- Click Convert to JSON, or press Ctrl + Enter.
- Copy or download the JSON, or send it to another tool with Open in.
Example
| Name | Age | City | | ----- | --: | ------ | | Emily | 34 | London | | James | 29 | Leeds |
[
{
"Name": "Emily",
"Age": 34,
"City": "London"
},
{
"Name": "James",
"Age": 29,
"City": "Leeds"
}
]How the Table Is Read
| In the Markdown | In the JSON |
|---|---|
| Header row | The keys. A repeated header becomes Name_2, an empty one column3. |
| --- | :---: | line | Marks the table; the colons (alignment) are not needed in JSON. |
34, 9.5, true, false, null | Numbers, booleans and null (turn this off to keep everything as text) |
007, phone numbers, very long numbers | Stay text, so no digits change |
\| inside a cell | A normal | character |
<br> | A line break (\n) |
| A row with fewer cells | The missing cells count as empty |
| Several tables in one text | An array with one array of rows per table |
Rows without the outer pipes, like Emily | 34 | London, are read too, because GFM allows both styles. A table must have the --- line under the header; without it, GitHub does not show a table either.
Tips
- Tables from ChatGPT or Claude: copy the answer as Markdown (the copy button) rather than selecting the rendered table, so the pipes come along.
- Need the other direction? JSON to Markdown Table turns JSON back into a table.
- Spreadsheet data? For CSV use CSV to JSON, and for .xlsx files Excel to JSON.
- Check the result as a tree in the JSON Viewer, or turn it into a schema with JSON to Zod.
Frequently Asked Questions
How do I convert a Markdown table to JSON?
Paste the table, or a whole Markdown document, and click Convert to JSON. Each row becomes an object with the header row as keys, and numbers and true / false become real JSON values.
Can it read several tables at once?
Yes. The converter finds every table in the text and ignores the writing around them. With more than one table, the result is an array that holds one array of rows per table.
What happens to empty cells and short rows?
Missing cells count as empty. You can write empty cells as an empty string, as null, or leave the key out of that row.
Is my text uploaded?
No. The conversion runs in your browser and your text never leaves your device.