Convert JSON to Excel

Turn a JSON file, an API response or JSON Lines into an Excel spreadsheet. Nested objects become columns like address.city; arrays become columns, rows or one cell.

Your files never leave your computer: they're opened and processed right here in your browser, and nothing is uploaded.

Or paste your data

How to convert JSON to Excel

  1. Choose your .json file, or paste the JSON.
  2. Check the preview. If the rows aren't the records you want, pick another list under "Rows", and choose how arrays are shown.
  3. Click "Download Excel" to save an .xlsx file with the same name as your JSON file.

The spreadsheet gets one column per field, in the order they first appear. A field that only some records have is still a column; the other records leave it empty. The header row has filters turned on, so you can sort and filter right away.

How to open JSON in Excel itself

Excel for Windows and Mac (Microsoft 365, Excel 2016 and later) can import JSON with Power Query:

  1. Data → Get Data → From File → From JSON, and choose the file.
  2. In the Power Query editor, click "To Table" (for a list) or "Into Table".
  3. Click the expand button (two arrows) in the column header to turn records into columns; repeat for each nested level. Lists need "Expand to New Rows".
  4. Click Close & Load.

It works, but each nested level needs another expand step, and Excel converts long numbers to 15 digits and drops leading zeros unless you set those columns to text first.

In Google Sheets

Google Sheets has no JSON import. Convert the file here to Excel or CSV, then use File → Import in Google Sheets. (For JSON from a URL, people use an Apps Script function such as ImportJSON.)

Questions

How is nested JSON turned into columns?
Each nested object becomes columns named with dots: {"address": {"city": "Boston"}} gives a column address.city. Arrays can become one column per item (tags.0, tags.1), one row per item (the other values repeated on each row), or a single cell with the items joined; choose under "Arrays".
My JSON is an object, not a list. Which part becomes the rows?
The converter looks for the largest list of records inside it, such as "data" or "results" in an API response, and uses that. If it picked the wrong one, choose another under "Rows", or "the whole file as one row". An object of records keyed by ID ({"u1": {...}, "u2": {...}}) can also be the rows, with the keys in a "key" column.
Will long ID numbers and leading zeros survive?
Yes. Numbers are read exactly as written in the JSON (not rounded the way JavaScript and Excel round numbers over 15 digits), and text such as "02134" stays text in Excel. Numbers that Excel can hold exactly are stored as numbers, so you can add them up; untick that option to store everything as text.
Does it read JSON Lines (NDJSON)?
Yes: a file with one JSON object per line is read as a list of records.
Is my JSON uploaded anywhere?
No. The file is converted by your browser on your computer and saved from there. You can also paste JSON instead of choosing a file.
What if there are more than 1,048,576 rows?
That's the most an Excel sheet can hold, so the rest continue on a second sheet, with the header repeated.