JSONからCSVへのコンバーター
JSONオブジェクト配列をブラウザで即座にCSV形式に変換します。
Most REST APIs return data as JSON arrays of objects, but the tools used to analyse, share, or import that data — spreadsheets, BI dashboards, ETL pipelines — expect CSV. Manually extracting columns is tedious and error-prone, especially when the array has dozens of keys or inconsistently present optional fields.
This converter accepts a JSON array, detects all unique keys across every object, and emits a correctly quoted CSV with a header row. It handles missing values gracefully, fills nested objects as JSON strings rather than silently dropping them, and gives you a file you can drag straight into Excel, Google Sheets, or your data pipeline. Useful for API prototyping, report generation, and one-off data migrations.
JSONをCSVにオンラインで変換する方法
- 1
JSON配列を貼り付ける
オブジェクトのJSON配列を貼り付けてください。ツールは入力を検証し、形式がJSON配列でない場合は明確なエラーを表示します。
- 2
列ヘッダーを確認する
配列のキーがCSVの列ヘッダーになります。ネストされたオブジェクトはドット記法のキーでフラット化されます。フラット化が発生した場合は警告が表示されます。
- 3
CSVをコピーまたはダウンロード
CSV出力をコピーするか、Excel、Googleスプレッドシート、またはその他のデータツールで使用できる.csvファイルとしてダウンロードできます。
How JSON-to-CSV Conversion Works
The converter first validates that the input is a JSON array of objects, then performs a union of all keys across every element — essential when the API returns objects with optional fields that are absent in some records. This union becomes the CSV header row, and every object is then serialised in header order, substituting an empty string for absent keys.
Values require careful handling during serialisation. Strings that contain commas, double quotes, or newlines must be wrapped in double quotes, with embedded double quotes doubled per RFC 4180. Numbers and booleans are written as literals. Nested objects and arrays cannot be flattened automatically without losing information, so they are serialised as compact JSON strings — clearly marked so downstream consumers know to parse them further if needed.
FileCrank JSON→CSVを使う理由
- ✓ JSONの配列をキーを列ヘッダーとしてCSVに変換。
- ✓ ネストされたオブジェクトをドット記法で自動的にフラット化。
- ✓ 入力を失わずにCSV→JSONの方向に切り替え可能。
- ✓ 完全にブラウザ内で動作 — データはサーバーに送信されません。
機能と仕様
よくある質問
どのようなJSON構造をCSVに変換できますか?
入力は各オブジェクトが同じキーを持つJSONオブジェクト配列である必要があります。オブジェクトのキーが一致しない場合、欠損値は空白になります。プリミティブや非オブジェクト配列は変換できません。
ネストされたJSONオブジェクトはどう処理されますか?
ネストされたオブジェクトはドット記法でフラット化されます。{"user": {"name": "Alice"}}はuser.nameという列名になります。オブジェクト内の配列はセル内のJSON文字列に変換されます。フラット化が適用された場合は警告が表示されます。
出力CSVにヘッダー行は含まれますか?
はい。出力CSVの最初の行は常にヘッダー行で、JSON配列の最初のオブジェクトのキーから生成されます。
データを失わずにJSON→CSVからCSV→JSONに切り替えられますか?
はい。方向切り替えボタンを使ってツールを切り替えてください。入力は新しいツールの入力パネルに保持されます。
Browser Converter vs. jq + csvkit vs. ETL Tools
The `jq` and `csvkit` combination is powerful in a pipeline but requires shell access and knowledge of both tools' syntax. Full ETL platforms like Airbyte or Fivetran are designed for recurring scheduled loads, not quick one-off conversions. A browser converter is the right tool when you have a JSON payload in hand right now and need a CSV in the next thirty seconds — no environment to set up, no commands to remember.
関連ツール
FileCrank JSON→CSVコンバーターは、ネスト構造にはドット記法のフラット化を使用してJSONオブジェクト配列をCSVテーブルに変換します。完全にブラウザ内で動作します。
Advertisement