所有工具 · 格式转换, 数据

CSV转JSON工具

功能已验证 · 2026年6月21日

将 CSV 转换为 JSON,正确处理带引号的逗号,并自动识别数字和 true/false 值。 完全在浏览器中运行:不会上传任何内容。

点击选择文件 或将 .csv 文件拖到此处

支持 .csv、.tsv、.txt

… or paste CSV directly

分隔符

首行

输出

Handles the awkward parts of CSV correctly: commas and line breaks inside quoted fields, and doubled quotes ("") as an escaped quote. With "Guess numbers & true/false" on, a value is only converted when the entire cell is a clean number or exactly true/false — so a leading-zero code like 007, or something like 1.2.3, is left as text rather than mangled. If the first row is column names, each row becomes an object; if not, each row becomes an array. Duplicate column names are kept apart (the second "id" becomes "id_1") so nothing is silently overwritten. Everything runs in your browser — nothing is uploaded.

使用方法

  1. 上传 CSV 文件,或直接粘贴 CSV 文本。
  2. 工具会自动解析,并正确处理带引号内的逗号。
  3. 复制或下载生成的整洁 JSON。
  4. 第一行会自动作为生成 JSON 中的字段名。

常见问题

能正确处理引号字段内的逗号吗?

能,带引号的逗号会被正确解析,不会把字段拆开。

数字和布尔值会自动转换吗?

会,工具能从纯文本中自动识别数字和 true/false 值。

可以直接粘贴 CSV 文本而不上传文件吗?

可以,粘贴文本和上传文件效果相同。

能转换的 CSV 行数有限制吗?

没有固定限制:大文件和小文件处理方式相同。

标题行会怎么处理?

会自动作为生成 JSON 中的字段名使用。

你的文件绝不会被上传。 Gotool.xyz 完全以 JavaScript 形式在你的浏览器中运行。你的文件在内存中处理,从不接触任何服务器:没有可能泄露的内容,也无需清理什么。关闭标签页,一切就像从未发生过。我们唯一统计的是使用了哪个工具(仅记录名称,例如「merge」),以便了解大家觉得哪些功能有用;绝不会记录你的文件本身、文件名、大小或其中任何内容。