CSV to JSON
Turn CSV data into clean JSON arrays with automatic type inference.
Designed to run in your browser. See the privacy policy.
About CSV to JSON
This CSV to JSON converter turns spreadsheet exports and comma-separated files into a JSON array of objects, one object per row. With a header row, the column names become the object keys; without one, the keys are col1, col2 and so on. The output updates as you type, so you can adjust the options and see the effect straight away.
The parser follows the usual CSV quoting rules: a field wrapped in double quotes can contain the delimiter, line breaks and doubled quotes ("") for a literal quote. You can switch the delimiter to semicolon, tab or pipe for European Excel exports, TSV files or database dumps. The conversion runs in your browser, which is convenient when the file holds customer lists or other internal data.
How to use
- Choose the Delimiter your file uses: Comma, Semicolon, Tab or Pipe.
- Paste your data into the CSV input box.
- Leave "First row is header" on if the first line holds column names, or turn it off to get col1, col2 style keys.
- Decide whether to keep "Type inference" and "Trim values" switched on (both are on by default).
- Copy the JSON output, or download it as data.json.