Free online CSV to JSON converter
This CSV to JSON converter turns comma-, semicolon-, or tab-separated data into clean JSON right in your browser. Paste a spreadsheet export or any delimited text and it is converted live — with a real CSV parser that correctly handles quoted values, delimiters and line breaks inside quotes, and escaped double quotes. Choose a header row to get an array of objects, or turn it off for a raw array of arrays.
How to convert CSV to JSON
- Paste or type your CSV into the input box on the left.
- Select the delimiter your file uses — comma, semicolon, or tab.
- Keep First row is header on to key each row by its column name.
- Toggle Pretty print for indented JSON, or off for a single line.
- Click Copy JSON to grab the result, or Clear to start over.
Objects vs. arrays
With a header row, each record becomes an object such as
{ "name": "Smith, John", "age": "42" }, which is ideal
for APIs and JavaScript. Without a header, every row stays a simple array of
strings that mirrors the original grid. Ragged rows are handled gracefully:
missing cells become empty strings and extra cells are ignored.
Going the other way
Need to reverse the process? Use the JSON to CSV converter to turn an array of objects back into a spreadsheet-ready file. If your JSON looks messy after converting, tidy it up with the JSON formatter. Everything runs locally, so your data never leaves your device.