100% Client-Side Privacy: Zero files or data uploaded.
100% Private Browser Execution

HTML Table to Markdown & JSON Converter

100% FreeNo Sign-UpNo Upload — Runs In Your Browser

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.

1

Paste HTML Table

Paste table HTML code or Excel rows.

2

Automatic Conversion

DOM parser converts rows into clean columns.

3

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.

Developer & Utility Guide

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.

Can I paste Excel cells directly?
Yes, copy-pasting tabular HTML or text parses into markdown formatting.
What happens to merged cells (colspan/rowspan)?
Markdown has no merged cells. Each source cell becomes one Markdown cell, so a cell spanning two columns appears as a single cell and that row ends up with fewer cells than the rows around it — check the alignment after converting a table with merged cells.
Does this tool output JSON?
Yes. Every conversion produces a JSON array alongside the Markdown table. The first row becomes the keys — a table with Name, Role and Salary headers gives [{"Name": "Alice", "Role": "Developer", "Salary": "$95k"}]. Empty headers become column_1, column_2 and so on, and repeated headers get a _2 suffix.