HTML 表格转 Markdown
即时将 HTML 表格转换为 Markdown 格式。粘贴 HTML 代码并获取格式正确的 Markdown 表格。
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.
需要了解更多Markdown语法细节?我们的全面速查表涵盖了所有元素的详细说明:
探索完整 Markdown 语法相关工具
从 Markdown 中提取并转换数学公式为 LaTeX 格式,用于学术论文和科学文档。
实时将 Markdown 文本转换为精美的 HTML。支持代码高亮、表格等功能。
清理 AI 输出中的 Markdown 语法。将格式化的 Markdown 转换为简单的 TXT 内容,同时保留结构。
将 Markdown 转换为可选择文本的 PDF。使用自定义选项,即时将 Markdown 文档转换为专业 PDF。
Markdown 语法的完整参考指南,包括格式、表格、代码块等示例。
使用双星号或双下划线在 Markdown 中创建粗体文本。学习为 GitHub、Discord 和文档进行正确的粗体格式化,带有实时预览。