メインコンテンツへスキップ

CSVからJSONへのコンバーター

CSVデータをブラウザで即座にJSONオブジェクト配列に変換します。

Input
0 chars | 0 bytes
Output
0 chars | 0 bytes

CSV is the lowest common denominator for data exchange — every tool exports it — but most modern application code expects JSON. Converting a CSV export to a JSON array unlocks it for use in JavaScript front-ends, Node.js scripts, REST API mock data, and NoSQL databases that store documents rather than rows.

This converter reads a CSV with a header row, maps each subsequent row to a JSON object keyed by the header values, and outputs a clean JSON array. It is the fastest way to turn a spreadsheet export into seed data for a database, a fixture for a test suite, or a payload for a bulk API import — without writing a throwaway script.

CSVをJSONにオンラインで変換する方法

  1. 1

    CSVを貼り付ける

    CSVテキストを入力に貼り付けてください。区切り文字(カンマ、セミコロン、タブ、パイプ)は自動検出されます。

  2. 2

    ヘッダーをキーにマッピング

    デフォルトでは最初の行がJSONオブジェクトのキーになります。「ヘッダー行なし」を切り替えると数値キーが生成されます。

  3. 3

    JSON出力をコピー

    整形されたJSON出力をコピーするか、スワップボタンを使ってJSONビューアーで結果を開きます。

How CSV-to-JSON Conversion Works

The parser reads the first row as column names and then maps each subsequent row positionally. Extra columns beyond the header are discarded; missing columns at the end of a short row produce null values rather than throwing an error. The challenge lies in type inference: should `"42"` become the number `42` or the string `"42"`? This converter performs conservative type coercion — plain integers and floats become JSON numbers, `"true"` and `"false"` become booleans, and everything else stays a string.

Quoted fields are unescaped per RFC 4180, including doubled double-quotes and embedded newlines. The output array is pretty-printed by default so it is immediately readable and diffable in version control, with an option to compact it for smaller file size when the result is destined for an API payload.

FileCrank CSV→JSONを使う理由

  • ✓ 手動オーバーライドオプション付きの区切り文字自動検出。
  • ✓ 最初の行が自動的にJSONキーになる。
  • ✓ コードに貼り付けられる整形済み出力。
  • ✓ 完全にブラウザ内で動作 — データはサーバーに送信されません。

機能と仕様

最大ファイルサイズ
最大100 MB
プライバシー
ファイルは約1時間後に削除されます
料金
無料、登録不要
処理方式
100%クライアントサイド
クリップボードサポート
One-click copy to clipboard
データはブラウザの外に出ません — すべての処理はローカルです。アカウントや登録不要。使用制限なしで無料。

よくある質問

CSVの最初の行がJSONキーになりますか?

はい。デフォルトでは最初の行はヘッダー行として扱われ、各JSONオブジェクトのキー名になります。CSVにヘッダー行がない場合は「ヘッダー行なし」オプションを切り替えると、ツールが数値キー(col_0、col_1など)を生成します。

CSVの行の列数が異なる場合はどうなりますか?

ヘッダーより少ない列の行は、欠損キーにnull値が設定されます。ヘッダーより多い列の行は余分な値が無視され警告が表示されます。

セミコロン区切りのCSVはどう処理しますか?

ツールが区切り文字を自動検出します。自動検出が間違った場合は区切り文字オプションを開いてセミコロンを手動選択してください。

出力のJSONはミニファイされますか、整形されますか?

出力は読みやすさのためデフォルトで整形されます。コンパクトな1行バージョンが必要な場合は出力をコピーしてJSONビューアーツールでミニファイできます。

Browser Converter vs. Python csv Module vs. Dedicated ETL

Python's `csv` module combined with `json.dumps` gives you full control but requires writing and running code. Dedicated ETL tools add scheduling and monitoring that are overkill for a one-time conversion. Spreadsheet macros can do it but produce inconsistent output depending on locale settings. A browser-based converter is the fastest path from a CSV file to a valid JSON array when you need the result immediately and reproducibility is not a requirement.

FileCrank CSV→JSONコンバーターはCSVの行をJSONオブジェクト配列に変換し、区切り文字を自動検出して最初の行をオブジェクトキーとしてマッピングします。完全にブラウザ内で動作します。

Advertisement

Ad