Excel → JSON 変換
Excel のシートを JSON に変換。1 行目をキーにしたオブジェクト配列、または行配列を選べます。
Excel → JSON 変換とは
Excel から JSON への変換は、1 行目を見出しとして各列に名前を付け、2 行目以降を 1 レコードとして並べる処理です。オブジェクト配列([{ "name": "..." }])は API やフロントエンドにそのまま渡せ、行配列([[...]])は順序と重複を保ちたいときに使います。見出しが空、または重複している場合は、列が黙って消えないよう自動で行配列に切り替わります。
🔒 処理はすべてブラウザ内で完結し、データは送信されません。
このツールの前提
- 処理場所
- このページのブラウザ内(JavaScript / Canvas)
- アップロード
- なし — ファイルは端末の外に出ません
- オフライン
- ページを開いた後は通信不要
The shape of the output
Each worksheet becomes a key in a single JSON object, and each sheet is an array of row objects keyed by the header row. That structure keeps multi-sheet workbooks intact — the thing CSV cannot do — and maps directly onto what an API or a database import expects.
Empty cells are omitted rather than written as null, so a sparse sheet produces compact objects instead of a wall of nulls. If your consumer needs every key present, fill the blanks in Excel first; deciding «missing» versus «null» is a data-modelling decision the converter should not make for you.
Numbers stay numbers, booleans stored as TRUE/FALSE stay booleans, and everything else is a string. Dates are the exception: they are written as the ISO date string when the cell is a real date, and as the original text when the cell was text all along.
Duplicate headers and other ways JSON breaks
Two columns with the same header collapse into one key, and the last one wins. That is a property of JSON objects, not a bug, but it silently loses a column. Rename duplicates in Excel before converting.
Headers containing spaces or punctuation produce keys that are awkward to use in code. They are kept verbatim rather than silently snake_cased, because renaming a field behind the user's back is worse than an ugly key — you can always transform the JSON afterwards.
An empty header cell becomes an empty key. Fill headers before converting; a row of unnamed columns produces objects that are impossible to reference. Two columns with the same header collapse into one key, and the second silently overwrites the first.
使い方
- 1.Excel ファイルを選ぶ
- 2.シートと出力形式を選ぶ
- 3.「実行」→ JSON をコピー
他の方法との比較
同じ変換をする方法は 3 つあります。ブラウザ内(このページ)、サーバー側の変換サービス、デスクトップアプリ。差がつくのは速度ではなく、ファイルがどこへ行くかと、無料でどこまでできるかです。
| 観点 | このツール | サーバー側の変換サービス | デスクトップアプリ |
|---|---|---|---|
| ファイルの処理場所 | このページのブラウザ内 | ベンダーのサーバー(アップロード後) | 自分の PC(アプリをインストール) |
| アカウント | 不要 | 多くの場合必要(無料枠の制限解除に登録を求める) | 不要(ライセンス認証は必要な場合あり) |
| 無料で扱えるサイズ | サイズ制限なし(回数制限もなし) | 数ファイル/時間、または 5〜10MB 程度で課金 wall | ディスクとメモリ次第 |
| 料金 | 無料。Pro は月 $9(大きいファイルと AI 機能のみ) | サブスクが一般的。おおむね月 $7〜15(2026 年 11 月時点) | 買い切り、またはサブスク |
| オフライン | 一度開けば通信不要 | 不可 | 可 |
| 20MB を処理し始めるまで | 待ち時間なし(アップロードが無い) | アップロードが支配的(10Mbps 上りで約 16 秒) | アプリの起動のみ |
| 保証できないこと | 数式は計算済みの値になり、結合セルと書式は失われます | 同じ(変換の原理は変わらない) | 同じ。ただし書式の再現はより忠実な場合がある |
サーバー側のサービスが優れている点は明確にあります。巨大なファイル、チームでの共有、変換履歴の管理、スクリプトからの自動化。逆に「1 回だけ、手元のファイルを別形式にしたい」という今回の用途では、アップロードの待ち時間と登録の手間だけが増えます。
よくある質問
オブジェクト配列と行配列の違いは?
オブジェクト配列は 1 行目を見出しとしてキーにします(読みやすく、API にそのまま渡せます)。行配列は見出しを付けず、セルの二次元配列をそのまま出します。見出しに空欄や重複があると列が失われるため、その場合は自動で行配列になります。
セルの型は保たれますか?
数値は数値として、文字列は文字列として出力します。日付はシリアル値のまま出ることがあるので、必要なら変換後にアプリ側で処理してください。
大きなシートでも大丈夫ですか?
30MB まで読み込めます。数千行程度なら問題ありませんが、数十万行ではブラウザのメモリとクリップボードの上限に当たるため、CSV への変換をおすすめします。
この変換で失われるもの
表計算の変換は本質的に不可逆です。ワークブックは数式・書式・結合セル・複数シートを持ち、CSV は行のテキストしか持てません。このツールは値と並び順を保持し、再計算はせず、見た目は意図的に捨てます。サーバー不要で動く理由であり、変換後のファイルが元と同じ見た目にならない理由でもあります。