Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

How to Convert JSON to CSV in Excel: Simple Guide

· 6 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Yes, Excel can convert JSON to CSV — the quickest way is to open a blank workbook, import the JSON file through Data > Get Data > From File > From JSON, flatten the records into a table, then save the sheet as a CSV file. Excel has had a built-in JSON connector for years, so no add-ins or coding are required. The whole process takes a couple of minutes once you know where the buttons live. Note that exact menu labels can differ slightly depending on your Excel version and whether you are on Windows or Mac, so if a label does not match word for word, look for the closest equivalent in the Data tab.

What You'll Need

  • Excel 2016 or later on Windows or Mac (the Get Data / Power Query JSON import is built in), or Excel for the web with a OneDrive copy of the file
  • Your JSON file saved somewhere you can browse to, such as your Desktop or Documents folder
  • A basic idea of what the JSON contains — a flat list of records (like an array of customers or products) converts cleanly; deeply nested data needs one extra flattening step

Step-by-Step

  1. Open a blank workbook. Launch Excel and choose Blank workbook.
  2. Go to the Data tab. In the ribbon, click Data, then in the Get & Transform Data group click Get Data > From File > From JSON. On some Mac versions the path is Data > Get Data (Power Query) and you then pick the JSON file type.
  3. Select your JSON file. Browse to the file, select it and click Import. The Power Query Editor window opens, showing your JSON as a list or a record.
  4. Convert the list to a table. If you see a List column, click the icon that looks like two arrows facing away from each other in the column header, then choose To Table. Leave the delimiter options at their defaults and click OK.
  5. Expand the records. The table now has a Column1 of Record values. Click the expand icon (the small button with two arrows) in the Column1 header, make sure all the field names are ticked, untick Use original column name as prefix if the names look messy with it on, and click OK.
  6. Repeat for nested columns. If any column still shows Record, List or Table values, click its expand icon again and pick the fields you want. Only expand what you actually need — expanding everything on deeply nested files can create hundreds of columns.
  7. Clean up the data types. Check that dates, numbers and text were detected correctly. Right-click a column header and use Change Type if something looks wrong (for example, a numeric ID shown as a number when it should be text to preserve leading zeros).
  8. Load into Excel. Click Close & Load on the Home tab of the Power Query Editor. The data appears in your worksheet as a table.
  9. Save as CSV. Click File > Save As (or File > Save a Copy in newer versions), choose CSV (Comma delimited) (*.csv) from the file type dropdown, name the file and click Save.
  10. Confirm the format warning. Excel warns that some features may be lost by saving as CSV. That is expected — click Yes or Continue, since you only need the raw data.

Common Mistakes

  • Saving before expanding the records. If you skip the expand step, your CSV ends up containing a single column with the word [Record] or [List] in every row.
  • Ignoring data types. Zip codes and phone numbers lose leading zeros, and long ID numbers get turned into scientific notation, when Excel guesses them as numbers. Set those columns to Text before saving.
  • Wrong — remove
  • Not realizing CSV is one sheet only. If your data has multiple tables, CSV keeps only the active sheet. Save each sheet as a separate CSV file.
  • Expecting the CSV to update. The query connection lives in the workbook, not the CSV. Once saved as CSV, the file is static.
  • Using semicolon vs comma confusion. In some regions Excel saves CSVs with semicolons. If the receiving program needs commas, check the CSV in a text editor first.

Tips

  • Keep the original .xlsx workbook with the query intact. If the JSON file changes, open the workbook, click Data > Refresh All, and re-save the CSV — no need to rebuild the import.
  • For one-off conversions of small files, pasting the JSON into an online JSON-to-CSV converter is faster, but avoid this for any data that is private or sensitive, since you are uploading it to a third-party site.
  • If your JSON is a single flat array of simple objects, the whole conversion is usually just Import > To Table > Expand > Close & Load > Save As CSV.
  • Press Ctrl+Z only works before you close the workbook — keep the Power Query steps tidy and remove any you do not need in the Applied Steps panel rather than stacking corrections.
  • For very large JSON files, load the query to the Data Model instead of a worksheet if Excel slows down.

Troubleshooting

  • No From JSON option. If you are on an older Excel version without the Get Data menu, use an online converter or a free tool such as a plain-text editor with a JSON plugin, then open the resulting CSV in Excel. Do not download random converter programs from untrusted sites.
  • Power Query shows errors like DataFormat.Error. The JSON file is probably malformed — a missing comma or bracket. Open the file in a browser or text editor and check that it is valid JSON, or ask whoever produced the file to re-export it.
  • Columns full of nulls. The field names in your expand step do not match the actual keys in the file. Delete the last expand step in Applied Steps and expand again, checking the real field names.
  • Dates look like long numbers. Some systems store dates as Unix timestamps or serial numbers. Select the column, and use Data > Text to Columns or a date conversion formula to fix them before saving.
  • Everything lands in one cell after opening the CSV elsewhere. Your region may expect semicolon delimiters. Re-open the CSV in Excel via Data > From Text/CSV, which lets you pick the delimiter.
  • Excel for the web. Upload the JSON file to OneDrive, then use Data > Get Data in Excel for the web. If the option is missing in the web app, do the conversion in the desktop app instead.

Frequently Asked Questions

Can Excel open a JSON file directly by double-clicking it?

No. Excel does not open .json files by double-clicking; you need to import it through Data > Get Data > From File > From JSON, or rename the file to .txt and parse it manually, which is not recommended.

Does converting JSON to CSV lose data?

Only nesting. CSV is a flat format, so nested arrays and objects either get expanded into extra columns or dropped if you choose not to expand them. Flat JSON loses nothing.

Can I convert JSON to CSV in Google Sheets instead?

Not directly — Google Sheets has no built-in JSON file import. You would paste the JSON text into a cell and parse it with formulas, which is fiddly. Excel's Power Query is far easier for this task.

Why does my CSV open with everything in column A?

The delimiter does not match your regional settings. Open a blank workbook and use Data > From Text/CSV, then choose Comma (or Semicolon) as the delimiter.

Is there a limit on JSON file size?

Power Query can handle large files, but very big JSON files can be slow or run out of memory on low-RAM machines. For huge files, a command-line tool or a script may be more practical.

Will formulas survive in the CSV?

No. CSV stores values only. Any formulas in the workbook are saved as their last calculated values.