CSV to JSON Converter
Convert CSV data into a JSON array of objects. The first row is treated as headers. Copy or download the result.
About CSV to JSON Converter
This tool reads CSV data, uses the first row as keys, and produces a JSON array where each subsequent row becomes an object. It handles quoted fields, escaped quotes, and multi-line cell values correctly per RFC 4180.
Auto-detect Types
When "Auto-detect types" is enabled, numeric strings become JSON numbers, "true"/"false" become booleans, and empty cells become null. Disable it to keep all values as strings.
How to Use
- Upload a CSV file or paste CSV text into the input.
- The first row is treated as the header (JSON object keys).
- Click Convert - the JSON array appears in the output panel.
- Click Copy or Download JSON to save the result.
How It Works
The CSV is parsed row by row. The first row's values become the keys of each JSON object. Each subsequent row's values become the corresponding object's values in the output array.
Example
CSV input:name,age,city
Alice,30,London
Bob,25,Paris
JSON output:[{"name":"Alice","age":"30","city":"London"},{"name":"Bob","age":"25","city":"Paris"}]