表格转 Markdown
UpBox优盒工具箱,免费在线表格转 Markdown 工具,粘贴 CSV、TSV 或从 Excel 复制的表格即可生成 Markdown 表格,支持分割符识别与左中右对齐。
无需注册 · 数据不上传No sign-up · nothing uploaded
表格内容Table data
行数0
列数0
等待粘贴表格
首行作表头;单元格里的竖线会转义、换行会压成空格;CSV 引号包裹的逗号按标准处理;空格分隔只适合列内无空格的简单数据
本工具所有运算在本地浏览器完成,你的文件、文本不会上传到服务器
工具介绍
写文档、README、Issue 时想贴一张表,手敲竖线和分隔行最费时间。把 CSV 或从 Excel 里复制的区域粘进来,表格结构立刻生成。 Tables in docs, READMEs and issues are tedious to type by hand. Paste CSV or a region copied from Excel and the Markdown table appears immediately.
首行自动作表头,列宽按内容补齐,可切左对齐、居中、右对齐;行数列数实时显示,复制即可贴进文档。 The first row becomes the header, columns are padded to content, and you can switch left, center or right alignment; row and column counts update live.
- 分隔符识别Delimiter detection
- 三种对齐Three alignments
- 列宽补齐Padded columns
- 行数列数Row and column counts
使用说明
- 粘贴表格数据。Paste table data.
- 确认分隔符。Confirm the delimiter.
- 选择对齐方式。Pick alignment.
- 复制 Markdown。Copy the Markdown.
常见问题
Excel 复制出来的是制表符吗?Does Excel copy tabs?
是,直接粘贴后选「自动识别」或「制表符」即可。Yes — paste and choose auto or tab as the delimiter.
第一行不是表头怎么办?What if the first row is not a header?
目前固定把首行当表头,可先手动加一行标题再转换。The first row is always the header; add a header row manually if needed.
单元格里有竖线会破坏表格吗?Do pipes break the table?
会自动转义成 \|,渲染时仍显示为竖线。They are escaped to \| and still render as pipes.
支持超宽表格吗?Does it handle wide tables?
支持,但列很多时 Markdown 源码会很长,阅读体验取决于渲染器。Yes, though many columns make long source and readability depends on the renderer.