114k views
2 votes
How to convert json to csv in excel

User Stevenl
by
7.9k points

1 Answer

6 votes

Final answer:

To convert JSON to CSV in Excel, import your JSON file via the 'Get Data' feature, manipulate the data structure in Power Query Editor, load the data into Excel, and save it as a CSV file.

Step-by-step explanation:

To convert JSON to CSV in Excel, you can take the following steps:

  • Open Microsoft Excel and create a new spreadsheet.
  • Go to the 'Data' tab and select 'Get Data' > 'From File' > 'From JSON' to import your JSON file.
  • Excel will open the Power Query Editor, where you can manipulate the JSON data structure to fit a tabular form. Flatten the JSON if needed by using the 'Into Table' > 'Expand' options.
  • Once you have the data in the desired format, click 'Close & Load' to load the data into your Excel spreadsheet.
  • Lastly, save your Excel workbook as a CSV file by going to 'File' > 'Save As' and then select 'CSV' from the list of file types.

If your JSON is not too complex, you can also use online tools or software that specifically convert JSON to CSV without the need for Excel's Power Query tool.

User Ian Stewart
by
8.0k points