How to convert JSON to CSV


JSON and CSV are both widely used for storing and exchanging data. They are very different in structure (JSON is structured as a tree and CSV is structured as a table). But you can easily convert JSON to CSV with Easy Data Transform:

Auto run on

JSON to CSV

convert JSON to CSV

JSON to CSV converter

Example JSON input:

[
  {
    "CustomerID": "ALFKI",
    "CompanyName": "Alfreds Futterkiste",
    "ContactName": "Maria Anders"
  },
  {
    "CustomerID": "ANATR",
    "CompanyName": "Ana Trujillo Emparedados y helados",
    "ContactName": "Ana Trujillo"
  },
  {
    "CustomerID": "ANTON",
    "CompanyName": "Antonio Moreno Taquería",
    "ContactName": "Antonio Moreno"
  }
]


Example CSV output:

CustomerID,CompanyName,ContactName
ALFKI,Alfreds Futterkiste,Maria Anders
ANATR,Ana Trujillo Emparedados y helados,Ana Trujillo
ANTON,Antonio Moreno Taquería,Antonio Moreno


The dot (‘.’) character is used to show nesting of JSON values. For example:

[
  {
    "name": "Avocado Dip",
    "carb": "2",
    "cholesterol": "5",
    "fiber": "0",
    "minerals": {
      "ca": "0",
      "fe": "0"
    },
    "protein": "1",
    "sodium": "210",
    "vitamins": {
      "a": "0",
      "c": "0"
    }
  }
]


Will be ‘flattened’ into a table as:

flatten nested JSON

Use the Rename Cols transform before output if you want to rename any of the columns.

If you have lots of files to convert you can do it using the batch processing feature.

As well as changing file format, Easy Data Transform also allows you to combine 67 transforms (such as merge, filter and dedupe) to quickly and easily create complex data transformations.

JSON to CSV

Try it free now!

Windows Logo Windows Download

v2.0.1 for Windows 11 / 10 / 8 / 7 (61 MB)
Zip file version

Apple Logo Mac Download

v2.0.1 for Mac 15.x to 10.13 (82 MB)

No commitments.
You can uninstall any time.
You don't even have to give us your email address.


Questions or problems?

Email support@easydatatransform.com