CSV to JSON converter

Convert CSV data into a JSON array.

  • Development
  • 100% free
  • No sign-up
  • Runs in your browser
CSV to JSON converter

What is the csv to json converter?

The CSV to JSON converter reads CSV data, detects the delimiter (comma, semicolon, tab or pipe) and turns every row into a JSON object keyed by the column names. Quoted fields, escaped quotes and line breaks inside quotes are handled correctly.

Numbers, true, false and null can be converted to real JSON types, so the output is ready for APIs, JavaScript and databases.

How to use the csv to json converter

  1. 1Paste the CSV data, or upload a .csv file.
  2. 2Choose the delimiter and the header and conversion options.
  3. 3Press Convert and copy or download the JSON.

Features

Delimiter detection

Comma, semicolon, tab or pipe.

RFC 4180 parsing

Quoted fields, doubled quotes and multi-line values.

Typed values

Numbers and booleans become JSON numbers and booleans.

Header row

Use the first row as keys, or get arrays of values.

Frequently asked questions

What if two columns have the same name?

The second one gets a suffix, such as name_2, so no data is lost.

Are leading zeros kept?

Values like 007 are not valid JSON numbers, so they stay strings.

Can I convert an Excel file?

Save the sheet as CSV in Excel first, then paste or upload it.

Is there a size limit?

Big files are fine; the conversion runs in your browser.