In the process of data exchange and web development, Json serves as a standard data format, while Excel is the mainstream tool for business data storage and processing. Batch converting Excel data into Json format is commonly used in scenarios such as API development, data migration, and front-end development. Manual conversion is time-consuming and labor-intensive, and when an Xlsx file contains a large amount of data, it also carries the risk of errors. Here, we will detail five methods for converting Excel worksheets to Json, analyzing the advantages and disadvantages of each method specifically to help you choose the most suitable approach for your conversion needs. Let's learn together!
When is Excel table to JSON data text conversion used?
- When Excel is converted to JSON format, it is convenient for front-end developers to render data and enable dynamic interaction when developing web pages or applications.
- JSON format, as a lightweight data exchange format, allows Excel data to be imported into databases faster during system data integration.
- In data analysis and machine learning, converting Excel to JSON format makes it easier for scripting languages like Python and Java to process data and perform automated analysis.
Preview of batch Excel to JSON format conversion effect
Before processing:

After processing:

Method 1: Use HeSoft Doc Batch Tool to convert Excel to Json text
Recommendation Index: ★★★★★
Advantages:
- Supports batch conversion of a large number of Excel tables, with fast conversion speed and good conversion results.
- All files are processed locally, with no upload involved, protecting user privacy.
Disadvantages:
- Requires software installation on a computer.
Steps:
1. Open 【 HeSoft Doc Batch Tool 】, select 【Excel Tool】-【Excel to Json】.

2. Choose either【Add Files】or【Import Files from Folder】to add the Excel tables you need to convert to Json text. You can also drag files directly into the area below. After confirming the imported files are correct, click Next. Then click Browse and select the save location for the converted Json text.

3. After the process is complete, click the red path within the red box to open the folder and view the successfully converted Json files.

Method 2: Use an online tool to convert Xlsx files to Json format
Recommendation Index: ★★★☆☆
Advantages:
- No software installation required; conversion can be done right in the browser.
- Available on Windows, Mac, and Linux systems.
Disadvantages:
- Files need to be uploaded to a server, posing a potential risk of data leakage.
- Conversion speed may be limited under poor network conditions.
Steps:
1. Open a web page and search for Excel online conversion to JSON. Select the Excel to Json format option, then add files below.

2. After adding, click the Convert button below.

Method 3: Install the Excel to Json add-in to complete the format conversion
Recommendation Index: ★★★☆☆
Advantages:
- Preserves the original data types from Excel and integrates deeply with it.
- Supports dynamic updates, allowing regeneration when data changes.
Disadvantages:
- Requires a relatively new Office version.
- Batch processing of multiple Excel files is inconvenient.
Steps:
1. Open Excel, click File - Options - Add-ins.

2. After searching for and installing the Excel to Json add-in from the app store, select the data range you need to convert, then set processing options in the add-in panel.
3. Click Convert to generate Json format, and the result will automatically appear in a new worksheet.
Method 4: Use a Python script to convert Excel tables to Json format
Recommendation Index: ★★☆☆☆
Advantages:
- Can handle big data with millions of rows in Excel and supports various complex structures.
- Native Windows support, offering full control over the conversion logic and enabling automated workflows.
Disadvantages:
- Requires basic Python programming knowledge, leading to a high learning curve.
- High requirements for hardware specifications.
Steps:
1. Install Python and execute the command.
pip install pandas openpyxl
2. Create the conversion script excel_to_json.py.
import pandas as pd
df = pd.read_excel("input.xlsx", sheet_name="Sheet1")
df.to_json("output.json", orient="records", indent=2)
Method 5: Use a Node.js script to convert Excel worksheets to Json text
Recommendation Index: ★★☆☆☆
Advantages:
- Enables seamless integration with modern web development ecosystems.
- Supports streaming processing of large numbers of files.
Disadvantages:
- Requires a foundation in JavaScript programming.
- Error handling requires additional coding.
Steps:
1. Initialize the Node project.
npm init -y
npm install xlsx
2. Create the conversion script concert.js.
const XLSX = require("xlsx");
const workbook = XLSX.readFile("input.xlsx");
const jsonData = XLSX.utils.sheet_to_json(workbook.Sheets[workbook.SheetNames[0]]);
require("fs").writeFileSync("output.json", JSON.stringify(jsonData, null, 2));
3. Run the script.
node convert.js