📄 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.