mytoolstash / developer tools / csv-json

$ csv2json

CSV ⇄ JSON Converter

Paste CSV to get a JSON array of objects using the header row as keys — or paste JSON to get CSV back.

How the conversion works

The first CSV row is treated as headers and becomes the keys of each JSON object. Quoted fields with embedded commas and quotes are handled per RFC 4180. Going the other way, keys from the first JSON object become the CSV header row.

Common uses

Feeding spreadsheet exports into APIs, preparing seed data for databases, converting API responses for Excel, and quick inspection of data files without opening a spreadsheet app.