Convert CSV to JSON in your browser
This tool turns a CSV file with a header row into a clean JSON array of objects — one object per row, keyed by the column names. It is built for developers loading spreadsheet exports into an app or API, and for anyone moving data from Excel or Google Sheets into a JSON-based system without writing a script.
How it works
The parser implements the RFC 4180 standard rather than a naive split on commas.
It reads the text character by character, tracking whether it is inside a quoted
field, so commas, line breaks and doubled quotes ("") inside a quoted value are
preserved instead of breaking the row. The first row becomes the header; each later
row is zipped against it to build an object. With “infer numbers and booleans” on,
clean numeric literals become JSON numbers and the words true, false and null
become their JSON equivalents — everything else stays a string.
Example
This CSV:
name,role,active
Ada,Engineer,true
"Bao, Jr.",Designer,false
becomes:
[
{ "name": "Ada", "role": "Engineer", "active": true },
{ "name": "Bao, Jr.", "role": "Designer", "active": false }
]
Note the comma inside "Bao, Jr." is kept because it is quoted. Everything runs
locally in your browser — nothing is uploaded, which makes it safe for confidential
spreadsheets and exports.