CSV to JSON

Convert CSV data to JSON format with flexible output structures

Input CSV
Paste your CSV data and configure conversion options
Output JSON
Generated JSON from your CSV data

Enter CSV data and click "Convert to JSON"

JSON Format Options

Array of Objects

Each CSV row becomes a separate JSON object in an array:

[
{
"name": "John",
"age": 30
},
{
"name": "Jane",
"age": 25
}
]

Object with Arrays

Each column becomes an array of values:

{
"name": ["John", "Jane"],
"age": [30, 25]
}
Features

Type Conversion

Numeric values are automatically converted to numbers in JSON

Flexible Headers

Use CSV headers as JSON keys or generate automatic field names

Custom Delimiters

Support for comma, semicolon, tab, and pipe delimiters

Quote Handling

Properly handles quoted values with embedded delimiters

How to Use
  1. Paste your CSV data into the input textarea
  2. Select the appropriate delimiter for your CSV
  3. Choose whether the first row contains headers or data
  4. Select your preferred JSON format (array of objects or object with arrays)
  5. Choose the indentation level (2 spaces, 4 spaces, or minified)
  6. Click "Convert to JSON" to generate the JSON output
  7. View the formatted or raw (minified) JSON output
  8. Copy the JSON to clipboard or download as a file

Tips:

  • • Numeric values are automatically converted to JSON numbers
  • • Empty CSV cells become empty strings in JSON
  • • Headers are used as JSON object keys
  • • If no headers, fields are named field1, field2, etc.
  • • Quoted values can contain delimiters
  • • Use "Array of Objects" for row-based data structures
  • • Use "Object with Arrays" for column-based data structures
  • • Minified output removes all whitespace