CSV to JSON Converter
Convert CSV to a JSON array — first row as keys, numbers typed.
Waiting for input…
With a header row, each line becomes an object keyed by the first row. Without it, each line becomes an array. Quoted fields, escaped quotes, and newlines inside quotes are all handled. Type conversion turns 42, true, and null into real JSON values.
How to convert CSV to JSON
Paste your CSV and choose the delimiter. With 'first row is the header' on, each remaining line becomes an object keyed by the header. The formatted JSON appears below, ready to copy.
Headerless CSV
Turn off the header option and each line becomes an array of values instead of an object — handy for matrices or coordinate lists where the columns have no names.
Questions
Does it handle quoted fields and commas inside cells?
Yes. The parser follows the common CSV rules: fields wrapped in double quotes can contain the delimiter, newlines, and escaped quotes (a doubled ""), so messy exports convert cleanly.
Can I keep everything as strings?
Yes. Type conversion is a toggle. Leave it on to turn 42, true, and null into real JSON values, or turn it off to keep every cell as a string — useful for things like zip codes and IDs with leading zeros.