JSON Compare

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

  1. The first row is treated as column headers
  2. Each subsequent row becomes a JSON object
  3. Header values become object property names
  4. 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}
]