CSV to JSON
Convert CSV data to a JSON array — auto-detects delimiter, handles quoted fields.
[
{
"name": "Alice",
"age": 30,
"city": "New York",
"active": true
},
{
"name": "Bob",
"age": 25,
"city": "London",
"active": false
},
{
"name": "Carol",
"age": 35,
"city": "Tokyo",
"active": true
}
]How CSV to JSON conversion works
The first row of your CSV is treated as the header row — its values become the JSON object keys. The delimiter is auto-detected by sampling the first line (comma, tab, semicolon, and pipe are all supported), or you can override it with the buttons above. Quoted fields (including those containing the delimiter or newlines) are handled per RFC 4180. Numbers, booleans (true/false), and null are automatically coerced to their native JSON types; everything else stays a string.
To go the other way, use the JSON to CSV converter. For tabular data in other formats, try CSV to YAML or JSON Formatter to validate and prettify the output.
Frequently Asked Questions
How does the tool detect my CSV delimiter?
What if my CSV has no header row?
How are quoted fields with embedded commas handled?
Can I parse CSV files with accented or special characters?
What JSON structure does the output use?
Private & free — this tool runs entirely in your browser.