CSV to JSON converter

Convert a UTF-8 CSV into an array of JSON objects using the header row as property names. Keep leading zeros and other text values.

Paste data or open a UTF-8 file up to 1 MiB. Processing takes place on this device.

Worked example

Input

SKU,Stock
001,12

Result

[{ "SKU": "001", "Stock": "12" }]

How are numbers and duplicate headers handled?

Values are exported as strings so IDs such as 001 retain their digits. Each column needs a unique, nonempty name. An empty cell becomes an empty string in the JSON record.