JSON to Excel Converter

JSON to Excel Processed locally in your browser

Paste JSON (array of objects, or an object of arrays) and generate an XLSX workbook locally.

JSON content
0
Examples
For API data use $.data.items; $ means the whole JSON
0%
Field management
Disable unwanted fields and rename column headers; filtering is your choice and no data is removed by default.

Use "All as text" to protect long numbers, phones, IDs and order numbers. Excel limits: 1,048,576 rows × 16,384 columns per sheet; exceeding them raises an error.
Data preview
dc.je_preview_hint
Export result
Privacy:Files and text are read and converted only in your browser. Nothing is uploaded, received, or stored by this site.

Convert JSON to XLSX with Nested Data and Multiple Sheets

What Is a JSON to Excel Converter?

JSON to Excel conversion transforms JSON data into an Excel workbook. JSON (JavaScript Object Notation) is a common data exchange format used in web APIs, application responses, configuration and storage. Excel makes data easier to view, filter, organize and analyze in rows and columns.

NZTool converts JSON objects, arrays of objects, nested structures and multiple datasets into XLSX workbooks, with CSV output also available. It supports field management, nested-data handling, multiple worksheets, data type settings and previews. All processing takes place locally in your browser without uploading data or installing software.

How to Convert JSON to Excel (XLSX)

  1. Open the JSON to Excel converter and paste JSON into the editor or import a local JSON file.
  2. Check that the JSON syntax is valid and format the text if necessary.
  3. Review the detected data structure and select the fields to export.
  4. For nested objects or arrays, choose the appropriate flattening and worksheet options.
  5. Configure headers, worksheet names, data types, empty values and date formats.
  6. Use the preview to check columns, field names and output values.
  7. Select XLSX, generate the workbook and download it.

Simple arrays of objects usually convert directly into two-dimensional tables. For multiple arrays or deeply nested data, review the field mapping and array-handling options to avoid unexpected duplication or structural changes.

Which JSON Structures Are Supported?

1. Array of Objects

Each object becomes one Excel row, and its property names become column headers.

[
  {"id": 1, "name": "Tom", "age": 25},
  {"id": 2, "name": "Alice", "age": 28}
]

This produces columns named id, name and age. Missing properties can be handled according to the selected empty-value policy.

2. Single JSON Object

A single top-level object can become one spreadsheet row, with its properties used as headers. This is useful for user profiles, order details and configuration records.

3. Nested JSON Objects

Nested objects can be flattened into separate columns, with dot notation used to represent property paths.

[
  {
    "id": 1,
    "user": {
      "name": "Tom",
      "city": "Tokyo"
    }
  }
]

The flattened table can contain id, user.name and user.city. Complex objects that should not be flattened can be preserved as JSON text according to the conversion settings.

4. Multiple JSON Datasets

If a top-level object contains arrays such as users and orders, each dataset can be exported to its own worksheet within the same XLSX workbook.

How Are Nested JSON Arrays Converted?

JSON arrays can contain values or objects, while Excel uses two-dimensional tables. NZTool offers several ways to handle nested arrays:

  • Separate worksheets: Export nested arrays to additional sheets while retaining relationships to parent records through relevant fields.
  • Expand into rows: Create separate rows for array elements, repeating parent values when necessary.
  • JSON strings: Preserve the array as serialized JSON inside one cell.

For example, an order containing several products can be represented by separate order and item sheets or expanded into multiple rows. Multiple sibling arrays may greatly increase the number of output rows, so check the preview first.

How to Select Fields and Reorder Excel Columns

Field management lets you choose which JSON properties appear in the exported table and change their order. Flattened property paths help distinguish similarly named fields from different nesting levels.

For an API response containing user IDs, contact details, addresses and internal metadata, you can export only the columns needed for your report.

How Are Numbers, Dates and Empty Values Handled?

