Tutorial · 5 min read
How to Convert Excel (XLSX) to JSON with Multiple Sheets
Excel files hold data that doesn't live in a flat table — multiple sheets, merged cells, complex formatting. When you need that data in JSON for an API, database, or web application, you need a converter that preserves structure without losing information. This guide walks through using the Excel to JSON Converter to handle single and multi-sheet workbooks, nested keys, and live editing — all in your browser.
Why JSON from Excel Is Trickier Than It Looks
Excel stores data in a grid, but real workbooks rarely have a single clean table. You might have:
- Multiple sheets representing different entity types (customers, orders, products)
- Column headers with dots or underscores that imply nested structure
- Date, currency, and number formats that need type preservation
- Thousands of rows that exceed what a simple copy-paste can handle
A proper Excel to JSON converter handles these edge cases. The data keeps its meaning through the conversion.
1. Upload and Convert — The Basics
Converting a single-sheet Excel file to JSON takes three steps:
- Open the Excel to JSON Converter.
- Click Upload or drop your
.xlsxfile onto the drop zone. - The file is parsed into an editable table. The JSON output appears in the right panel.
The result is an array of objects:
[
{
"id": 1,
"name": "Alice",
"email": "alice@example.com"
},
{
"id": 2,
"name": "Bob",
"email": "bob@example.com"
}
]
The first row is treated as headers and becomes JSON keys. The remaining rows become values.
2. Working with Multiple Sheets
Workbooks with multiple sheets are common. Here's how the converter handles them:
- Sheet selector: A dropdown list shows all sheets in the workbook. By default, the first sheet is loaded.
- Single-sheet export: When you download JSON, only the currently active sheet is exported — clean and focused.
- Multi-sheet export (coming soon): For full multi-sheet export, each sheet becomes a named key in the JSON structure.
The active sheet indicator shows total rows parsed, so you know exactly how much data you're working with before downloading.
3. Converting to Nested JSON with Unflatten Keys
Many Excel exports use dot-notation column headers like contact.email or address.city. Enable the Unflatten Keys option to transform them into nested JSON automatically:
[
{
"name": "Alice",
"contact": {
"email": "alice@example.com",
"phone": "123-456-7890"
},
"address": {
"city": "Beijing"
}
}
]
This mirrors real-world API structures. The preview updates instantly, so you can toggle Unflatten Keys on and off to compare the flat vs nested output before exporting.
4. Data Type Preservation and Output Formats
Numbers, dates, and booleans in Excel cells are converted to their proper JSON types:
- Numbers: Numeric cells become JSON numbers (no quotes).
- Booleans: TRUE/FALSE become
true/false. - Dates: Formatted as ISO strings by default.
- Empty cells: Become
nullin JSON, not empty strings.
Two output formats are available:
- Pretty: Indented and readable — great for debugging and code review.
- Compact: Minified — ideal for API payloads and storage.
Switch between them with the Output Format dropdown. The right panel updates instantly so you can see exactly what you'll get.
Try the Free Excel to JSON Converter
Upload XLSX, edit cells, see JSON live in real time. Multiple sheets, nested keys, and zero server uploads.
Convert Excel to JSON Now →Best Practices for Excel to JSON Conversion
- Clean your Excel headers first. Use clear, unique column names without special characters. For nested output, use dot notation like
user.emailinstead ofuser_email. - Pick the right sheet. If your workbook has summary sheets or chart sheets, skip them — only convert the data sheets.
- Preview before downloading. The table view shows exactly what will be converted. Check for unexpected nulls or merged cells.
- Remove formatting rows. Delete any title rows, subtotals, or summary rows from the table before exporting. Use the editable table in the converter to clean them up.
- For simple CSV data, bypass Excel entirely. If your source is already a CSV, use the CSV to JSON converter for a lighter workflow.
Frequently Asked Questions
How do I convert Excel XLSX to JSON online?
Upload your .xlsx file to the Excel to JSON Converter. The tool parses it into an editable table. Configure header rows, output format, and unflatten keys, then click download to export as JSON. All processing happens in your browser.
Does the converter support multiple sheets?
Yes. By default it shows the first sheet. Use the sheet selector dropdown to switch between sheets. When you download, only the active sheet is exported. This keeps the output focused rather than mixing all sheets into one file.
Can I convert Excel to nested JSON?
Yes. Enable the Unflatten Keys option. If your column headers use dot notation like address.city, they convert to nested JSON objects automatically. The preview updates instantly so you can see the result.
Can I edit the Excel data before exporting to JSON?
Yes. The table preview is fully editable. Double-click any cell to change values. You can also add or delete rows, and the JSON output updates in real time as you edit. No need to modify the original Excel file and re-upload.
Is my Excel data safe with this converter?
100% safe. All processing happens in your browser using client-side JavaScript. Your file is never uploaded to any server. The tool works offline once the page is loaded — no server storage, no tracking, no data leaks.