JSON to Excel

Convert JSON to an Excel .xlsx workbook online: arrays of objects, arrays of arrays or objects of arrays, with flattening, joined arrays and header filters.

Or drop a file hereJSON

About JSON to Excel

JSON to Excel turns API output and JSON exports into a spreadsheet you can open in Excel, LibreOffice or Google Sheets. Paste the JSON or open a file and download an .xlsx.

Shapes it understands

An array of objects becomes one sheet with keys as headings. An array of arrays becomes a sheet of rows. An object of arrays becomes one sheet per key.

Nested data

Flatten nested objects turns address.city into its own column. Join arrays writes a list like tags into one cell, separated by commas.

Uneven records

When objects have different keys, every key gets a column and missing values stay empty.

Filters ready

Header rows get filter buttons so you can sort and filter straight away.

Private

Your data is processed in your browser. Nothing is uploaded. Invalid JSON shows an error; fix it with the JSON Formatter first.

How to use JSON to Excel

  1. Paste your JSON into the box, or drop or open a JSON file.
  2. Choose whether to flatten nested objects, join arrays of simple values and add header filters.
  3. Press Create Excel file.
  4. Download the .xlsx workbook and open it in your spreadsheet program.

Help & FAQ

What JSON shapes does it accept?

An array of objects, an array of arrays, a single object, or an object whose values are arrays. An object of arrays creates one sheet per key.

How do nested objects appear in the spreadsheet?

With Flatten nested objects on, they become columns named with dots, such as address.city. With it off, the nested part stays as JSON text in one cell.

What does Join arrays of simple values do?

It writes an array such as ["a","b"] as one cell with the values separated by commas, here a, b. With it off, the array is kept as JSON text.

What happens to null and empty values?

Null values and empty arrays become empty cells.

What does Add filter buttons to header row do?

It turns on the spreadsheet filter on the first row so you can sort and filter immediately.

What if objects have different keys?

The columns come from the keys that appear. A row without a key has an empty cell in that column.

Will numbers stay numbers?

Yes. Numbers in the JSON are written as numbers, and strings are written as text. Keep long identifiers as strings to avoid precision loss in the spreadsheet (Excel keeps about 15 significant digits).

Can we convert a JSON file instead of pasting?

Yes. Drop or open a file.

Is our JSON uploaded?

No. It is converted in your browser.

Why does the tool say our JSON is invalid?

JSON needs double quotes around keys and strings, no trailing commas and no comments. Use the JSON Validator to find the exact position of the error.

How do we convert Excel back to JSON?

Use the Excel to JSON tool.

Can we get several sheets?

Yes, by giving an object whose values are arrays. Each key becomes a sheet with the key as its name.

More in Office & Data

See all 28 in Office & Data