CSV JSON 转换器
在 CSV 和 JSON 数组之间双向转换,适合数据整理和接口调试。
Loading tool…
浏览器内运行这个工具能做什么
粘贴 CSV 或 JSON,浏览器本地转换为另一种格式,帮助处理表格导出、接口样例和批量数据。
转换由浏览器中的工具代码完成,适合处理样例、名单和配置数据。
这个工具可以完成什么
Export a Google Sheets / Excel sheet as CSV, paste it in, and copy the JSON array of objects to send as a request body or seed a development database.
Application logs sometimes ship as CSV. Convert to JSON to inspect specific rows with a JSON viewer's structure, search, and filtering — much easier than reading raw rows.
Some non-developer stakeholders prefer CSV/Excel over JSON. Take the JSON response from your API, paste it in, and hand back a CSV they can open in Excel.
依赖结果前需要检查什么
- Performance and maximum practical input size depend on browser memory, device speed, and the structure of the input.
- Review the generated result before replacing or publishing an original file.
如何使用
- 1
粘贴 CSV 表格文本或 JSON 数组。
- 2
选择转换方向,查看字段名和输出结果。
- 3
复制转换后的数据,用于接口调试、文档或表格导入。
使用场景
把 CSV 名单或配置表转换为 JSON 数组,用于 API 调试和文档示例。
把 JSON 数组转换成 CSV,方便粘贴到表格软件或业务文档中。
使用技巧
字段名最好使用稳定英文或明确中文,避免空列和重复列名影响 JSON 结构。
CSV 是二维表,复杂嵌套 JSON 转 CSV 时可能需要先展开字段。
常见问题
第一行会作为字段名吗?
CSV 转 JSON 时通常使用第一行作为字段名,建议先确认表头清晰。
包含逗号的字段怎么办?
CSV 中包含逗号的字段应使用引号包裹,否则可能被拆成多个列。
数据会提交给 TOOLGRID 处理接口吗?
工具代码会在浏览器中处理所选文件和输入内容,不会将其提交给 TOOLGRID 的处理接口。浏览器本地处理不构成全面安全或离线保证。
下一步常用工具
如果还需要校验、转换或复用结果,可以继续打开相近的浏览器本地工具。