JSON 轉 CSV

使用自訂分隔符號將 JSON 陣列和物件轉換為 CSV。

免費線上 JSON 到 CSV 轉換器

將 API 回應、MongoDB 匯出或設定資料轉換為可在 Excel 或 Google 工作表中開啟的 CSV 行。每個物件成為一行;每個屬性都成為一列。嵌套物件和陣列在單元格中序列化為 JSON 字串。

選擇分隔符號(逗號、分號、製表符或垂直線)、切換標題行、複製結果或下載 .csv 檔案。所有轉換都在您的瀏覽器中運行 - 不會上傳任何內容。

Frequently Asked Questions

What JSON structure works for CSV conversion?
An array of objects works best: [{"name": "Alice", "age": 30}, {"name": "Bob", "age": 25}]. Each object becomes a row; each property becomes a column. A single object converts to one row. Nested objects and arrays are serialized as JSON strings in the cell.
Which delimiter should I use?
Comma is standard for US English locales and most APIs. Semicolon is common in European Excel locales where comma is the decimal separator. Tab (TSV) works well for copy-pasting into spreadsheets. Pipe is useful when your data contains commas.
Can I open the output in Excel?
Yes. Download the .csv file and open it in Excel or Google Sheets. If Excel misreads encoding or delimiters, try semicolon delimiter for European locales, or paste tab-delimited output directly into a spreadsheet.
How are nested JSON objects handled?
Nested objects and arrays are converted to JSON strings in a single cell. For example, {"address": {"city": "London"}} produces a column with the value {"city":"London"}. Flatten deeply nested data before conversion if you need separate columns.
Is there a row or column limit?
No server-side limit. Conversion runs in your browser. Very large datasets (100,000+ rows) may be slow on older devices. For massive exports, consider streaming tools or database-native export.