Excel to JSON Converter
Convert XLSX / XLS sheets to JSON using a header row; configurable header row and type detection.
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
- Open the Excel to JSON converter and select or drag and drop an Excel workbook.
- Wait for the browser to read the file, then select the worksheets to convert.
- Specify the header row or enable the no-header option if the spreadsheet has no column headings.
- Customize JSON field names and choose an array of objects, key-value map or nested structure.
- Configure multi-sheet output and the handling of numbers, dates, booleans, empty cells and formulas.
- Review the data preview to verify field names, columns and values.
- 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 value | JSON example | Handling |
|---|---|---|
| Number | 123.45 | Can be exported as a JSON number |
| Text identifier | "00123" | Preserve as a string |
| Boolean | true | Recognized according to settings |
| Empty cell | null or "" | Controlled by the empty-value policy |
| Date | "2026-11-22" | Can use ISO date formatting |
| Formula cell | Cached value or formula text | Depends 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
| Feature | Excel to JSON | CSV to JSON |
|---|---|---|
| Input | XLSX, XLS workbooks | CSV text files |
| Multiple worksheets | Supported | Not applicable |
| Cell types | Some native type information available | Types inferred from text |
| Formulas | Formula text or cached results | No native formula structure |
| Header settings | Supported | Generally supported |
| Best suited for | Workbooks and reports | Text-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
- 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.