JSON Tool
CSV to JSON Converter
Convert CSV data to JSON arrays. First row is used as headers for object keys.
Delimiter
CSV Input
Loading editor...
JSON Output
Loading editor...
About CSV to JSON Converter
This tool converts CSV (Comma-Separated Values) data into JSON arrays. Each row becomes an object, with the first row used as property names.
Features
- Auto Type Detection: Numbers and booleans are automatically converted from strings
- Custom Delimiters: Support for comma, semicolon, or tab-separated values
- Quoted Values: Properly handles quoted values with commas or newlines
- Pretty Output: JSON is formatted with proper indentation
How It Works
- The first row is treated as column headers
- Each subsequent row becomes a JSON object
- Header values become object property names
- Cell values are automatically typed when possible
Example
name,age,active Alice,30,true Bob,25,false
Converts to:
[
{"name": "Alice", "age": 30, "active": true},
{"name": "Bob", "age": 25, "active": false}
]