HTML Table to Markdown & JSON Converter
Convert raw HTML table markup and copy-pasted spreadsheet rows into clean GitHub-flavored Markdown tables and a JSON array.
Quick Answer
This HTML table to Markdown & JSON converter turns a pasted HTML table, or rows copied straight from Excel, into clean Markdown table syntax you can drop into a README, a wiki or a notes app — plus a JSON array of objects keyed by the header row, ready for your code or an API. Everything converts in your browser, with no sign-up and nothing uploaded.
Paste Raw HTML Table or Tabular Text
Markdown Table Output
| Name | Role | Salary |
| --- | --- | --- |
| Alice | Developer | $95k |
JSON Output
[
{
"Name": "Alice",
"Role": "Developer",
"Salary": "$95k"
}
]
How to Use HTML Table to Markdown & JSON Converter
Follow these 3 simple steps to process your files securely in seconds.
Paste HTML Table
Paste table HTML code or Excel rows.
Automatic Conversion
DOM parser converts rows into clean columns.
Copy Markdown or JSON
Copy the Markdown table for GitHub or blogs, or the JSON array for your code.
Why Choose Toolenix Client-Side Tools?
Engineered for US & UK professionals who value maximum data privacy, speed, and zero cloud footprints.
DOM Table Parser
Accurately extracts TH and TD text nodes.
GitHub Markdown Ready
Formats clean markdown tables.
In-Depth Guide to HTML Table to Markdown & JSON Converter
Markdown tables are tedious to write by hand — every row needs its pipes aligned, and one missing pipe breaks the whole table. This converter takes a pasted HTML table, or rows copied straight from a spreadsheet, and turns them into clean GitHub-flavoured Markdown you can drop into a README, a wiki or a notes app — and a JSON array of objects keyed by the header row, ready to paste into your code or an API payload.
How the conversion works
The tool parses the pasted table's rows and cells, writes the first row as the header, adds the separator line (| --- | --- |) underneath it, and writes the remaining rows below. Pasted spreadsheet rows are split on tabs and newlines, so a copy from Excel or Google Sheets converts directly. Everything happens in your browser — the table never leaves your machine.
What it does with tricky tables
- Spanned cells (colspan / rowspan): Markdown has no concept of merged cells. Each cell in the source becomes one Markdown cell, so a cell spanning two columns appears as a single cell and the row will have fewer cells than the rows around it — check the alignment after converting a table with merged cells.
- Nested tables: only the outer table's cells are read; a table inside a cell is flattened to its text.
- Formatting inside cells: bold, links and code inside a cell survive as text, but the Markdown table itself carries no styling — alignment and fonts come from wherever you paste it.
About the JSON output
Every conversion produces JSON alongside the Markdown table. The first row becomes the keys, so a table with Name, Role and Salary headers gives an array like [{"Name": "Alice", "Role": "Developer", "Salary": "$95k"}]. Empty header cells become column_1, column_2 and so on, and a repeated header gets a _2 suffix so no key is lost. A row shorter than the header fills the missing values with empty strings, and a row with extra cells gets column_N keys for the extras. The JSON is pretty-printed with two-space indent and copies with one click.
Frequently Asked Questions
Everything you need to know about using this free online tool.