1xA2ZOne Data. Any Format.
Live syncLocal-first · no data upload

Convert JSON to Excel

Paste JSON into the Quick paste box, let it flatten into a table, then press Download .xlsx to get an Excel file. The tool handles table-shaped data only, so nested objects become a.b.c columns and arrays become a.0, a.1.

Runs entirely in your browser. Your data is never uploaded. Tiếng Việt

01

Spreadsheet

SheetsExcelCSVTSV
✦ Quick pasteSheets / Excel, CSV, TSV, Markdown, JSON, HTML, LaTeX, wiki…
0 rows · 0 columnsSelected cell: A1
02

Live Output

Markdowntwo-way
SyncedEdit directly; the table on the left updates itself
0 characters
Every change is processed right in your browserReady · LocalUTF-8 · by xuanhieu.org

When you need to convert JSON to Excel

API output is often JSON nested several levels deep, while the reader wants a spreadsheet to filter and sort. The part that needs care is nesting: Excel has only rows and columns, so something has to turn customer.name or the items array into columns. The option Flatten nested objects (a.b.c) does that, and this page opens with it on. You see the grid before downloading, so you can fix column names first.

How to do it

  1. Paste JSON into the Quick paste box and press Load into table ↵, or use Import file with a .json file.
  2. Look at the grid: every nested key is a column with dots in its name, and every element of the top-level array is a row.
  3. Open ⚙ Options on the Excel tab to name the sheet, turn on auto width or lock the sheet.
  4. Press Download .xlsx to get the file. The Excel tab itself is only a TSV preview.

A real example

The preview has seven columns because the longest items array holds three items, giving order.items.0 through order.items.2. Orders with fewer items leave the extra columns empty. The amount is plain digits, with no thousands formatting.

Input · JSON

[
  {
    "id": "A1",
    "customer": {
      "name": "Anna Reed",
      "city": "London"
    },
    "order": {
      "total": 450,
      "items": [
        "book",
        "pen"
      ]
    }
  },
  {
    "id": "A2",
    "customer": {
      "name": "Ben Cole",
      "city": "Leeds"
    },
    "order": {
      "total": 1250,
      "items": [
        "backpack"
      ]
    }
  },
  {
    "id": "A3",
    "customer": {
      "name": "Cara Lin",
      "city": "Bristol"
    },
    "order": {
      "total": 299.5,
      "items": [
        "notebook",
        "pen",
        "ruler"
      ]
    }
  }
]

Result · Excel (TSV preview)

id	customer.name	customer.city	order.total	order.items.0	order.items.1	order.items.2
A1	Anna Reed	London	450	book	pen	
A2	Ben Cole	Leeds	1250	backpack		
A3	Cara Lin	Bristol	299.5	notebook	pen	ruler

Excel is a binary file: press Download file to get the .xlsx. This is a TSV preview.

Options worth changing

Flatten nested objects (a.b.c)
An input option for JSON. Turn it off and nested parts stay inside one cell as JSON text instead of splitting into columns, which suits you if others only need to read it.
Auto column width
Columns with long names like customer.city or long content fit snugly. Turn it off for default widths.
Sheet name
Give it a meaningful name such as Orders, up to 31 characters. Characters like : / ? * are dropped.
Protect sheet
Stops cell edits when the recipient opens the file, but there is no password so it is easy to lift.

Common problems

Limits

Frequently asked questions

What do JSON arrays turn into in Excel?

Each array item becomes a column with a numeric suffix, such as order.items.0 and order.items.1, next to the other columns of the same row.

What if my JSON is an object wrapping an array of objects?

An object with a single key holding an array of objects is read as that array. An object with several keys that hold arrays gives one column per key.

Can it handle a very large JSON file?

The limit is 10,000 rows, 200 columns and 200,000 cells per table. Past that the tool refuses rather than slowing the browser down.

Do I need an account or an upload?

No. The JSON is read and the xlsx is created inside your browser.

Can I set date or number types per column?

No. Every cell is text; change the format in Excel afterwards.

Related conversions

1xA2Z · Guide

Table statistics