Zero Signup ToolsFree browser tools

Converter Tools

HTML Table to Markdown Converter

Paste HTML and convert every <table> to a GitHub-Flavored Markdown table in your browser. Picks a table, handles colspan, rowspan, alignment, and links.

Alignment

Output style

Spanned cells

Links inside cells

Conversions run entirely in your browser. Pasted HTML is not uploaded.

How to use

  1. Open the source page and copy the HTML that contains the table you want. View source, copy outer HTML from devtools, or paste an entire saved HTML file.
  2. Paste the HTML into the input area on the left. Every <table> in the document is detected automatically and listed under the output panel.
  3. Pick a table from the chips at the top of the output panel, or pick All tables to emit every table with headings derived from each <caption>.
  4. Choose column alignment (Auto, Left, Center, or Right), an output style (Aligned for code-editor-friendly markdown or Compact for the smallest valid table), and tweak how spanned cells, links, and <br> tags are handled.
  5. Read the live preview below to verify the parsed structure, then click Copy markdown to put the GFM table on your clipboard, or use Replace input with markdown to round-trip the result back into the input area.

About this tool

HTML Table to Markdown Converter takes a block of HTML, finds every <table> element, and turns each one into a clean GitHub-Flavored Markdown pipe table you can paste into a README, a docs page, a GitHub issue, a Notion document, a Linear ticket, or any tool that renders GFM. Parsing happens with the browser's native DOMParser so the same parser the page itself uses handles unclosed tags, attribute quoting variations, and deeply nested or styled tables the same way a real browser does. The walker collects <thead>, direct <tr> children, <tbody>, and <tfoot> rows in display order, and when no <thead> is present but the first row is built entirely from <th> cells it is detected as the header row automatically. colspan and rowspan are expanded into a dense grid you can pick a policy for: Duplicate value fills every spanned slot with the same text (best when the resulting markdown will be re-imported into a spreadsheet, filtered, or pivoted), and Leave blank fills spanned slots with empty strings (best when you want the visual shape of the source table to survive). Cells that contain block-level elements (paragraphs, list items, divs) are joined with a space so prose cells stay on one line, and <br> tags can optionally become real newlines that are then re-encoded as <br> in the markdown so multi-line cells (addresses, code samples, song lyrics) survive intact in any GFM viewer. Links inside cells follow a configurable policy: keep just the link text, render the link as a proper Markdown [Text](URL) link (the default, so the result still works as a clickable link), keep the text plus the URL in parentheses, or replace the link with just its href. Per-column alignment is resolved with one mode: Auto picks right alignment for columns where every non-empty data cell is numeric (currency, percentages, integers, decimals) and left otherwise; the other three modes force left, center, or right on every column. The output style picker switches between Aligned (each cell padded to the widest cell in its column so the raw markdown lines up nicely in a code editor) and Compact (single-space padding for the smallest valid table). Both styles render identically in any GFM viewer. A live preview below shows exactly how the chosen table will render in GitHub, GitLab, Bitbucket, or any other GFM-compatible viewer, with header rows styled separately from body rows, so you can verify the structure before you copy. When the HTML contains multiple tables you can pick a single one to extract, or choose All tables to emit every table back to back with a heading (drawn from the table's <caption> when one is present, otherwise a numbered placeholder) so the resulting document stays navigable. Useful for pulling pricing or specification tables off documentation sites into a README, harvesting Wikipedia infoboxes for a knowledge base, converting tables embedded in internal HTML reports into pull-request-friendly markdown, turning a rendered HTML changelog into a GFM table for release notes, and quickly reformatting any web table into markdown for a chat message or a wiki page. The companion HTML to Markdown Converter handles whole pages with headings, paragraphs, lists, and code blocks; this tool is the focused variant for table-only intent. Everything runs locally in your browser, so the pages and reports you paste here never leave your device.

Free to use. Works in your browser. No signup, no login.

Related tools

You may also like

All tools
All toolsConverter Tools