PDFのミカタ

JSONとCSVを行き来する

公開日:2026年10月19日|最終更新:2026年10月19日|運営者情報

この記事のポイント
  • 整える
  • 変換する

JSONは、プログラムには便利でも、人が集計するには、表のほうが向いています。逆に、表のデータを、プログラムに渡すにはJSONが必要です。JSONを整える・チェックする で整えたJSONを、CSVとの変換ツールと組み合わせる方法です。

流れ(JSON → 表)

  1. このツールで、JSONを整えて、正しいか確認する。
  2. 整ったJSONを、CSV・JSONの変換ツールの「JSON → CSV」に貼り付ける。
  3. CSVに変換して保存し、Excelで開く。

流れ(表 → JSON)

  1. Excelの表をコピーして、CSV・JSONの変換ツールで「CSV → JSON」に変換する。
  2. できたJSONを、このツールで整えて、正しいか確認する。
  3. 必要なら「1行にまとめる」で、詰める。
変換の前に、JSONの書き方が正しいかを確認しておくと、変換のエラーを防げます。

変換できるJSONの形

同じ項目を持つデータが、並んでいる形が、表に変換しやすいです。入れ子の部分は、表に変換すると、1つのセルに文字として入ります。

組み合わせるメリット

向いている場面

注意すること

例

APIの結果のJSONを、このツールで整えて構造を確認した。必要な項目が入れ子の外にあると分かったので、そのままCSVに変換して、Excelで集計できた。

つまずきやすい点

よくある質問

2つのツールの順番は、どちらが先ですか?

JSONを受け取ったら、まず整形・チェック。それから変換です。

まとめ

JSONの整形・チェックと、CSVへの変換を、組み合わせて使いましょう。

JSONを整える・チェックするを使う(無料)

あわせて使えるツール

この解説が役に立ったら、応援してもらえるとうれしいです。

応援する(300円)ほしい物リストで応援

同じツールの、ほかの解説

解説の一覧を見る

Going Between JSON and CSV

Published: Oct 19, 2026 | Updated: Oct 19, 2026 | About (Japanese)

Key points
  • Format
  • Convert

JSON is convenient for programs but a table suits people totalling things. Conversely, table data needs to be JSON to be handed to a program. Here is how to combine JSON formatted with Format and Validate JSON and the CSV conversion tool.

Flow (JSON → table)

  1. Format the JSON with this tool and check it's correct.
  2. Paste the tidy JSON into "JSON → CSV" of the CSV/JSON conversion tool.
  3. Convert to CSV, save and open in Excel.

Flow (table → JSON)

  1. Copy the Excel table and convert it with "CSV → JSON" in the CSV/JSON conversion tool.
  2. Format the resulting JSON with this tool and check it's correct.
  3. If needed, compress with "Make one line".
Checking that the JSON syntax is correct before converting prevents conversion errors.

JSON shapes that can be converted

A form where data with the same items is lined up is easy to convert to a table. Nested parts, when converted to a table, go into one cell as text.

Benefits of combining

Good for

Cautions

Example

Formatted JSON from an API with this tool to see its structure. Finding that the needed items were outside the nesting, it converted straight to CSV and could be totalled in Excel.

Common stumbling blocks

Frequently asked questions

Which tool comes first?

On receiving JSON, first format and check. Then convert.

Summary

Use JSON formatting and checking in combination with conversion to CSV.

Use "Format and Validate JSON" (free)

Tools that go well with this

If this guide helped, a small tip would mean a lot.

Send a tip (¥300)Send a gift (Amazon wishlist)

More guides for this tool

See all guides