首页Home › 开发工具Developer Tools

📄 TSV 转对齐文本表格TSV to Aligned Text Table

把 TSV(从 Excel、表格复制出的制表符分隔数据)转换成用空格对齐的纯文本表格或 ASCII 方框表格,中文和全角字符按两格宽对齐,数字列可右对齐,适合贴进代码注释、邮件或终端。Turn TSV (tab-separated data copied from Excel or a spreadsheet) into a plain-text table aligned with spaces, or an ASCII box table. Chinese and full-width characters count as two columns, number columns can be right-aligned — ready for code comments, emails or a terminal.

使用说明与常见问题How-to & FAQ

「TSV 转对齐文本表格」是什么?What is the TSV to Aligned Text Table tool?

把 TSV(从 Excel、表格复制出的制表符分隔数据)转换成用空格对齐的纯文本表格或 ASCII 方框表格,中文和全角字符按两格宽对齐,数字列可右对齐,适合贴进代码注释、邮件或终端。Turn TSV (tab-separated data copied from Excel or a spreadsheet) into a plain-text table aligned with spaces, or an ASCII box table. Chinese and full-width characters count as two columns, number columns can be right-aligned — ready for code comments, emails or a terminal.

如何使用「TSV 转对齐文本表格」?How do I use the TSV to Aligned Text Table tool?

在「TSV 转对齐文本表格」中,把内容粘贴或输入到上方输入框,按需设置「样式」、「列间空格数」,结果会实时显示在下方,点击「复制结果」即可复制。In the TSV to Aligned Text Table: Paste or type into the input box, adjust "Style", "Spaces between columns"; the result appears below instantly — click "Copy result" to copy it.

中文为什么也能对齐?Why do Chinese characters line up too?

中文、日文、韩文、全角符号和大多数 emoji 在等宽字体里占两个英文字符宽,工具按这个宽度计算补多少空格。请在等宽字体(代码编辑器、终端、<pre>)中查看;在比例字体里任何空格对齐都会错位。Chinese, Japanese and Korean characters, full-width symbols and most emoji take two columns in a monospaced font, and the padding is computed with that width. View the result in a monospaced font (code editor, terminal, <pre>); in a proportional font no space-based alignment lines up.

哪些列算数字列?Which columns count as numbers?

除表头外,该列每个非空单元格都是数字(可带正负号、千位逗号、小数点或百分号)时,勾选“数字列右对齐”后这一列靠右对齐,方便比较位数。When every non-empty cell below the header is a number (sign, thousands commas, decimal point or percent allowed), 'Right-align number columns' aligns that column to the right so the digits line up.

和 TSV 转 CSV 有什么不同?How is this different from TSV to CSV?

TSV 转 CSV 产生给程序读的数据文件;这个工具产生给人看的排版表格(补空格对齐),不适合再被程序解析。TSV to CSV makes a data file for programs; this tool makes a table laid out for people (padded with spaces), which is not meant to be parsed again.

代码或数据会被上传吗?Is my code or data uploaded?

不会。「TSV 转对齐文本表格」完全用 JavaScript 在本地运行,适合处理含有密钥、内部接口等敏感内容的数据。No. The TSV to Aligned Text Table runs entirely in local JavaScript, so it is safe for data containing keys or internal endpoints.

「TSV 转对齐文本表格」免费吗?需要注册吗?Is the TSV to Aligned Text Table free? Do I need an account?

「TSV 转对齐文本表格」完全免费,无需注册或安装,打开网页即可使用,手机和电脑都能用;输入的内容只在你的浏览器本地处理。The TSV to Aligned Text 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.

相关工具Related tools

❓ FAQ 生成器(FAQPage 结构化数据 / HTML)FAQ Generator (FAQPage Schema & HTML)🐍 JSON 转 Python 字典/列表JSON to Python Dict Converter📑 SQL 转 CSV(INSERT 语句转 CSV)SQL to CSV Converter🌙 Lua 代码压缩Lua Minifier🆔 ULID 生成器ULID Generator💬 WhatsApp 链接生成器(点击直达聊天)WhatsApp Link Generator (click-to-chat)✉️ 邮件签名生成器(HTML)Email Signature Generator🎨 CSS 校验器(CSS 语法检查)CSS Validator🟨 JavaScript 校验器(JS 语法检查)JavaScript Validator🧾 JSON 格式化校验JSON Formatter & Validator🧪 正则表达式测试Regex Tester⏰ Cron 表达式解析Cron Expression Explainer

← 全部工具All tools