Table to Markdown Converter
Convert an HTML table, CSV, or TSV into a GitHub-Flavored Markdown table. Pick the first row as the header, choose column alignment, and toggle padded or compact output. Pipe characters in cells are escaped automatically.
Input
Output
Guides
Turn a table you already have — an HTML <table>, a comma-separated CSV export, or a tab-separated block copied straight from a spreadsheet — into a clean, GitHub-Flavored Markdown table. Paste your data, pick the input format, and the Markdown appears instantly, ready to drop into a README, a pull request, an issue, or any Markdown-aware editor.
How to use it
- Choose the Input Format that matches your data: HTML Table, CSV, or TSV.
- Paste the table into the input box. If you copy a range of cells from Excel, Google Sheets, or Numbers, it arrives as TSV (tab-separated) — pick that option.
- Adjust the options and copy the Markdown from the output panel.
The conversion runs entirely in your browser. Nothing you paste is uploaded to a server.
Options
- First Row as Header — treats the first row as the table header (the bold top row above the
---divider). Turn it off and the tool generates genericColumn 1,Column 2, … headers, since a Markdown table always needs a header row. - Column Alignment — sets the alignment marker in the separator row for every column: left (
---), center (:-:), or right (--:). Markdown renderers use these to align the cell text. - Compact Mode — outputs the smallest valid table (no padding spaces). Leave it off and columns are padded so the raw Markdown lines up in a monospace editor and stays readable before it's rendered.
What it handles for you
- Pipe escaping. A literal
|inside a cell would otherwise split it into two columns, so every pipe in your data is escaped to\|automatically. - Ragged rows. If some rows have fewer cells than others, the shorter rows are padded with empty cells so the table stays rectangular and valid.
- Messy HTML. The HTML parser reads
<tr>,<th>, and<td>tags, strips any inline markup inside cells, and decodes common entities like&and .
Which format should I pick?
If you copied cells directly from a spreadsheet, use TSV — that's the format the clipboard uses. If you exported a .csv file, use CSV (it understands quoted fields containing commas). If you're pulling a table out of a web page's source, use HTML Table.
Does it produce GitHub-Flavored Markdown?
Yes. The output is a standard GFM pipe table — the same syntax GitHub, GitLab, and most Markdown editors render as a table.
Is my data private?
Yes. The conversion happens locally in your browser; the table text never leaves your device.