CSV to JSON Converter
Convert CSV to JSON and JSON to CSV in your browser. Handles quoted fields, custom delimiters, header rows and type inference, with a live table preview.
Runs in your browser — your data never leaves your device3 rows · 6 columns · comma (detected)
Table preview
| # | id | name | active | score | notes | |
|---|---|---|---|---|---|---|
| 1 | 1 | Ada Lovelace | ada@example.com | true | 98.5 | First programmer, mathematician |
| 2 | 2 | Alan Turing | alan@example.com | false | 95 | Said "Can machines think?" |
| 3 | 3 | Grace Hopper | grace@example.com | true | Multi-line note |
How to use CSV to JSON Converter
- 1
Choose a direction
Pick CSV → JSON or JSON → CSV, then paste your data or upload a file.
- 2
Tune the options
Set the delimiter (or auto-detect), header row and type inference for numbers and booleans.
- 3
Copy or download
Check the table preview, then copy the result or download it as a .json or .csv file.
Frequently asked questions
Does it handle commas, quotes and line breaks inside fields?
Yes. The parser follows RFC 4180: fields wrapped in double quotes can contain delimiters and line breaks, and a doubled quote ("") inside a quoted field becomes a single quote character.
How does delimiter auto-detection work?
It tries comma, semicolon, tab and pipe on the first lines of your data and picks the one that splits every row into the same number of columns. You can always choose the delimiter manually.
What JSON shape can I convert to CSV?
An array of objects works best — the columns are the union of all keys, so objects with missing fields simply get empty cells. Arrays of arrays and a single object are supported too; nested objects are written as JSON text.
Will my CSV open correctly in Excel?
Downloaded CSV files include a UTF-8 byte-order mark so Excel shows accents and non-Latin characters properly. If your Excel uses semicolons as the list separator, pick the semicolon delimiter before downloading.