JSONGenerator
GeneratorSchemaConvertersExamplesDocs

JSONGenerator

Free online tools for generating random JSON data and JSON Schemas.

Quick Links

  • JSON Generator
  • JSON Schema Converter
  • Examples
  • Docs
  • Blog
  • About
  • Contact
  • Privacy Policy

Converters

  • JSON to YAML
  • YAML to JSON
  • XML to JSON
  • JSON to XML
  • JSON to TOML
  • TOML to JSON
  • JSON to CSV
  • CSV to JSON
  • JSON to Excel
  • Excel to JSON
  • JSON to HTML table
  • JSON to TypeScript
  • JSON to C#
  • JSON to Go
  • JSON to Java
  • JSON to SQL

Support

Having issues? Contact us.

© 2026 JSON Generator. All rights reserved.

JSON to Excel Converter

Paste JSON and download it as an Excel .xlsx spreadsheet, with nested objects flattened into columns.

Swap directionSwap direction

JSON Input

Paste JSON, upload a .json file or drop one here.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
[
  {
    "orderId": "00012345678901234567",
    "customer": {
      "name": "Zoë Müller",
      "email": "zoe@example.com",
      "address": { "city": "Oslo", "country": "NO" }
    },
    "total": 129.5,
    "paid": true,
    "tags": ["gift", "express"],
    "notes": "Leave at the door, \"ring twice\"",
    "createdAt": "2024-03-01T09:30:00Z"
  },
  {
    "orderId": "00012345678901234568",
    "customer": {
      "name": "Tom Reyes",
      "email": "tom@example.com",
      "address": { "city": "Austin", "country": "US" }
    },
    "total": 42,
    "paid": false,
    "tags": [],
    "notes": null,
    "createdAt": "2024-03-02T14:05:00Z"
  }
]

Sheet Preview (CSV)

A preview of the rows. Download saves the real .xlsx file.

1

Converting…

Convert JSON to Excel online

This free JSON to Excel converter turns a JSON array, an object or an API response into a real .xlsx workbook. Paste the JSON, check the preview and click Download. The first row holds the column headers, every record becomes a row, and the file opens in Excel, Numbers, Google Sheets or LibreOffice with no import wizard and no CSV encoding surprises. Since .xlsx is Excel's native format, it works as a JSON to XLSX converter too.

It is aimed at developers and analysts who have data in JSON and need to hand it to someone who lives in spreadsheets. The workbook is created in your browser, so nothing is uploaded, and the file you download contains the same rows as the preview. Columns are sized to fit their content, so the sheet is readable as soon as you open it.

How to convert JSON to Excel

  1. Paste your JSON into the JSON Input editor, or click the upload button to open a .json file. You can also drag a file onto the editor.
  2. The Sheet Preview shows the rows as CSV so you can check the columns. If the JSON is invalid, the status bar shows the parser's error.
  3. Set a sheet name (up to 31 characters), and choose whether to flatten nested objects or write one sheet per top-level array. When the workbook has several sheets, use Preview sheet to check each one.
  4. Click Download to save the workbook, with every sheet, as data.xlsx. The Copy button copies the CSV of the sheet in the preview instead.

JSON to Excel example

Each object becomes a row. The nested address object is split into two columns, the booleans become Excel TRUE and FALSE, and the tags array goes into a single cell as JSON text. The zip code 02134 keeps its leading zero because it is a string in the JSON. The preview below is exactly what the tool shows for this input.

JSON input
[
  {
    "id": 1,
    "name": "Ada Lovelace",
    "active": true,
    "address": { "city": "London", "zip": "02134" },
    "tags": ["math", "code"]
  },
  {
    "id": 2,
    "name": "Grace Hopper",
    "active": false,
    "address": { "city": "New York", "zip": "10001" },
    "tags": []
  }
]
Sheet preview (CSV)
id,name,active,address.city,address.zip,tags
1,Ada Lovelace,TRUE,London,02134,"[""math"",""code""]"
2,Grace Hopper,FALSE,New York,10001,[]

How JSON maps to Excel cells

JSON values and the Excel cells they produce
JSONExcel cellNotes
[ { }, { } ]One row per objectThe union of all keys becomes the header row, in order of first appearance.
{ } objectOne rowA single object becomes a one-row sheet.
stringText cellNever converted to a number, date or formula.
numberNumber cellExcel keeps about 15 significant digits.
true / falseBoolean cellShown as TRUE and FALSE.
nullEmpty cellAlso used when a record lacks a key that others have.
nested arrayText cellWritten as JSON, for example [1,2].

Flattening nested objects into columns

Spreadsheets are flat, JSON is not, so something has to give. With Flatten nested objects on, which is the default, every nested object is expanded into columns named by its path: customer.address.city is the city key inside address inside customer. That keeps each value in a cell you can filter on. Turn the option off and the whole nested object is written into one cell as JSON text, which is useful when you only care about the top-level fields.

