文件格式任意转换助手Transfer Any File

离线 · 无上传 · 浏览器本地完成Offline · no uploads · runs in the browser

CSV 转纯文本——离线、制表符分隔、不上传CSV to plain text offline, tab separated, no upload

逗号分隔的表格贴进聊天窗口经常就散了——值里有个逗号就整行错位。这条路先把 CSV 交给 SheetJS 的解析器(引号里的逗号、字段内换行都按 CSV 语法算成一个单元格),渲染成 HTML 表格,再从表格里提取文字:单元格之间以制表符分隔、一行一条记录、首行也照样是一行。实测一份四列的表得到 `名称\t数量\t单价\t\n苹果\t3\t5.5\t\n…`,也就是每行末尾会多出一个制表符(提取实现如此,只有文件最后一行被去尾空白清掉)。值本身不做任何加工:`00123` 还是 `00123`,`2024-01-05` 不会被换成日期序列号。Pasting comma-separated data into a chat window usually breaks it: one comma inside a value and the row is misaligned. This route first hands the CSV to SheetJS’s parser — a quoted comma or a newline inside a field stays one cell — renders it as an HTML table, and then extracts text from that table: cells separated by tabs, one record per line, the first row treated as just another row. Measured on a four-column sheet, the output is `名称\t数量\t单价\t\n苹果\t3\t5.5\t\n…`, i.e. each line carries a trailing tab as well (that is how the extraction works; only the file’s last row loses it to trimming). Values are not touched: `00123` stays `00123`, and `2024-01-05` is not turned into a date serial.

一批转换结果卡片,含文件名、体积与下载入口
一次混合批量,一个 ZIP 下载One mixed batch, one ZIP download

这条链路怎么走How the route runs

CSVCSV HTMLHTML 纯文本 (TXT)plain text (TXT)

共 2 步,由扩展的路径搜索自动选出,中间产物不落盘。2 steps, chosen by the extension's own path search; intermediate results never touch the disk.

会保留什么What carries over

  • 单元格之间是制表符、每行一条记录:贴进纯文本编辑器、聊天窗口或对齐齐宽字体的终端里都不会因值内逗号而错位Tabs between cells and one record per line: pasted into a text editor, a chat window or a monospaced terminal, a comma inside a value cannot shift the row
  • 首行不被当表头消耗(不像 CSV 转 JSON 那样用它给列命名),一份 20 行的表转出去还是 20 行The first row is not spent naming columns (unlike CSV to JSON), so a 20-row sheet still yields 20 lines
  • 值按文件里的字符原样呈现:前导零、连字符、分数样式的 `1/2` 都不会被重新解释Values appear as the file’s own characters: leading zeros, hyphens and fraction-looking `1/2` are not reinterpreted
  • 带引号的逗号、字段内换行、成对引号转义都按 CSV 语法解析成一个单元格,而不是按逗号切字符串Quoted commas, newlines inside a field and doubled quote escapes all parse into one cell under CSV’s grammar rather than a string split on commas

如实说明的限制What it does not do

  • 每行末尾多一个制表符:提取时每个单元格都跟一个制表符,只有文件最后一行被去尾空白清掉。看着像「对齐的表」,要拿去当 TSV 用请自己去掉行尾制表符A trailing tab ends each line: every cell contributes one, and only the file’s last row loses it to trimming. It reads as an aligned table, but strip the trailing tabs before treating it as real TSV
  • 字段内的换行会被折进那一行:纯文本一行就是一条记录,跨行的值不再保留原排版(要留住换行就走 CSV 转 HTML)Newlines inside a field get folded into the line: plain text is one record per line, so the original layout inside a cell is not kept (take CSV to HTML to preserve them)
  • 产物是 UTF-8 **不带 BOM**:Windows 记事本一类按本地编码猜的工具可能把中文显示成乱码,遇到这种情况请用 CSV 转 Excel 或直接留 .csvThe artefact is UTF-8 **without a BOM**: tools that guess a local encoding can render Chinese as mojibake — use CSV to Excel, or keep the .csv, when that happens
  • 没有任何样式:字体、列宽、合并、数字格式都不存在,源文件本来也没有No styling at all: fonts, column widths, merges and number formats do not exist here, and the source file never had them
  • 空单元格保留为相邻的两个制表符(不是省略),所以列位置对得齐;一批最多 200 个文件、单个上限 100 MB,多份逐个产出各自的 .txtEmpty cells stay as adjacent tabs rather than vanishing, so columns still line up; up to 200 files per batch and 100 MB each, several files yielding one .txt apiece

实操提示Working with it

  • 要的是能继续算的数据表:走 CSV 转 Excel,或直接保留 .csv——纯文本这一格是给人读和贴的,不给程序解析用For data you still want to compute on: take CSV to Excel, or keep the .csv — this plain-text step is for reading and pasting, not for a program to parse
  • 要的是能排版的表格:CSV 转 Markdown(管道表,格子里的竖线会被转义)或 CSV 转 HTML、转 WordFor a table that keeps its layout: CSV to Markdown (a pipe table, with pipes inside cells escaped), or CSV to HTML or Word
  • 只想看看有几行、字段是什么:CSV 转 JSON 会拿首行当键名,逐条对象更好读,但行数与列序仍以这份 CSV 为准To see how many rows there are and what the fields are: CSV to JSON spends the first row on key names and reads better per record, but the row count and column order still come from this CSV

常见问题Questions people actually ask

这算是一份 TSV 吗?Is this a TSV file?

形状像但不严格:每行末尾多一个制表符(最后一行除外),也没有 TSV 的引号规则。当「贴进聊天里的对齐文本」用它正好;要真 TSV,请自己去掉行尾制表符,或直接以 .csv 交付。Close but not strict: every line but the last ends with an extra tab, and there are no TSV quoting rules. As aligned text to paste into a chat it is exactly right; for real TSV, strip the trailing tabs or ship the .csv.

值里有逗号或换行会怎样?What about commas or newlines inside a value?

逗号没问题——那正是先按 CSV 语法解析的原因,一个带引号的逗号不会把行拆开。换行会被折进那一行,因为纯文本一行就是一条记录;这类值请走 CSV 转 HTML 或转 Excel。Commas are fine — that is precisely why the file is parsed under CSV grammar first, so a quoted comma cannot split the row. Newlines fold into the line, because plain text is one record per line; take CSV to HTML or Excel for those values.

订单或名单这类表格数据会被上传吗?Is order or contact data ever uploaded?

不会。解析 CSV、生成表格、提取文字都在扩展自己的标签页里完成,只申请 storage 权限、没有 host 权限,全程零网络请求。No. Parsing the CSV, building the table and extracting the text all happen inside the extension’s own tab: the storage permission only, no host permissions, and no requests at any point.

不需要账号,也不需要联网:装好扩展后点图标,在新标签页里打开工作台,文件从磁盘直接选。No account and no network: install the extension, click its icon, and the workbench opens in a new tab reading straight off your disk.