HTML Table to Markdown Converter
Convert HTML tables to Markdown format instantly. Paste HTML code and get properly formatted Markdown tables.
HTML Input
Markdown Output
Markdown Code
The converted Markdown will appear here...
Preview
Instructions
How to use this tool
- Paste your HTML table code in the input field
- The converted Markdown will appear instantly
- Copy or export the Markdown for your needs
Supported Input Methods
- Directly paste HTML table code
- Import HTML files
- Copy tables from Excel/Google Sheets and paste as HTML
Tips
- The tool can handle multiple tables at once
- Special characters like | are automatically escaped
- Tables with row/column spans might not convert perfectly
HTML Table to Markdown Conversion Guide
Markdown tables use a simple syntax with pipes (|) and dashes (-) to represent tabular data. When converting from HTML tables to Markdown, it's helpful to understand the structure and limitations of Markdown tables.
Basic Conversion Rules
This tool follows these basic principles when converting HTML tables to Markdown:
- The first row of the HTML table becomes the header row in Markdown
- A separator row with dashes (---) is automatically added after the header
- Table cells are separated by pipe characters (|)
- Special characters like pipes (|) are escaped to prevent them from breaking the table structure
Markdown Table Syntax Example
| Header 1 | Header 2 | Header 3 |
| --- | --- | --- |
| Cell 1 | Cell 2 | Cell 3 |
| Cell 4 | Cell 5 | Cell 6 |
This creates a simple three-column table with a header row and two data rows. The second line with dashes is required to format it as a proper markdown table.
Need more details on Markdown syntax? Our comprehensive cheat sheet covers all elements in detail:
Explore Complete Markdown SyntaxOther Useful Tools
Convert your Markdown text to beautiful HTML in real-time. Supports code highlighting, tables, and more.
Complete reference guide to Markdown syntax with examples for formatting, tables, code blocks, and more.
Create markdown tables easily with our visual editor. Generate tables for GitHub markdown, documentation, and more. Customize alignments, import/export data, with live preview.
Easily create Markdown hyperlinks. Generate syntax for standard, automatic, and reference links, perfect for websites, docs, and platforms like Discord.
Learn how to add comments in Markdown. Create hidden comments for GitHub, documentation, and other platforms using HTML and reference-style methods.
Create strikethrough text in markdown for GitHub, Discord, and other platforms. Learn different strikethrough markdown methods and format your text with double tildes.
Learn how to add new lines in markdown documents. Try different line break methods for GitHub, Discord, and other platforms using trailing spaces, backslash, and HTML br tags.
Count words, characters, and estimate reading time for your Markdown text. Intelligently ignores code blocks.
Clean up Markdown syntax from AI outputs. Convert formatted Markdown to simple TXT content while preserving structure.
Extract and convert mathematical formulas from Markdown to LaTeX format for academic papers and scientific documents.