What Excel to JSON Converter helps you do
Excel is convenient for people and awkward for code. This tool reads a workbook in the browser, lets you choose a worksheet, and turns the header row plus data rows into a JSON array of objects. It is a quick bridge between a business spreadsheet and an API payload, a fixture or a script input.
The workbook is parsed and converted entirely in your browser. It is not uploaded to Haivix.
How it works
The workbook is parsed by a JavaScript spreadsheet library and the selected worksheet is converted into a header row plus data rows. Each row becomes an object whose keys come from the header row. With inference enabled, numeric-looking and boolean-looking strings are converted; leading-zero values stay text to avoid losing identifiers.
How to use Excel to JSON Converter
- Drop an Excel workbook and choose the worksheet to export.
- Confirm the header row and decide whether numbers and booleans should be inferred.
- Review the JSON preview for empty cells and unexpected types.
- Copy the JSON or download it as a .json file.
When to use it
- Turn a spreadsheet export into JSON for an API, script, or fixture.
- Inspect how worksheet headers map to object keys before writing an importer.
- Convert a small workbook into readable JSON without opening a code editor.
- Create test data from a business-owned spreadsheet.
- Check the shape of a sheet before handing it to a developer.
- Move a configuration table from Excel into a JSON config file.
When not to use it
- Do not export a huge workbook in one pass if you only need a few rows; filter the sheet first.
- Do not expect formulas to be exported; only their cached values are available.
- Do not rely on inference for identifiers that happen to look numeric.
Example
A product sheet has sku, name, price and active columns. With inference on, price becomes a number and active becomes a boolean, while a sku such as 007 stays a string. The result is a JSON array that can be loaded by a fixture or pasted into an API request body.
What you can do with Excel to JSON Converter
- Read .xlsx, .xlsm and .xls workbooks without running macros.
- Choose the worksheet to export.
- Use the first row as object keys.
- Optionally infer numbers and booleans.
- Keep leading-zero values such as 007 as text.
- Copy the JSON or download it as a .json file.
Example: turn a price sheet into a fixture
Drop the workbook and choose the price worksheet. Check that the first row contains the column names you want as JSON keys.
Leave type inference off when the values are identifiers, phone numbers or postal codes. Turn it on for genuine numbers and booleans.
Copy the JSON into the fixture or download it, then validate the result with the JSON formatter before committing it.
What to know before you start
- Only one worksheet is exported at a time.
- Formulas export as cached values, not formula expressions.
- Type inference is conservative and keeps leading-zero values as text.
- Charts, images and formatting are ignored.
- The workbook is held in browser memory, so very large files can be slow.
Common mistakes
- Enabling inference and turning a leading-zero SKU into a number.
- Leaving a blank header cell, which produces an empty or duplicated key.
- Expecting the formula text instead of the value Excel last calculated.
- Exporting the wrong worksheet because the first sheet was a cover page.
- Copying the JSON without checking for nulls or empty strings.
Troubleshooting
If keys look wrong, check the first row of the selected worksheet. Merged headers can leave later columns without a name.
If a number lost its leading zeros, disable inference and export it as text.
If a formula column is empty, the workbook may not contain a cached value. Open it in Excel to recalculate and save it again.
If the workbook will not open, it may be encrypted, damaged or beyond the file-size cap.
If the JSON is huge, export fewer columns or filter the sheet before converting.
If an empty cell becomes an empty string rather than null, check the inference setting and the source. The converter keeps values as text unless you choose otherwise, so decide whether an empty string is acceptable to the consumer before exporting.
If the sheet contains a header row with merged cells, only the first column receives the label. Unmerge and fill the header across the columns before exporting, or the later keys will be blank.
Related standards and documentation
- Office Open XML (ECMA-376) defines the .xlsx and .xlsm formats.
- RFC 8259 defines the JSON output.
- Check the first row before exporting.
- Turn off inference for identifiers.
- Formulas export as values.