CSV to JSON converter

Convert CSV data to a JSON array. The first row is used as headers (object keys). Numeric values are automatically typed. Download as .json. Runs in your browser.

CSV input

JSON output

How CSV to JSON conversion works

The first row of your CSV is treated as headers and becomes the JSON object keys. Each subsequent row becomes a JSON object. Numeric values are automatically parsed as numbers. Empty values become empty strings.

API access

POST /api/v1/datatools/convert/csv-to-json — body: {"input": "name,age\nJohn,30"}