In Excel: convert a worksheet to JSON by exporting the range with headers and mapping each data row to one object whose keys are the header cells — or use Power Query (Data ▸ Get Data ▸ From File ▸ From JSON) for the reverse direction.
On this page7
Put field names in row 1, one column per field, with no merged cells.
Upload the .xlsx (or paste CSV) into the converter above and keep "first row is headers" on.
Check the live JSON preview: each data row should be one object.
Download the .json file or copy the output for your API or script.
What this does
JSON stores records as objects with named fields, while a worksheet stores them as rows under header cells. Converting between the two means deciding which row holds the field names and how empty cells should appear (empty string vs. missing key). Excel itself has no one-click "save as JSON"; Power Query imports JSON, but exporting requires a tool or script. Most people learn this as a sequence of clicks and forget it by next week; learning it as a pattern instead is what lets you apply it to the next, slightly different version of the problem without starting from scratch. That is the difference this page is trying to make. For “json file to excel”, the reliable version is a short checking loop, not just the first command that appears to work. Run it on a deliberately small range first, watch how the affected cells change, and only then apply the same setup to the full sheet. When this is a ribbon command, the selection matters more than the button: confirm the range, apply the command, then spot-check the output before saving. That is what makes a data step that keeps your analysis trustworthy useful in real work: repeatable, auditable, and not dependent on memory or luck.
A worked example
A sheet has headers name and qty in row 1, with Bolt M8 / 42 in row 2 and Nut M8 / 120 in row 3. Converted with the first row as headers, the output is [{"name":"Bolt M8","qty":"42"},{"name":"Nut M8","qty":"120"}] — two records, keys taken from row 1. APIs, config files, and most web tooling speak JSON. Converting a worksheet to JSON lets spreadsheet data feed scripts and apps without manual re-typing. A practical tip: try it on a copy of the sheet or a handful of sample rows first and check the result before you apply it to the real data. That one habit catches almost every surprise while it is still cheap to reverse.
In Google Sheets
This is a command rather than a formula, so there is no syntax to carry over. Google Sheets arranges its commands in menus across the top instead of a ribbon, names some of them differently and does not have every Excel command — look for the equivalent in the Sheets menus or its help before assuming the steps match. Keep this page bookmarked for the next time the same question comes up. Better still, repeat the steps once in your own workbook — doing it yourself is what turns a copied answer into something you remember. The short version of “json file to excel”: the answer is at the top of this page, and the sections above explain why each step matters, so a variation of the problem does not stump you. Try it once on a copy of a real file and the steps stick far better than re-reading them.
Common mistakes
- Merged header cells, which leave some columns without a key.
- Expecting Excel's Save As dialog to offer JSON — it does not; you need a converter or script.
- Forgetting that all cell values arrive as text; cast numbers in the consuming code.
- Using a sheet where the real headers start in row 3 — move them to row 1 first.
Frequently asked questions
Can Excel save a file as JSON directly?
No. Save As has no JSON option. Use a converter like the one above, Power Automate, or a script (Office Scripts, Python).
How do I open a JSON file in Excel?
Data ▸ Get Data ▸ From File ▸ From JSON, then expand the records into columns in Power Query and Close & Load.
Does the converter upload my spreadsheet?
No. The conversion runs entirely in your browser; the file never leaves your machine.