📄 JSON to CSV

Convert a JSON array of objects into a CSV-ready table right in your browser — no upload, no server round-trip.

📐 工作原理与说明

将 JSON 对象数组展平为二维表格的逻辑:

  • 嵌套对象或数组会被序列化为 JSON 字符串填入对应单元格(例如 {"a":1} 显示为 {"a":1}),不展开为多列。
  • 每个数组元素输出一行;值转为字符串(布尔、数字、日期原样)。
  • null / 缺失字段留空;嵌套数组同样序列化为 JSON 字符串填入单元格(不按索引展开为多列)。

导出建议带 UTF-8 BOM,以便 Excel 正确识别中文不乱码。全程纯前端解析,数据不上传。

Copy/download CSV adds a single-quote prefix only to text cells starting with = + - @ to prevent Excel/WPS formula execution; JSON numbers (including negatives) keep their numeric type. The preview shows the original data.