JSON 转 CSV
UpBox优盒工具箱,免费在线 JSON 转 CSV 工具,把接口返回的 JSON 数组转成 CSV,自动汇总字段、补齐缺失值,支持逗号 / 分号 / Tab 与 Excel BOM,直接下载 .csv。
无需注册 · 数据不上传No sign-up · nothing uploaded
源 JSONSource JSON
数据行0
字段数0
CSV 体积—
CSV 结果CSV output
粘贴 JSON 数组后自动转换
嵌套对象与数组会序列化成 JSON 字符串放进单元格;含分隔符或引号的值会自动加引号
本工具所有运算在本地浏览器完成,你的文件、文本不会上传到服务器
工具介绍
接口返回的 JSON 数组直接粘进来,就能得到一份 CSV:字段取所有行的并集,某行缺少的字段留空,不用手动对齐列。 Paste an API JSON array and get a CSV: columns are the union of every row, and missing values stay empty.
含逗号、换行或引号的值会自动加引号并把内部引号转义;给 Excel 勾上 BOM 后,中文表头不会出现乱码。 Values with commas, line breaks or quotes are quoted and escaped; the Excel BOM option keeps Chinese headers readable.
- 字段并集Union of fields
- 缺失值留空Missing values blank
- 三种分隔符Three delimiters
- Excel BOMExcel BOM
- 本地转换Local conversion
使用说明
- 粘贴 JSON 对象或对象数组。Paste a JSON object or array of objects.
- 选择分隔符,按需勾选 Excel BOM。Pick a delimiter and optionally enable the Excel BOM.
- 核对行数、字段数与 CSV 预览。Check row count, columns and the CSV preview.
- 复制结果或下载 .csv。Copy the result or download the .csv.
常见问题
支持嵌套对象吗?Are nested objects supported?
会整段序列化成 JSON 字符串放进一个单元格;需要拆列请先扁平化数据。They are serialized as JSON strings in a single cell; flatten the data first to split columns.
为什么 Excel 打开中文乱码?Why is Chinese garbled in Excel?
勾选“为 Excel 添加 BOM”后重新下载,BOM 会让 Excel 以 UTF-8 打开。Enable the Excel BOM option and download again; the BOM makes Excel read it as UTF-8.
纯字符串数组能转吗?Can I convert an array of plain strings?
暂不支持,请把每项包装成对象,例如 [{"value":"a"}]。Not directly — wrap each item in an object such as [{"value":"a"}].
会上传数据吗?Is data uploaded?
不会,解析与导出都在浏览器本地完成。No, parsing and export run locally in the browser.