HTML Table to Markdown Converter
Paste an HTML table, or a table copied from a web page, Excel or Google Sheets, and get a Markdown table with its links and formatting. Nothing is uploaded.
HTML or a copied table
557 characters11 lines
| Version | Date | Fixes | Notes |
| ------- | -------- | ----: | ------------------------------------------------ |
| `2.4` | 12 March | 31 | **Offline mode** for every team |
| `2.5` | 9 April | 18 | See the [release notes](https://example.com/2.5) |
| `2.6` | 14 May | 7 | Photo compression |How to convert an HTML table to Markdown
Copy a table
Copy a table from a web page, Excel, Google Sheets or Word, or copy the
<table>HTML from a page's source.Paste it
Paste into the box. A copied table arrives as HTML, so its links, bold text and code are kept.
Copy the Markdown
Copy the Markdown tables or download them as a
.mdfile.
What it handles
- Every table at once
- Paste a whole page's HTML and each
<table>becomes its own Markdown table, in order. - Header rows found
<thead>and<th>cells become the header row; a table without them uses its first row.- Formatting kept
- Links, bold, italics and inline code inside the cells stay as Markdown.
- Column alignment
alignattributes on the cells set the alignment of their columns.- Spanned cells
- A cell that spans columns or rows keeps its place and the rest of the span stays empty, since Markdown tables cannot merge cells.
- Tidy output
- Pipes inside cells are escaped and the columns line up, Chinese and Japanese text included.
Questions and answers
How do I convert an HTML table to Markdown?
Paste the
<table> HTML above and copy the Markdown table on the right.How do I copy a table from a website into Markdown?
Select the table on the page, copy it and paste it into the box. Browsers copy tables as HTML, which this converter reads, so links and formatting come along.
Can I paste cells from Excel or Google Sheets?
Yes. Spreadsheets copy cells as an HTML table too. To build or edit a table cell by cell, use the Markdown Table Generator.
What happens to merged cells?
Markdown tables cannot merge cells, so a merged cell keeps its text in its first position and the cells it covered stay empty.
Is my table uploaded anywhere?
No. The conversion runs in your browser, so the table never leaves your device.
Related tools
- Markdown Table GeneratorBuild tables in a grid, paste from Excel and copy Markdown.
- HTML to MarkdownClean GitHub Markdown from HTML source, with relative links completed.
- CSV to Markdown TableTurn CSV, TSV or an Excel sheet into a Markdown table.
- Markdown to WordDownload an editable .docx with Word headings, tables and equations.
- Markdown to PDFSave a PDF with selectable text, formulas, highlighted code and page numbers.
- ChatGPT to WordTurn a copied ChatGPT answer into a .docx with editable equations.