Excel to JSON Converter

Excel to JSON Processed locally in your browser

Convert XLSX / XLS sheets to JSON using a header row; configurable header row and type detection.

Drop a file here, or click to choose
Read and convert in your browser; files are never uploaded
XLSX / XLS / XLSM supported, up to 10 files
Up to 10 files, 30 MB each.
0%

Custom field names (blank keeps original header)

Long numbers, IDs and phone numbers stay text to avoid precision loss; dates are parsed as plain text without timezone conversion.
Data preview
Preview table data here after uploading
JSON result
Privacy:Files and text are read and converted only in your browser. Nothing is uploaded, received, or stored by this site.

Convert XLSX and XLS to JSON with Multiple Sheets

What Is an Excel to JSON Converter?

Excel to JSON conversion transforms rows and columns from Excel workbooks into JSON (JavaScript Object Notation), a structured data format widely used in web APIs, frontend and backend development, application configuration, database migration and automated data processing.

NZTool supports XLSX and XLS workbooks and converts worksheet data into arrays of objects, key-value maps or nested JSON structures. You can select worksheets, specify header rows, customize field names and configure multi-sheet output, data types, empty values and formula handling. Files are parsed locally in your browser without uploading them to a server or installing Microsoft Excel.

How to Convert Excel to JSON

  1. Open the Excel to JSON converter and select or drag and drop an Excel workbook.
  2. Wait for the browser to read the file, then select the worksheets to convert.
  3. Specify the header row or enable the no-header option if the spreadsheet has no column headings.
  4. Customize JSON field names and choose an array of objects, key-value map or nested structure.
  5. Configure multi-sheet output and the handling of numbers, dates, booleans, empty cells and formulas.
  6. Review the data preview to verify field names, columns and values.
  7. Click Convert, then copy the generated JSON or download the result.

For ordinary spreadsheets with column names in the first row, the default settings are usually sufficient. For reports containing title rows, multiple worksheets or complex data types, review the conversion settings and preview first.

Which JSON Output Structures Are Supported?

1. Array of Objects

This is the most common output format. Each Excel row becomes a JSON object, with column headers used as property names. It is suitable for APIs, frontend tables, database records and batch processing.

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

2. Key-Value Map

A selected field becomes the key of a JSON object, while the remaining columns form the associated record. This is useful for looking up data by user ID, product code or another unique identifier.

{
  "1": {"id": 1, "name": "Tom"},
  "2": {"id": 2, "name": "Alice"}
}

Choose a field containing unique values. Empty or duplicate keys may cause conflicts or overwritten records, depending on the selected handling rules.

3. Nested JSON

Nested output places the converted records inside a defined JSON hierarchy, which is useful for API response formats and configuration files.

{
  "data": {
    "items": [
      {"id": 1, "name": "Tom"},
      {"id": 2, "name": "Alice"}
    ]
  }
}

The root object and data property can be configured according to the target system. The exact nesting depends on the selected output mode.

How to Convert Multiple Excel Worksheets to JSON

An Excel workbook can contain several worksheets, such as users, orders and products. NZTool lets you select worksheets and either organize their contents separately or combine records according to your settings.

Separate output is useful for keeping datasets distinct by worksheet name. When combining data, check that column names, structures and types are compatible. When processing multiple workbooks, also consider duplicate worksheet names and conflicting fields.

For example, a workbook containing users and orders worksheets can be represented as a JSON object whose properties are the worksheet names:

{
  "users": [{"id": 1, "name": "Tom"}],
  "orders": [{"order_id": 1001, "user_id": 1}]
}

How to Configure Header Rows and JSON Field Names

Excel reports may begin with a title, explanatory text or multiple header rows. Using the first row automatically can therefore produce incorrect JSON properties. The converter supports selecting a specific header row or working without headers.

  • Custom header row: Select the row containing actual column names, such as row 1 or row 3.
  • No-header mode: Generate column identifiers without treating the first data row as headings.
  • Field name editing: Rename the JSON properties as needed.
  • Duplicate headers: Use unique names or review conflict warnings to prevent overwritten values.
  • Missing headers: Assign clear default names to unnamed columns.

JSON property names can contain Chinese, English and other Unicode characters. For API integration, stable, descriptive and unique names are recommended.

How Are Numbers, Dates and Booleans Converted?

Excel cells may contain numbers, text, dates, booleans, formulas and errors. Their JSON representation depends on the stored cell type and conversion settings.

