How to Import JSON into Excel with Power Query

Published 24 November 2026 · 6 min read

Excel cannot show a JSON file as a table by double clicking it, but Power Query, built into modern Excel, can load and flatten it. The steps below work in Excel for Microsoft 365, Excel 2019 and Excel 2016. The menu names differ slightly in very old versions.

Load the file

  1. Open a blank workbook and select the Data tab.
  2. Choose Get Data, then From File, then From JSON.
  3. Pick your file. The Power Query Editor opens.

What you see first

What appears depends on the top level of the file:

  • An array of objects shows as a List. Select To Table on the Transform tab and accept the defaults. You get one column of Record values.
  • A single object shows as a Record with its fields listed. Use Into Table if you want its fields as rows.

Expand the records

Click the small expand icon in the column header (two arrows). Choose which fields to keep, and untick Use original column name as prefix if you want clean headings. Repeat for any column that still says Record or List. A nested object is one more expand, and a list expands into extra rows, so a record with three items becomes three rows with the parent values repeated.

Set types before loading

Power Query guesses a type for each column. Check the icon in each header:

  • Set IDs, zip codes and phone numbers to Text. A number type can drop leading zeros and show only 15 digits in a worksheet cell.
  • Set date columns to Date or Date/Time.

Then choose Close & Load on the Home tab. The result is an Excel table.

Refresh later

The query remembers the file and every step. When the JSON changes, right click the table and choose Refresh. If you move the file, update the path under Data, Queries and Connections.

If it fails

  • JSON Lines files (one object per line) are not a single JSON document, so From JSON reports an error. Convert them first with the JSONL to CSV converter.
  • Invalid JSON gives a parsing error with no clear location. Check it in the JSON formatter, or read common invalid JSON errors.
  • Very deep nesting means many expand steps. In that case a one-time conversion is quicker.

The quick alternative

If you only need the data once, the JSON to Excel converter gives you an .xlsx file, with long numbers kept as text, without the Power Query steps. For a plain CSV, use the JSON to CSV converter.