File conversion

How to turn a JSON API response into an Excel file

Save the API response, drop it into a free in-browser converter and download Excel. How wrapped responses, nested fields, long IDs and paging are handled.

DealMahal team · Published 6 December 2026 · 6 min read

To turn a JSON API response into an Excel file, save the response as a .json file (or copy it), open our free JSON to CSV converter, drop the file in or paste the text, and click Download Excel. The converter finds the list of records inside the response, turns nested fields into columns, and builds the workbook in your browser, so the data is never uploaded.

Below: what a typical response looks like, exactly what happens to each part of it, and how to handle paged APIs.

What an API response usually looks like

Most APIs do not return a bare list. They wrap the records in an object with some extra information. A typical shape (field names vary by API):

{
  "data": [
    { "id": "a1", "name": "First record", "owner": { "team": "Sales" }, "tags": ["new", "priority"] },
    { "id": "a2", "name": "Second record", "owner": { "team": "Support" }, "tags": [] }
  ],
  "page": 1,
  "hasMore": true
}

You want one row per item in data, not one row for the whole response. The converter handles that for you.

Step by step

  1. Save the response. In an API client, use its save or export option. In the browser's developer tools, open the Network tab, select the request and copy the response. With curl, add -o response.json.
  2. **Open JSON to CSV** and drop in the file (up to 50 MB), or paste the text into the box.
  3. Check the preview. You should see one row per record, with columns such as id, name and owner.team.
  4. Leave "Save numbers as numbers (Excel and JSON). Leading zeros are always kept." ticked so that counts and amounts can be summed.
  5. Click Download Excel.

Our JSON to Excel tool makes an .xlsx file directly and works a little differently from the steps above. It puts each top-level list of records on its own sheet, and it also looks one level down, so a file shaped like {"response": {"results": [...]}} works without editing. Lists of objects inside a record go to their own linked sheet (each row carries an ID that matches its parent row), or into one cell as JSON text if you choose that option. true and false become real Excel true and false values. Text such as "1,200" stays text unless you tick "Turn text that looks like a number into a number"; JSON numbers are always numbers and leading zeros are always kept. In Chrome and Edge, whole numbers of 16 or more digits keep every digit as text.

How the converter finds the records

Your responseWhat becomes the rows
A list: [ {...}, {...} ]Each item
One object with a list of objects in a top-level field, such as data, results or itemsThe items of that list. If several fields hold lists of objects, the longest list wins
One object with no list of objects at the top levelThe object itself, as one row
One JSON value per line (JSON Lines)Each line

One gotcha: only the top level of the object is checked. If your records sit two levels down, as in {"response": {"results": [...]}}, the whole response becomes a single row. Fix it by copying just the inner list, the part from [ to the matching ], into a new file and converting that.

What happens to nested fields

  • Objects inside a record become dotted columns. owner.team above becomes its own column.
  • Lists of plain values are joined with a semicolon and a space: new; priority.
  • Lists of objects are kept as JSON text in one cell, so no data is lost and rows are not multiplied.
  • Empty values and null become empty cells; true and false come through as text.

Our guide to converting nested JSON to CSV walks through a real record field by field. The rules are the same for the Excel download.

Numbers, IDs and long text in Excel

Value in the JSONIn the Excel fileWhy
42 or "42"number 42plain numbers are saved as numbers
"00715"text 00715leading zeros are always kept
"1234567890123456789"text, every digit kept16 or more characters always stay text
A very long descriptioncut at 32,767 charactersthe most one Excel cell can hold
"2026-12-05T08:00:00Z"text, exactly as writtendates are not reinterpreted

The long ID rule matters more than it looks. Excel stores only 15 significant digits in a number (see Microsoft's Excel specifications and limits), so an 18 digit ID saved as a number would lose its last digits and stop matching your system. Keeping it as text avoids that.

If the response has more than 1,048,575 records, the Excel download stops with a message, because an Excel sheet cannot hold more rows. Download CSV instead.

Paged APIs: several responses into one sheet

Many APIs return 100 or 1,000 records per page. To combine pages:

  1. Save each page as its own file: page1.json, page2.json and so on.
  2. Drop all of them into Merge CSV. It accepts JSON files as well as CSV and Excel, flattens each one the same way, and lines up the columns by name.
  3. Untick the source_file column if you do not need to know which page a row came from.
  4. Download Excel.

Our guide to merging files into one explains how columns are matched when pages contain different fields.

Doing it inside Excel instead

Excel can import JSON through Data > Get Data > From File > From JSON. That opens Power Query, where you convert the list to a table and expand each nested column by hand. It is worth it when you will refresh the same import every week from the same source. For a one-off response, or one with many nested fields, the converter is quicker.

Keep the response private

API responses often contain more than you meant to share: email addresses, internal IDs, sometimes tokens. Because the converter runs in your browser, the file stays on your computer. Before you send the resulting workbook to anyone, delete the columns they do not need.

More free file tools are on the tools page.

Frequently asked questions

Can I open a JSON file directly in Excel?

Recent versions of Excel can import JSON through Data > Get Data > From File > From JSON, which opens Power Query. You then expand the nested records yourself. A converter does the expanding for you.

My API response has the records inside a data field. Will that work?

Yes. When the file is one object, the converter looks at its top-level fields and uses the longest list of objects it finds, such as data or results, as the rows.

Why did my long IDs keep every digit?

Values of 16 or more characters are always written as text, because Excel only stores 15 significant digits in a number. Text keeps every digit.

Is my API response uploaded anywhere?

No. The file is read and converted inside your browser, which matters when a response contains customer data or tokens.

Spotted an error? Write to dealmahal.official@gmail.com.

Questions or corrections: dealmahal.official@gmail.com.

Keep reading

All posts