How to Open a JSON File in Excel (2 Easy Ways)

Excel is where most people want their data, and JSON is how most apps and APIs hand it over. Double-click a .json file and Excel either opens it as one long line of text or doesn’t open it at all. The good news: there are two reliable ways to get JSON into proper rows and columns, and neither needs any code.

This guide walks through both, explains what to do with nested data, and covers the problems people hit most often, like missing rows, lost leading zeros and garbled characters.

The quick answer

  • Fastest, works in any Excel version (and Google Sheets): convert the JSON to CSV with Doetra, then open the CSV in Excel.
  • Best for a file you refresh every week: use Excel’s built-in Power Query (Data → Get Data → From File → From JSON) on Windows Excel 2016 or later, or Microsoft 365.

Why Excel can’t just open JSON

A spreadsheet is a flat grid. JSON is a tree: objects inside objects, and lists inside those. Take this order export:

[
  {
    "order_id": "A-1001",
    "date": "2026-11-02",
    "customer": { "name": "Rahim Uddin", "city": "Dhaka" },
    "items": [
      { "sku": "0451", "qty": 2 },
      { "sku": "0872", "qty": 1 }
    ],
    "total": 1450.00
  }
]

To show that as a table, something has to decide how customer becomes columns and what to do with the items list. That step is called flattening. Both methods below do it; they just do it differently.

Method 1: Convert JSON to CSV, then open it (any Excel)

This is the quickest route, and it works the same on Windows, Mac, Excel Online and Google Sheets.

  1. Open doetra.com/json-to-csv.
  2. Paste your JSON or drop the .json file onto the page (up to 25 MB).
  3. Choose CSV as the output. Switch to the table view to check the columns.
  4. Click Download to save the .csv file.
  5. In Excel, go to Data → From Text/CSV, pick the file, check the preview and click Load.

Doetra turns each object in the list into a row. Nested objects become dotted columns, so customer.name and customer.city each get their own column. Lists such as items are kept as JSON text in one cell, so nothing is lost. The conversion runs in your browser, so your file isn’t uploaded anywhere. That matters for customer or order data.

For the full walkthrough, see our guide on how to convert JSON to CSV.

Why use Data → From Text/CSV instead of double-clicking?

Double-clicking a CSV lets Excel guess every column’s type. It guesses wrong in three common ways:

  • Codes like 0451 become 451 (leading zero gone).
  • Long IDs like 8801712345678 turn into 8.80171E+12.
  • Bangla, Arabic or accented text can show up as gibberish if Excel picks the wrong encoding.

The import dialog lets you set File origin to 65001: Unicode (UTF-8) and, through Transform Data, set code and ID columns to Text before anything is changed.

Method 2: Power Query in Excel (Windows)

Power Query reads JSON directly and remembers every step, so next month you just click Refresh.

  1. Go to Data → Get Data → From File → From JSON and pick your file.
  2. The Power Query editor opens with a List. Click To Table, then OK.
  3. You’ll see one column of Record values. Click the expand icon (two arrows) in its header, choose the fields you want, and untick Use original column name as prefix if you want shorter names.
  4. Nested objects such as customer show up as another Record column. Expand it the same way.
  5. For a list column such as items, choose Expand to New Rows, then expand the records inside. Each item gets its own row, with the order details repeated.
  6. Set column types (Text for codes and IDs), then click Close & Load.

Power Query is powerful, but every nesting level is another round of expand clicks, and the menus differ on Mac. Older Mac versions don’t have the JSON connector at all.

Which method should you use?

SituationBest method
One-off file, want it in a sheet nowConvert to CSV with Doetra
Mac, Excel Online or Google SheetsConvert to CSV with Doetra
Same report every week from the same sourcePower Query (then Refresh)
Need one row per list item (e.g. per order line)Power Query, Expand to New Rows
Confidential data you don’t want to uploadEither; Doetra runs in your browser and Power Query runs locally

Handling nested data

Nested data is where most of the confusion comes from. A simple way to think about it:

  • Objects inside objects (like customer) add columns. They’re easy, and both methods handle them cleanly.
  • Lists inside objects (like items) are one-to-many. You have to choose: keep the list in one cell (one row per order), or give each list item its own row (one row per order line, with order details repeated).

If your file has deep nesting you don’t need, it’s often faster to delete those fields from the JSON before converting, or delete the extra columns in Excel afterwards.

Common problems and fixes

  • Excel shows one row, or just “Record”. In Power Query you still need to expand the columns (step 3 above). With CSV, your JSON is probably one object rather than a list. If the data sits inside a field like {"results": [ ... ]}, use just the list.
  • “We found a problem with this file” or an invalid JSON error. The JSON itself is broken. Paste it into Doetra, which points to the line with the error, often a trailing comma or a missing bracket.
  • Leading zeros disappeared. Re-import with Data → From Text/CSV and set those columns to Text. Formatting the cells afterwards won’t bring the zeros back.
  • Dates look wrong. JSON dates are usually ISO text (2026-11-02). Set the column to Date in the import step, or keep it as Text if your region’s settings flip day and month.
  • The file is huge. Excel’s sheet limit is 1,048,576 rows. For bigger data, load it into the Data Model through Power Query instead of a sheet.

Opening JSON in Google Sheets

Google Sheets has no built-in JSON import. Convert the file to CSV with Doetra, then use File → Import → Upload. Untick Convert text to numbers, dates and formulas to keep codes and IDs exactly as they are.

Frequently asked questions

Can Excel open a JSON file directly?

Windows Excel 2016 and later, and Microsoft 365, can import JSON with Power Query (Data → Get Data → From JSON). Double-clicking a .json file won’t turn it into a table.

What’s the easiest way to open JSON in Excel on a Mac?

Convert it to CSV first with Doetra, then open the CSV through Data → From Text. It takes about a minute and needs no add-ins.

How do I convert Excel back to JSON?

Save the sheet as CSV (File → Save As → CSV UTF-8), then convert it with Doetra using CSV as the input and JSON as the output. Our CSV to JSON guide covers the details.

Is it safe to convert JSON online?

With Doetra, yes: the conversion happens in your browser and the file is never uploaded to a server.

Try it now: convert your JSON to an Excel-ready CSV →

Scroll to Top