HTML table to Markdown
Convert HTML tables to GitHub-flavored Markdown tables with alignment kept.
Related tools
HTML table to Markdown
Paste HTML that contains a table and get a GitHub-flavored Markdown table back — pipe-separated cells, a separator row and columns padded to equal width so the source stays as readable as the render. Typical jobs: moving documentation into a GitHub or GitLab wiki, adding a table to a README, converting a table copied from a CMS or an Excel-exported page, or migrating legacy HTML docs to Markdown.
The converter finds every table element in the input and converts them all, separated by blank lines, so you can paste a whole page rather than cutting out fragments. Wrappers like thead, tbody and tfoot are read transparently. When the first row uses th cells, it becomes the Markdown header; otherwise the "First row is headers" option decides — switch it off and the tool emits an empty header row, because a Markdown table cannot exist without one. Alignment set with align attributes or a text-align style on the header cells is carried over as :---, :---: and ---: markers.
Cell content is cleaned on the way through: inner tags are stripped while their text is kept, br becomes a space, common and numeric HTML entities are decoded, whitespace collapses to single spaces and pipes are escaped so data can never add a column. Since Markdown has no cell spanning, a colspan repeats its text across the columns it covers and rows under a rowspan get empty cells. Compact output skips the padding when you want the smallest possible source.
The conversion runs entirely in your browser — the HTML never leaves your device, so internal documents are safe to convert. Copy the result or download it as a .txt file.