Excel valueJSON exampleHandling
Number123.45Can be exported as a JSON number
Text identifier"00123"Preserve as a string
BooleantrueRecognized according to settings
Empty cellnull or ""Controlled by the empty-value policy
Date"2026-11-22"Can use ISO date formatting
Formula cellCached value or formula textDepends on the formula mode

Excel numbers and JavaScript numbers have precision limitations. Long order IDs, account identifiers and numbers beyond the safe integer range should be stored as text in the source workbook. Digits already lost in Excel cannot be recovered by conversion.

How Are Excel Formulas Handled?

Formula cells may contain both a formula expression and a cached calculation result. The converter provides two handling modes:

  • Cached result: Export the calculation result saved in the workbook when available.
  • Formula text: Export the formula expression as a JSON string.

Browser-based workbook parsers generally do not recalculate Excel formulas. Missing or outdated cached results may produce empty or stale values. For important reports, recalculate and save the workbook in Excel or compatible software before converting.

How Are Blank Rows, Hidden Rows and Cell Errors Handled?

The converter provides options for filtering empty rows, including or excluding hidden rows and handling error cells. Blank records may be retained or skipped, while error cells may be represented as error text or null according to the selected settings.

For workbooks with filters, hidden records or formula errors, verify these options to avoid including unwanted data or omitting valid records.

Excel to JSON vs. CSV to JSON

FeatureExcel to JSONCSV to JSON
InputXLSX, XLS workbooksCSV text files
Multiple worksheetsSupportedNot applicable
Cell typesSome native type information availableTypes inferred from text
FormulasFormula text or cached resultsNo native formula structure
Header settingsSupportedGenerally supported
Best suited forWorkbooks and reportsText-based data exchange

When the source is already an XLSX or XLS workbook, direct Excel to JSON conversion avoids losing worksheet and cell-type information during an intermediate CSV export.

Common Uses for Excel to JSON

  • API development: Convert test data, product lists and user records into JSON.
  • Database migration: Prepare structured workbook records for systems that accept JSON.
  • Configuration generation: Transform parameters and mappings into machine-readable data.
  • E-commerce: Export product, inventory and order data for integration.
  • Multi-sheet organization: Represent multiple datasets as properties of one JSON object.
  • Automation and analytics: Make manually maintained spreadsheet data available to scripts and services.

Frequently Asked Questions

Can I convert Excel directly to JSON?

Yes. Select an XLSX or XLS workbook, choose worksheets and conversion options, and generate JSON without exporting CSV first.

Do I need Microsoft Excel installed?

No. NZTool reads the workbook and generates JSON in the browser.

What if my workbook has multiple worksheets?

Select the sheets you need and output them separately or combine their data. Check headers and field mappings if their structures differ.

Can I use a header row other than the first row?

Yes. Specify the actual header row or enable no-header mode.

Does it support arrays of objects?

Yes. Each row can become a JSON object with column headings as property names.

Can I generate nested JSON?

Yes. Nested output can organize data under configured root and data properties.

Why did an Excel date become a number?

Excel may store dates as serial numbers. Check date detection settings and source cell formatting.

Can long numbers lose precision?

Yes, especially when already stored as numeric cells. Store long identifiers as text before conversion.

Are Excel formulas executed?

Usually not. The converter can export saved cached results or formula text; formula strings are not executed as JSON.

Can I convert multiple Excel files?

The tool supports selecting multiple files for batch processing. Output organization depends on the selected conversion mode.

Are Unicode field names supported?

Yes. JSON property names may contain Chinese and other Unicode characters.

Are my files uploaded to a server?

No. Workbook reading, parsing and conversion take place locally in your browser.

Free Online Excel to JSON Converter

NZTool converts XLSX and XLS workbooks into JSON arrays, key-value maps or nested objects. Select worksheets, configure headers and field names, process multiple sheets and control data types for APIs, database migration and configuration generation.
  • Excel to JSON: Convert XLSX and XLS workbooks locally in the browser.
  • Multiple worksheets: Select sheets and export datasets separately or together.
  • JSON structures: Arrays of objects, key-value maps and nested objects.
  • Headers and fields: Custom header rows, no-header mode and field name editing.
  • Data types: Handle numbers, booleans, dates, empty values and cell errors.
  • Formulas: Export saved cached results or formula expressions as text.
  • Preview and export: Format, minify, copy and download JSON results.
  • Privacy: No server upload or software installation required.
Convert workbook data into machine-readable JSON for APIs, configuration files, migration and automation. Before exporting, verify worksheet selection, headers, output structure and data types, particularly long numbers, dates and cached formula results.
Comments 0
No comments yet. Be the first to comment!
avatar
Comment content cannot be empty
0/255