JSON→CSV変換ツール
オブジェクトのJSON配列をCSV形式に変換します。APIのデータをスプレッドシートにエクスポートするのに最適です。
このツールの使い方
- 1
Paste or type a JSON array of objects into the text box. The array must be non-empty (for example: [{"name":"A","value":1}]).
- 2
Click the Convert button to generate the CSV.
- 3
Read the CSV in the output panel below the button, with the header row first followed by one row per object.
- 4
Select the output text and copy it into a spreadsheet, a .csv file, or wherever you need it.
JSON→CSV変換ツールとは何ですか?
JSONはAPIの共通フォーマットであり、CSVはスプレッドシートの共通フォーマットです。両者を変換するのはよくある作業です。たとえば、分析データをExcelにエクスポートしたり、CSVデータをJavaScriptアプリケーションに取り込んだりします。このツールはフラットなオブジェクトの配列をうまく処理します。深くネストされた構造は、事前の前処理が必要になる場合があります。
よくある活用例
Turning a small JSON response from an API into a CSV you can paste straight into Excel or Google Sheets.
Quickly eyeballing tabular API data as rows and columns instead of nested braces.
Preparing a CSV for a bulk-import feature that expects flat columns, when your source data is already a uniform JSON array.
Converting a JSON fixture or seed file into CSV for a quick import into a database GUI.
Generating a CSV snippet for documentation or a bug report without installing jq or writing a script.
Sanity-checking that a JSON array has consistent keys across records by spotting blank or missing cells in the output.
よくある質問
JSONにネストされたオブジェクトがある場合はどうなりますか?▼
特殊文字は処理されますか?▼
関連ツール
CSVからJSONへの変換ツール
CSVデータをオブジェクトのJSON配列へ変換します。最初の行はヘッダーとして扱われます。
CSVからSQL INSERTへ
CSVデータからSQLのINSERT文を生成します。CSVエクスポートをデータベースにインポートするのに役立ちます。
2進数→16進数変換ツール
2進数を16進数に変換します。同じ値を表すのに、16進数は2進数より4倍コンパクトです。
16進数→2進数変換ツール
16進数を2進数に変換します。各16進数の桁はちょうど4桁の2進数に展開されます。
10進数から2進数への変換ツール
10進数を2進数、16進数、8進数へ、すべての基数に一度に変換します。
ASCII→16進数変換ツール
テキストをASCIIの16進数コードに変換したり、その逆を行ったりします。各文字は2桁の16進数値に変換されます。