JSON supports strings, numbers, booleans, null, objects and arrays. The appropriate Excel cell type depends on the meaning of each field.

  • Numbers: Ordinary numeric values can become Excel numbers for calculations.
  • Text: Phone numbers, postal codes and order identifiers should generally remain strings to preserve leading zeros.
  • Long numbers: Identifiers exceeding Excel's numeric precision should be stored as text.
  • Dates: Date strings can be retained or formatted according to the available options.
  • Booleans: true and false can be exported as boolean values or text.
  • Empty values: null, missing fields and empty strings are handled according to the selected policy.

JavaScript may lose precision when parsing JSON numbers outside its safe integer range. For long order numbers and exact identifiers, use strings in the original JSON.

JSON to Excel vs. JSON to CSV

FeatureExcel (XLSX)CSV
StructureSpreadsheet workbookPlain-text table
Multiple worksheetsSupportedNot supported
Cell typesText, numbers and other typesText fields
Automatic filtersSupportedNot stored
FormattingSupported by the formatNot supported
Typical useReports and analysisData exchange and imports

Choose XLSX when you need multiple sheets, typed cells or filters. Choose CSV for simpler two-dimensional data and compatibility with data-import workflows.

Common Uses for JSON to Excel

  • API exports: Turn JSON responses into spreadsheets for inspection and analysis.
  • Order management: Organize orders, customers, products and order items.
  • Log analysis: Convert structured JSON logs into filterable rows and columns.
  • Database exchange: Prepare JSON records as XLSX or CSV files.
  • Testing: Review API test results and generated datasets in tabular form.
  • Business reporting: Create files that can be opened in Excel or WPS.

Frequently Asked Questions

Can I convert a JSON file directly to Excel?

Yes. Import a valid JSON file, select fields and conversion settings, and generate an XLSX workbook.

Do I need Microsoft Excel installed?

No. NZTool parses JSON and creates spreadsheet files in your browser.

Can nested JSON be converted?

Yes. Nested objects can become columns, while arrays can be placed in separate sheets, expanded into rows or preserved as JSON strings.

Can one JSON file create multiple worksheets?

Yes. Multiple datasets can be exported to separate sheets within one XLSX workbook.

Why are some exported cells empty?

The corresponding properties may be missing, contain null or have been excluded by field selection. Check the source and field mapping.

Can long numbers lose precision?

Yes. JavaScript and Excel have numeric precision limits. Store exact identifiers as strings and export them as text.

Why did an array become multiple rows?

The array expansion mode creates a record for each element. Select JSON-string mode to preserve the original structure in one cell, or separate-sheet mode for related data.

Can JSON be converted to CSV?

Yes. CSV is available for two-dimensional data. Nested structures generally need flattening or serialization first.

Are Unicode characters supported?

Yes. Valid JSON containing Chinese and other Unicode characters can be exported to spreadsheet cells.

Is my JSON uploaded to a server?

No. Parsing, field processing, workbook generation and export take place locally in the browser.

Free Online JSON to Excel (XLSX) Converter

NZTool converts JSON arrays, nested objects and multiple datasets into XLSX workbooks or CSV files. Field selection, nested-array handling, multiple worksheets, data types and previews make it useful for API exports, reporting and structured data analysis.
  • JSON to XLSX: Paste JSON text or import a file to create an Excel workbook.
  • Supported structures: Objects, arrays of objects, nested objects and multiple datasets.
  • Field management: Select export fields and adjust column order.
  • Nested arrays: Use separate sheets, expand into rows or preserve as JSON strings.
  • Multiple worksheets: Organize datasets in one XLSX workbook.
  • Data types: Automatic detection and text options help preserve identifiers.
  • Preview and export: XLSX or CSV output, headers, filters and table previews.
  • Privacy: All JSON parsing and conversion happen locally in the browser.
Convert API responses, nested JSON, order records and structured logs into spreadsheets. For complex data, review field selection, nested-array handling and worksheet settings. Preserve long identifiers as strings and export them as text to avoid precision loss.
Comments 0
No comments yet. Be the first to comment!
avatar
Comment content cannot be empty
0/255