Convert JSON to Excel, including nested JSON
Paste JSON or drop a .json or .jsonl file below and download an Excel workbook. Fileshape finds the list of records inside the document, turns nested objects into columns with dotted names (customer.city), joins simple arrays into one cell and writes numbers as real Excel numbers, all in your browser.
Drop a file to convert
CSV, Excel, JSON, XML and more. It stays on your device; nothing is uploaded.
From an API response to rows
JSON from an API or an export rarely starts with a plain list. It's usually wrapped, as in {"data": {"orders": [ … ]}}, next to fields like total or next_page. Fileshape searches the document for the largest array of objects and uses it as the rows, so you can paste the raw response without trimming it. A single object becomes one row, and JSON Lines files (one object per line) are read line by line.
How nested fields become columns
A sheet is flat, so every nested field becomes its own column named with dots: {"customer": {"name": "Priya", "city": "Pune"}} gives customer.name and customer.city. Arrays of simple values, such as tags, are joined into one cell with semicolons. Arrays of objects, such as an order's line items, are kept as compact JSON text in one cell so the parent row isn't duplicated.
Records don't need the same keys. The columns are the union of every key, in the order they first appear, and missing values are left empty. Use the mapping step to drop, rename or reorder columns before the workbook is written.
Numbers, IDs and dates in the workbook
Plain numbers like 42 or 1204.5 are written as numeric cells so you can sum and chart them straight away. Values that only look like numbers, such as IDs with leading zeros, phone numbers with a plus sign, or integers longer than 11 digits, are written as text so Excel doesn't drop digits or switch to scientific notation. Dates are kept as the text in the JSON; add a Date transform in the mapping step for a consistent format.
If you'd rather ask questions about the data than open it in Excel, upload the JSON to Fileshape Ask AI and query it from ChatGPT or Claude.
Ask AI about this file
Ask ChatGPT, Claude or Cursor about your file. Fileshape cleans it, masks personal columns and gives your AI one link, so totals come from every row.
FAQ
Questions
How do I convert JSON to Excel?
Paste the JSON or drop the file into the converter on this page, check the columns, and download .xlsx. Nested objects are flattened into dotted columns automatically.
Is my JSON sent to a server?
No. Parsing and conversion run in your browser.
Can I convert JSON Lines (NDJSON) to Excel?
Yes. Files ending in .jsonl or .ndjson, or pasted text with one object per line, are read as JSON Lines.
Related
Other conversions
- Convert Excel to CSV without breaking your dataConvert an Excel workbook to clean CSV in your browser: pick the sheet, skip title rows, keep leading zeros and choose comma or semicolon delimiters.
- Convert JSON to CSV, including nested JSONConvert JSON or JSON Lines to CSV in the browser. Nested objects become dot-named columns, arrays are joined, and the record list is found automatically.
- Convert CSV to JSONTurn CSV into a JSON array of objects, nested JSON via dot-named columns, or JSON Lines. Delimiters and quoted fields detected automatically.
- Convert CSV to Excel (XLSX) without losing leading zerosConvert a CSV to an Excel .xlsx file in your browser. Leading zeros and long IDs stay intact, numbers stay numbers, and the delimiter is detected for you.
Updated 2026-11-27