How to Open JSON Data in Excel as a Proper Table

Learn how JSON records map to spreadsheet rows and columns, how nested objects are flattened, and the easiest ways to get JSON into an Excel workbook.

Updated September 29, 2026 6 min read

Use the free JSON to Excel ConverterTurn JSON arrays into a real .xlsx workbook, one sheet per array

A developer exports a list of orders from an API, a colleague in finance asks for "the spreadsheet", and suddenly you are staring at a file full of braces and quotes. Double-clicking a .json file rarely helps: Excel either refuses to open it or shows everything in one cell. The data is perfectly structured, it just is not shaped like a table yet.

This guide explains how JSON maps onto rows and columns, what to do with nested objects and arrays, and three practical ways to get the data into a real Excel workbook, including a browser method that needs no add-ins and keeps confidential data on your own computer.

How JSON fits (and does not fit) a spreadsheet

A spreadsheet is a grid: every row has the same set of columns. JSON is a tree, and a tree only becomes a grid when its shape is regular. The friendliest shape is an array of objects, where each object is one record:

[
  { "id": 1042, "customer": "Northwind Ltd", "total": 59.9, "paid": true },
  { "id": 1043, "customer": "Contoso GmbH", "total": 120, "paid": false }
]

Each object becomes a row and each key becomes a column header. Numbers stay numbers and true/false become logical values Excel can filter on.

Trouble starts with three things:

  • Nested objects. An address object with city and country inside has no single cell to live in. The usual answer is flattening: create columns called address.city and address.country.
  • Arrays inside a record. A tags list of three values can be written as one cell containing JSON text, or spread across numbered columns such as tags.0, tags.1 and tags.2. The first keeps the table narrow; the second is easier to filter.
  • Inconsistent records. If only some orders have a coupon key, the table still needs a coupon column, with blanks for the rest. A good converter collects every key it sees across all records, not just the keys in the first one.

There is also a structure that deserves special treatment: an object whose values are all arrays, such as { "customers": [...], "orders": [...] }. That is really two tables, and it maps naturally to two sheets in one workbook.

Convert JSON to an Excel file in your browser

Our JSON to Excel Converter builds a genuine .xlsx workbook using the SheetJS library, running entirely in your browser, so API responses containing customer details are not uploaded anywhere.

  1. Open the JSON to Excel Converter.
  2. Paste your data into the JSON input box, click Open file to load a .json file, or press Load sample to see how it works.
  3. Under Nested objects, choose Flatten (address.city) to create dot-notation columns, or Keep as JSON text if you want the nested part in a single cell.
  4. If you flatten, choose how Arrays in a row are written: one JSON cell or numbered columns.
  5. Leave One sheet per top-level array switched on if your JSON is an object of arrays; otherwise set a Sheet name for the single sheet.
  6. Check the preview table, switching between sheets with the tabs, then click Download .xlsx.

If the JSON is invalid, the tool reports the line and column of the problem rather than producing an empty workbook. That usually points to a trailing comma or a missing quote, which you can fix in a JSON Validator before trying again.

Other ways to get JSON into Excel

Power Query in Excel for Windows

Desktop Excel for Microsoft 365 can import JSON through Data → Get Data → From File → From JSON. Power Query opens, shows the top-level list, and you click To Table, then use the expand buttons on each column to pull nested fields out. The big advantage is that the query can be refreshed: if the JSON file is replaced next week, one click reloads it. The downside is the learning curve, and each nested level needs to be expanded by hand. For a recurring report that you rebuild every month, Power Query is often the better long-term choice.

Going through CSV

You can convert JSON to CSV first and open that in Excel. This works well for flat data, and CSV is useful when the next step is a database import rather than a person. Be aware that CSV has no types: when Excel opens it, product codes such as 00123 may lose their leading zeros and dates may be reinterpreted by your regional settings. The guide on converting nested JSON to CSV covers that route in detail, and the JSON to CSV Converter does the conversion.

A short script

If you already work in Python or Node.js, a few lines with a library such as pandas (pd.json_normalize) or SheetJS will do the job and can be scheduled. It is the right answer for automated pipelines, but overkill for a one-off handover.

Method Best for Watch out for
Browser converter One-off conversions, private data Very large files depend on device memory
Power Query Repeatable, refreshable reports Manual expansion of each nested level
JSON → CSV → Excel Flat data, database imports Lost types, leading zeros, date guessing
Script Automation Needs a runtime and maintenance

Tips for a spreadsheet people can actually use

Find the array that holds the records

API responses often wrap the records: { "data": { "items": [ ... ] }, "page": 1 }. Converting the whole object gives you one awkward row. Copy just the items array, or use a JSON Viewer to navigate to it and copy that branch.

Decide on arrays before you convert

Numbered columns (tags.0, tags.1) are easy to filter but produce very wide sheets when some records have dozens of items. If the arrays are long, keep them as JSON text in one cell, or model them as a separate sheet by restructuring the JSON into an object of arrays.

Know Excel's limits

A worksheet holds at most 1,048,576 rows, and a single cell holds at most 32,767 characters. The converter warns you if a cell had to be cut. If your export is larger than a million records, split it by date or category first.

Check number precision

Excel stores numbers with about 15 significant digits. Long numeric identifiers, such as 18-digit order IDs or some database keys, will be rounded if treated as numbers. If your JSON has IDs like that, make sure they are strings in the JSON (in quotes) so they arrive in Excel as text.

Keep column names readable

Flattened names such as billing.address.postcode are precise but long. Rename headers in Excel after conversion if the sheet is going to a non-technical audience; the data underneath does not change.

Frequently asked questions

Can Excel open a JSON file directly?

Excel for Windows can import JSON with Power Query (Data → Get Data → From JSON), which then needs a few clicks to expand into a table. Simply double-clicking a JSON file does not produce a usable table.

What JSON structure converts best?

An array of objects, one object per row, converts cleanly. A single object becomes one row, and an object whose values are all arrays becomes one sheet per array.

What happens to nested objects?

With flattening on, nested keys become dot-separated column names such as address.city. If you choose to keep them as JSON text, the whole nested object is stored in one cell.

Is my data uploaded when I convert it?

No. The JSON to Excel Converter parses the JSON and builds the workbook in your browser, so the file never leaves your device.

How do I convert Excel back to JSON?

Use the Excel to JSON Converter, which reads a workbook and writes each row as a JSON object keyed by your column headers.

Try it now: JSON to Excel Converter

Loading tool…