📋 CSV to Markdown Table
📊 CSV → Markdown
📝 Markdown → CSV
左
中
右
Turn CSV content into a Markdown table with alignment, header and whitespace-trimming options, plus a rendered preview.
📚 深度解析:CSV ↔ Markdown 表格互转
💡 常见使用场景
- 表格贴入文档。
- 把后台导出的 CSV 表贴进 Markdown 文档,一键生成规范表格。
转换
CSV 两行 → `| a | b |
|---|---|
| 1 | 2 |`。
❓ 常见问题(FAQ)
- 对齐?
- `:--` 左、`--:` 右。
- 列数不一致会怎样?
- 各行列数不一致时按最多列补齐空格,保持表格结构完整;建议先清洗数据避免出现空列。
Formula & Standard References
| Item | Formula | Source / Standard |
|---|---|---|
| Table syntax | | sep cols, header + separator row | GitHub Flavored Markdown |
| Alignment | :--- left / ---: right / :--: center | GFM table spec |
| Escaping | Pipe | escaped as \| | CommonMark |
⚠️ 使用说明与注意事项
- 本工具纯前端运行,数据不会上传到服务器
- 建议在主流浏览器(Chrome/Safari/Firefox/Edge)中使用
- 计算结果仅供参考,请以实际应用场景为准