🔄

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.

CSV Input
JSON Output

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

  1. Upload a CSV file or paste CSV text into the input.
  2. The first row is treated as the header (JSON object keys).
  3. Click Convert - the JSON array appears in the output panel.
  4. 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"}]

FAQ

The tool always treats the first row as headers. If your data has no headers, add a header row at the top (e.g. col1,col2,col3) before converting.
Yes. The parser fully supports RFC 4180 - fields wrapped in double quotes can contain commas, newlines, and escaped double quotes ("").
No. Everything happens in your browser. Your CSV data never leaves your device.