How to Convert CSV to JSON (Step by Step)
Convert a CSV file or text into JSON in your browser — step by step, with a free CSV to JSON converter.
Turning tabular CSV into nested JSON is a one-step job:
-
1
Open the converter
Open the CSV to JSON tool.
-
2
Paste your CSV
Paste your CSV (including the header row) into the input.
-
3
Get JSON
Each row becomes a JSON object keyed by the header. Copy or download the result.
Do it now
よくある質問
ヘッダーにスペースや特殊文字が含まれている場合はどうなりますか?
XML要素名にはこれらの文字を使用できないため、自動的にアンダースコアに置き換えられます。数字で始まるヘッダーには先頭に`_`が付加されます。
要素の代わりに属性を使うなど、別のXML構造にしたい場合は?
まず<a class="text-brand-600 hover:underline" href="/csv-to-json">CSV to JSON</a>でCSVをJSONに変換し、JSONを編集してから、属性プレフィックスを指定できる<a class="text-brand-600 hover:underline" href="/json-to-xml">JSON to XML</a>を使用してください。
出力結果をさらに整形(pretty-print)することはできますか?
出力はすでにインデント済みです。別のインデント設定にしたい場合や、圧縮(minify)したい場合は<a class="text-brand-600 hover:underline" href="/xml-formatter">XML Formatter</a>をご利用ください。