A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
To open and convert a .json file to Excel using Microsoft products, use Power Query in Excel.
For a single JSON file:
- In Excel, go to the Data tab.
- Select Get Data > From File > From JSON.
- In the Import Data dialog, browse to the
.jsonfile and select Open. - The data loads into Power Query. Use the Expand icons in the columns to drill into records/lists until the data is in tabular form.
- When ready, select Close & Load to load the data into a worksheet.
If using the newer Get Data (Power Query) experience:
- Go to Data > Get Data (Power Query).
- In Choose data source, select JSON.
- Select Browse, choose the
.jsonfile, then Get Data and Next. - In the preview, shape the data as needed, then select Close & Load.
If the JSON is stored as multiple files in a folder:
- Go to Data > Get Data > From File > From Folder.
- Select the folder containing the JSON files.
- Choose Combine > Combine & Transform.
- In Power Query, expand the Value column to new rows, then expand records to columns.
- Remove unwanted columns and select Close & Load.
If Excel shows an error that it “can’t connect” to the JSON file, the file may be malformed or in JSON Lines format. In that case, it must be converted to a standard JSON structure before import.
Once loaded, the JSON data is available as a normal Excel table for analysis, formulas, charts, etc.
References: