Step-by-Step Guide: Transforming Your Data with JavaScript - Converting JSON to MS Excel

Step-by-Step Guide: Transforming Your Data with JavaScript - Converting JSON to MS Excel

Anthony Lv13

Step-by-Step Guide: Transforming Your Data with JavaScript - Converting JSON to MS Excel

Key Takeaways

To import a JSON file into Excel, open Excel to the Data tab and navigate to Get Data > From File > From JSON. Pick how you want your data to be imported, and Excel will handle the rest automatically.

Have you received a JSON file that you’d like to convert to Microsoft Excel format? Excel offers a built-in option to help you import it without third-party parsing tools. Here’s how you can do it.

Related: How to Parse JSON Files on the Linux Command Line with jq

To convert your JSON file to Excel, you will first connect Excel to your JSON data. You’ll then review the JSON data, select the columns you’d like to bring to your Excel file, and finally load the data into an Excel spreadsheet.

You will then save that spreadsheet as an XLSX file , and your JSON to Excel conversion is done.

ZoneAlarm Extreme Security NextGen

Import a JSON File Into an XLSX File

To start parsing a JSON file, open Microsoft Excel on your computer and start a new spreadsheet.

On the spreadsheet window, in Excel’s ribbon at the top , click the “Data” tab.

Click the "Data" tab in Excel.


EmEditor is a fast, lightweight, yet extensible, easy-to-use text editor, code editor, CSV editor, and large file viewer for Windows. Both native 64-bit and 32-bit builds are available, and moreover, the 64-bit includes separate builds for SSE2 (128-bit), AVX-2 (256-bit), and AVX-512 (512-bit) instruction sets. New versions support AI-assisted writing.

On the “Data” tab, from the “Get & Transform Data” section, select Get Data > From File > From JSON.

Click Get Data > From File > From JSON.

You will see your computer’s standard “Import” window. Here, open the folder where your JSON file is located. Double-click the file to connect it to Excel.

Choose the JSON file.

Excel will open a “Power Query Editor” window. Here, you will decide how JSON’s data will be loaded in your spreadsheet. First, at the top of the window, click the “To Table” option. This turns your data into a table.

Click the "To Table" option.

In the “To Table” prompt, click “OK.”

Select "OK" in the prompt.

To choose which columns to keep in your spreadsheet, next to “Column1,” click the double-arrow icon.

Click the double-arrow icon next to "Column1."

In the menu that opens, choose the columns you’d like to keep. Then, deselect the “Use Original Column Name as Prefix” option and click “OK.”

Select the columns to keep and click "OK."

Your JSON file’s data is now visible in Excel-style columns and rows.

JSON data in Excel-style.

If you’d like to remove or change the positions of your columns , right-click a column and choose an appropriate option.

Modify JSON data columns.

HD Video Converter Factory Pro

When you’re happy with the result, add your JSON data to your Excel spreadsheet by clicking “Close & Load” in the window’s top-left corner.

Click "Close & Load" in the top-left corner.

Your Excel spreadsheet now has your JSON data in it. You can play around with this data however you want. For instance, you can remove the table formatting or even convert the table to a range .

JSON data in an Excel spreadsheet.

Finally, to save this JSON data in Excel format, click “File” in Excel’s top-left corner.

Click "File" in Excel's top-left corner.

In the left sidebar, click “Save.”

Select "Save" from the left sidebar.

Your computer’s standard “save” window will open. Here, select a folder to save your file in, type a name for your file, and click “Save.”

Select a folder to save the Excel file in.

And that’s it. The Excel version of your JSON file, complete with the .xlsx extension, is now available in your specified folder. Cheers!


Want to convert a Google Sheet to Excel ? It’s even easier to do that.

Related: How to Convert a Google Sheet to Microsoft Excel

  • Title: Step-by-Step Guide: Transforming Your Data with JavaScript - Converting JSON to MS Excel
  • Author: Anthony
  • Created at : 2024-08-28 00:18:37
  • Updated at : 2024-08-29 00:18:37
  • Link: https://win-howtos.techidaily.com/step-by-step-guide-transforming-your-data-with-javascript-converting-json-to-ms-excel/
  • License: This work is licensed under CC BY-NC-SA 4.0.
On this page
Step-by-Step Guide: Transforming Your Data with JavaScript - Converting JSON to MS Excel