🧮 ASCII 表格生成器(CSV 转文本表格)Draw ASCII Table
把 CSV、TSV、Excel 复制的表格或 Markdown 表格转换成整齐的纯文本表格:可选 ASCII(+-|)、Unicode 细线、圆角、双线、Markdown 和紧凑样式,支持表头、行分隔线以及左对齐、居中、右对齐或数字自动右对齐。中文、日文和全角字符按两个宽度计算,等宽字体下列始终对齐。适合在代码注释、README、命令行输出和聊天中展示表格,数据在本地处理。Turn CSV, TSV, tables copied from Excel or Markdown tables into a neat plain-text table. Styles include ASCII (+-|), Unicode lines, rounded, double, Markdown and compact, with an optional header row, row separators, and left, centre, right or automatic alignment (numbers to the right). Chinese, Japanese and full-width characters count as double width, so columns stay aligned in a monospaced font. Great for code comments, READMEs, terminal output and chat. Processed locally.
使用说明与常见问题How-to & FAQ
「ASCII 表格生成器(CSV 转文本表格)」是什么?What is the Draw ASCII Table tool?
把 CSV、TSV、Excel 复制的表格或 Markdown 表格转换成整齐的纯文本表格:可选 ASCII(+-|)、Unicode 细线、圆角、双线、Markdown 和紧凑样式,支持表头、行分隔线以及左对齐、居中、右对齐或数字自动右对齐。中文、日文和全角字符按两个宽度计算,等宽字体下列始终对齐。适合在代码注释、README、命令行输出和聊天中展示表格,数据在本地处理。Turn CSV, TSV, tables copied from Excel or Markdown tables into a neat plain-text table. Styles include ASCII (+-|), Unicode lines, rounded, double, Markdown and compact, with an optional header row, row separators, and left, centre, right or automatic alignment (numbers to the right). Chinese, Japanese and full-width characters count as double width, so columns stay aligned in a monospaced font. Great for code comments, READMEs, terminal output and chat. Processed locally.
如何使用「ASCII 表格生成器(CSV 转文本表格)」?How do I use the Draw ASCII Table tool?
在「ASCII 表格生成器(CSV 转文本表格)」中,把内容粘贴或输入到上方输入框,按需设置「样式」、「分隔符」、「对齐」,结果会实时显示在下方,点击「复制结果」即可复制。In the Draw ASCII Table: Paste or type into the input box, adjust "Style", "Separator", "Alignment"; the result appears below instantly — click "Copy result" to copy it.
支持哪些输入格式?Which input formats are supported?
默认自动识别:含 Tab 的按 TSV(从 Excel、Google 表格复制的内容就是这种);每行首尾都是 | 的按 Markdown 表格(分隔行会被忽略);否则依次尝试逗号(支持带引号的 CSV 字段)、分号和竖线。也可以手动选择,或用两个以上空格分列。行的列数不一致时会自动补齐空单元格。By default it detects the format: lines with tabs are read as TSV (that's what you get when copying from Excel or Google Sheets); lines that start and end with | are read as a Markdown table (the separator line is skipped); otherwise it tries commas (quoted CSV fields work), semicolons and pipes. You can also pick one yourself, or split columns on 2+ spaces. Rows with fewer columns are padded with empty cells.
为什么中文表格对不齐?Why doesn't my Chinese table line up?
本工具把中文、日文、韩文和全角字符算作两个字符宽,在等宽字体(如代码编辑器、终端、Markdown 代码块)中可以完全对齐。如果粘贴到使用比例字体的地方(普通文档、部分聊天软件),或者字体里中文宽度不是英文的两倍,就会出现错位,这时把表格放进代码块即可。Chinese, Japanese, Korean and full-width characters count as two columns wide, which lines up exactly in a monospaced font (code editors, terminals, Markdown code blocks). If you paste it somewhere with a proportional font (ordinary documents, some chat apps), or the font's Chinese characters aren't exactly twice as wide as English letters, it will look misaligned; putting the table in a code block fixes that.
“自动”对齐是怎样的?How does Auto alignment work?
如果某一列(除表头外)全部是数字、金额或百分比,这一列右对齐,方便比较大小;其他列左对齐。Markdown 样式会把对齐方式写进分隔行(--: 表示右对齐),在 GitHub 等平台渲染时同样生效。A column whose cells (apart from the header) are all numbers, amounts or percentages is right-aligned so values are easy to compare; other columns are left-aligned. The Markdown style writes the alignment into the separator line (--: means right-aligned), so it also applies when GitHub and similar sites render it.
处理大段文本会卡吗?Can it handle long text?
「ASCII 表格生成器(CSV 转文本表格)」在浏览器中直接处理,几 MB 以内的文本通常瞬间完成;文本不会离开你的设备。The Draw ASCII Table runs in your browser; text up to a few MB is usually processed instantly and never leaves your device.
「ASCII 表格生成器(CSV 转文本表格)」免费吗?需要注册吗?Is the Draw ASCII Table free? Do I need an account?
「ASCII 表格生成器(CSV 转文本表格)」完全免费,无需注册或安装,打开网页即可使用,手机和电脑都能用;输入的内容只在你的浏览器本地处理。The Draw ASCII Table is completely free with no sign-up or install and works on phones and desktops; what you enter is processed only in your browser.