CSV to JSON
Turn CSV rows into a JSON array.
How to use CSV to JSON
Paste your CSV, including the header row, or drop a .csv file into the editor.
The separator is detected automatically — change it if your file uses another one.
Copy the JSON output or download it as a .json file.
Frequently Asked Questions
Are numbers converted to real JSON numbers?
Yes, by default. Values that look like numbers, true, false or null are typed accordingly. Switch off Detect types to keep every cell as a string, for example to preserve leading zeros.
Does it handle commas inside quoted fields?
It does. The parser follows RFC 4180, so quoted fields with commas, escaped double quotes and line breaks inside a cell are read correctly.
What if my file has no header row?
The first row is always used as the keys. If your export has no header, add one line with column names before pasting, or the first data row will become the keys.
Related tools
Looking for something else? Browse all developer tools.