CSV to JSON converter
Convert CSV to JSON in your browser: header row, quoted fields, commas, semicolons or tabs, and optional number and boolean detection.
2 rows · delimiter ","
How it works
Each CSV row becomes a JSON object whose keys come from the header row. Quoted fields can contain the delimiter, line breaks and doubled quotes ("") as in RFC 4180.
The delimiter is detected from the first line (comma, semicolon, tab or pipe). Turn on type detection to get numbers and true/false as JSON numbers and booleans instead of strings.
Questions
- My file uses semicolons. Will it work?
- Yes. Semicolon-separated files, common in Europe, are detected automatically.
- What if there is no header row?
- Turn off "first row is a header" and each row becomes an array.
Do this in your code
The same job is one call to the APIStack API, from any language or as a tool for AI agents over MCP. The free plan includes it.
curl -X POST https://apistack.online/api/utilities/csv-to-json/v1 \
-H "x-api-key: $APISTACK_API_KEY" \
-H "Content-Type: application/json" \
-d '{"csvData":"name,age\nJohn,30\nJane,25","delimiter":",","hasHeaders":true}'