How to convert JSON to Excel
- Choose your .json file, or paste the JSON.
- Check the preview. If the rows aren't the records you want, pick another list under "Rows", and choose how arrays are shown.
- 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:
- Data → Get Data → From File → From JSON, and choose the file.
- In the Power Query editor, click "To Table" (for a list) or "Into Table".
- 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".
- 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.
Related tools
- JSON to CSV Converter Convert JSON to CSV online. Nested objects become columns, numbers are kept exactly, and JSON Lines works too. Free; your data never leaves your computer.
- XML to Excel Converter (XLSX) Convert an XML file to an Excel spreadsheet online, with each repeating element as a row and its fields as columns. Free; your file is never uploaded.
- CSV and Excel Viewer and Editor Online Open CSV, Excel, JSON and XML files in your browser: view millions of rows, sort, search, edit cells and save. Free, no install, nothing is uploaded.
- Convert CSV, Excel, JSON and XML Files Convert between CSV, Excel, JSON and XML online without losing leading zeros, long IDs or dates. Free; your files are converted in your browser, never uploaded.