CSV to JSON

  • Step 1: Submit the CSV file you want to convert to JSON to the upload box at the left.
  • Step 2: Wait a moment while your JSON output is created.
  • Step 3: Once the conversion has been completed, you will see the download button. Click on it to download your JSON file.

CSV 2 JSON

Uploading...

CSV to JSON Converter

You can use this free web app to convert any CSV to JSON online. The following example shows which result you can expect when using this tool:




timestamp,open,high,low,close
2022-03-15,1.09430,1.10199,1.09360,1.09816
2022-03-14,1.09172,1.09940,1.08990,1.09420
2022-03-11,1.09840,1.10435,1.09000,1.09099

[
{"timestamp":"2022-03-15","open":"1.09430","high":"1.10199","low":"1.09360","close":"1.09816"},
{"timestamp":"2022-03-14","open":"1.09172","high":"1.09940","low":"1.08990","close":"1.09420"},
{"timestamp":"2022-03-11","open":"1.09840","high":"1.10435","low":"1.09000","close":"1.09099"},
]

Using our online tool works for converting CSV files from all platforms including Windows, Mac, or Android. If you are looking for a local solution for doing the conversion there is a quick solution too, all you need is NPM.

Converting CSV to JSON with NPM

NPM has become one of the world's largest Software Registries, offering almost one million packages. One of them is csv2json which offers a lot of options for converting CSV spreadsheets into JSON files. Assuming you have NPM set up in your system the installation and usage are simple. For installing the package type:

For the following, we assume that you have an NPM installed on your system. The steps have been verified under Ubuntu Linux. Simply type the following command to install csv2json:


npm install csv2json

After the successful installation, you can use csv2json right away from the command line prompt of your OS:



csvtojson example.csv > example.json

The output will be available in a file called example.json.