Records do not need to share the same keys. The header row is the union of every key, in the order each one first appears, and a record that lacks a key simply leaves that cell empty. An array of plain values, such as [1, 2, 3], is written as a single column named value.

Wrapper objects and several sheets

APIs often return an object such as { "total": 2, "data": [ … ] } rather than a bare array. When the top level is an object, the converter uses the first key whose value is an array of objects and ignores the rest. If your file has several lists, tick One sheet per top-level array and each one is written to its own sheet, named after its key. Excel does not allow : \ / ? * [ ] in sheet names, so those characters are replaced with underscores, names are cut to 31 characters and duplicates get a number.

With more than one sheet, a Preview sheet picker appears next to the options. The preview shows one sheet at a time as CSV, so you can check each sheet's columns before downloading, and Copy gives you that sheet's CSV on its own. The download always contains every sheet, whichever one is in the preview.

Numbers, IDs and dates

Numbers stay numbers, which is what you want for totals and filters, but Excel stores only about 15 significant digits. Long identifiers such as card numbers, barcodes or 64-bit IDs should be strings in your JSON; the converter keeps strings as text, so leading zeros survive and a value like =1+1 is not evaluated as a formula. Dates in JSON are strings, so they arrive as text in ISO format; convert them in Excel with DATEVALUE or Text to Columns if you need date arithmetic.

Excel limits

A sheet holds at most 1,048,576 rows and 16,384 columns, and a cell holds at most 32,767 characters. If your JSON exceeds one of these, the tool reports it instead of writing a broken file.

Why convert JSON to Excel?

  • Sharing API data: Give product, finance or support teams a spreadsheet they can sort and filter instead of a raw response.
  • Reports from exports: Turn JSON exports from databases, logging tools or SaaS dashboards into pivot-table-ready data.
  • Reviewing test data: Scan generated fixtures in columns to spot odd values before they reach a test database.
  • Data cleanup: Edit values by hand in Excel, then convert the sheet back to JSON when you are done.

Converting JSON to Excel is also the quickest way to see how consistent a dataset really is. Missing keys show up as blank cells, mixed types stand out in a column, and a filter or pivot table answers most "how many of these have…" questions without writing a script.

If a plain-text file is enough, the JSON to CSV converter uses the same rows, and the JSON to HTML table converter is handy for emails and web pages. To go the other way, use the Excel to JSON converter. Need realistic records to try this with? Create them with the JSON Generator, or see how teams use them in seeding test databases in CI/CD.

Frequently Asked Questions

How do I convert JSON to Excel?

Paste your JSON into the JSON Input editor, or upload a .json file. The sheet preview updates as you type, and clicking Download saves the result as data.xlsx, which opens in Excel, Numbers, Google Sheets and LibreOffice.

How are nested objects handled when converting JSON to Excel?

With Flatten nested objects ticked, each nested value gets its own column named with dot notation, such as address.city. Without it, a nested object is written into one cell as JSON text. Arrays inside a record are always written as JSON text in a single cell.

Can I convert a JSON file with multiple arrays to several sheets?

Yes. If the top level is an object whose keys hold arrays of objects, tick One sheet per top-level array. Each key becomes its own sheet, named after the key, with names shortened or numbered where Excel's rules require it. A Preview sheet picker then lets you check each sheet before you download the workbook.

Will Excel treat my numbers and dates as numbers and dates?

JSON numbers and true/false values become real Excel numbers and booleans, so you can sum, sort and filter them. Strings always stay text, which keeps IDs such as 00123 and long barcodes intact. Date strings are not converted, so use Excel's Text to Columns or a DATEVALUE formula if you need real dates.

Is there a size limit?

The limits are Excel's own: 1,048,576 rows, 16,384 columns and 32,767 characters per cell. The converter shows an error if your data goes past them. How much JSON the page can handle in practice depends on your browser and memory.

Can I convert Excel back to JSON?

Yes. Use the Excel to JSON converter, or click Swap direction above the editors. It reads .xlsx, .xls and .ods files and returns an array of objects.

Is my JSON uploaded to a server?

No. The .xlsx file is built in your browser with JavaScript, so your data never leaves your device.

Related converters

  • Excel to JSON ConverterConvert an Excel .xlsx, .xls or .ods sheet, or pasted cells, to JSON.
  • JSON to CSV ConverterConvert a JSON array to CSV, with nested objects flattened into columns.
  • CSV to JSON ConverterConvert CSV with a header row to a JSON array of objects, with numbers and booleans typed.
  • JSON to HTML Table ConverterConvert a JSON array to an HTML table you can paste into a page or email.
  • JSON to YAML ConverterConvert JSON to clean, readable YAML for config files, Kubernetes and CI pipelines.
  • YAML to JSON ConverterConvert YAML, including anchors and multi-document files, to formatted JSON.

See all JSON converters