JSON → Excel 変換
JSON 配列を .xlsx に変換。キーは自動で列に展開されます。貼り付けもファイル選択も可。
JSON → Excel 変換とは
JSON から Excel への変換は、オブジェクトのキーを列に、各オブジェクトを行に展開して .xlsx を組み立てる処理です。キーの順序は最初に現れた順で固定され、途中のオブジェクトにしか存在しないキーも列として追加されます(欠けているセルは空欄)。ネストしたオブジェクトや配列は JSON 文字列としてセルに入るため、フラット化が必要なら事前に変換してください。
🔒 処理はすべてブラウザ内で完結し、データは送信されません。
このツールの前提
- 処理場所
- このページのブラウザ内(JavaScript / Canvas)
- アップロード
- なし — ファイルは端末の外に出ません
- オフライン
- ページを開いた後は通信不要
Flattening nested data into rows
An array of objects becomes one row per object, with the union of all keys as the header. Objects that are missing a key simply leave that cell empty, so a ragged array still produces a clean rectangular sheet.
Nested objects are flattened with dot notation (customer.name becomes a column called customer.name), which keeps the meaning visible without inventing column names. Arrays inside an object are joined into a single cell rather than expanded into extra rows — expanding them would multiply the row count and lose the one-to-one mapping with the source records.
A top-level object that is not an array becomes a single row. That is the right behaviour for a config file or an API response describing one entity, and it is the case most converters get wrong by refusing to convert at all.
Types, nulls and very large values
Numbers stay numbers so they can be summed. Strings that look like numbers stay strings, which preserves leading zeros in postcodes and account numbers — and which is why a JSON export of numeric IDs sometimes arrives as text in one column and numbers in another.
null is written as an empty cell rather than the text «null». Writing the word would make COUNT and AVERAGE treat it as text and quietly exclude the row.
Integers longer than 15 digits lose precision the moment Excel stores them as numbers — that is a limit of the spreadsheet's floating-point format, not of the conversion. IDs, hashes and phone numbers with a leading plus should be forced to text.
使い方
- 1.JSON を貼り付けるか .json を選ぶ
- 2.「実行」をクリック
- 3.生成された .xlsx をダウンロード
他の方法との比較
同じ変換をする方法は 3 つあります。ブラウザ内(このページ)、サーバー側の変換サービス、デスクトップアプリ。差がつくのは速度ではなく、ファイルがどこへ行くかと、無料でどこまでできるかです。
| 観点 | このツール | サーバー側の変換サービス | デスクトップアプリ |
|---|---|---|---|
| ファイルの処理場所 | このページのブラウザ内 | ベンダーのサーバー(アップロード後) | 自分の PC(アプリをインストール) |
| アカウント | 不要 | 多くの場合必要(無料枠の制限解除に登録を求める) | 不要(ライセンス認証は必要な場合あり) |
| 無料で扱えるサイズ | サイズ制限なし(回数制限もなし) | 数ファイル/時間、または 5〜10MB 程度で課金 wall | ディスクとメモリ次第 |
| 料金 | 無料。Pro は月 $9(大きいファイルと AI 機能のみ) | サブスクが一般的。おおむね月 $7〜15(2026 年 11 月時点) | 買い切り、またはサブスク |
| オフライン | 一度開けば通信不要 | 不可 | 可 |
| 20MB を処理し始めるまで | 待ち時間なし(アップロードが無い) | アップロードが支配的(10Mbps 上りで約 16 秒) | アプリの起動のみ |
| 保証できないこと | 数式は計算済みの値になり、結合セルと書式は失われます | 同じ(変換の原理は変わらない) | 同じ。ただし書式の再現はより忠実な場合がある |
サーバー側のサービスが優れている点は明確にあります。巨大なファイル、チームでの共有、変換履歴の管理、スクリプトからの自動化。逆に「1 回だけ、手元のファイルを別形式にしたい」という今回の用途では、アップロードの待ち時間と登録の手間だけが増えます。
よくある質問
どんな JSON を受け付けますか?
オブジェクトの配列、配列の配列(表そのもの)、単一オブジェクトに対応しています。ネストした値は JSON 文字列として 1 セルに入ります。
キーが揃っていないオブジェクトが混ざっていても平気?
平気です。全オブジェクトのキーを合算して列を作り、存在しない項目は空欄にします。列がずれることはありません。
データは送信されますか?
いいえ。JSON の解析も .xlsx の組み立てもブラウザ内で完結します。
この変換で失われるもの
表計算の変換は本質的に不可逆です。ワークブックは数式・書式・結合セル・複数シートを持ち、CSV は行のテキストしか持てません。このツールは値と並び順を保持し、再計算はせず、見た目は意図的に捨てます。サーバー不要で動く理由であり、変換後のファイルが元と同じ見た目にならない理由でもあります。