首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >专栏 >Excel to JSON online converter, flat and nested JSON converter

Excel to JSON online converter, flat and nested JSON converter

作者头像
WTSolutions
发布2025-06-22 08:14:52
发布2025-06-22 08:14:52
9300
代码可运行
举报
文章被收录于专栏:WTSolutionsWTSolutions
运行总次数:0
代码可运行

Recently, while working with data, I encountered a challenge: converting data from an Excel spreadsheet into JSON format. During my search for a solution, I discovered the product Excel-to-JSON by WTSolutions, which turned out to be the lifesaver I had been desperately looking for! Today, I’d like to share my experience using this product.

Purpose of the Product

In modern data processing and development, JSON (JavaScript Object Notation) has become a highly popular data interchange format. It is concise, readable, and easy to transmit and parse across different programming languages and systems. On the other hand, Excel is the most commonly used spreadsheet software in our daily work, facilitating data entry, organization, and analysis.

The primary purpose of Excel-to-JSON is to quickly and accurately convert data from Excel spreadsheets into JSON format. This is incredibly useful for developers, as they can easily use the converted JSON data in scenarios like web development, API integration, and data analysis. For data analysts, converting Excel data to JSON also simplifies data processing and visualization.

System Requirements and How to Obtain

System Requirements

Excel-to-JSON boasts excellent compatibility, supporting Excel 2013 (or later), Excel Online, Office 365, and Mac versions of Excel. If you’re using it in a web browser, all you need is a JavaScript-enabled browser like Google Chrome, Mozilla Firefox, Safari, or Microsoft Edge.

How to Obtain

Getting this add-in is straightforward. In Excel 2013/2016 or later, Excel Online, or Office 365, open a new worksheet, select the Insert tab or Home tab > Add-ins, and search for “Excel-to-JSON” in the add-in search box. Click the add-in to launch it. Afterward, you’ll see the Excel-to-JSON button in the Home tab, and you can start using the plugin.

Usage Instructions

Sideloading Excel-to-JSON

There are two ways to load this add-in:

  • Loading in a Web Browser: Open a JavaScript-enabled web browser and navigate to the URL: https://s.wtsolutions.cn/excel-to-json.html.
  • Sideloading in Excel (Recommended): In Excel 2013/2016, Excel Online, or Office 365, open a new datasheet, select the Home tab or Insert tab > Add-ins, and type “Excel to JSON” in the search box. Follow the on-screen instructions to install the add-in. Once installed, you’ll see an Excel to JSON button in the Home tab. Click Home > Excel to JSON > Convert to start using it.
Preparing the Excel Spreadsheet

Prepare your Excel spreadsheet, ensuring you select at least two rows of data, with the first row treated as the header. There are two ways to load Excel data:

  • Loading in a Web Browser: Copy and paste Excel data into the text area. You can copy and paste data from Excel, Google Sheets, or any other Excel-compatible software, with data separated by tabs. Alternatively, you can paste comma-separated CSV data.
  • Sideloading in Excel: Directly select your data from the Excel worksheet.
Performing the Conversion

Select the data to convert and choose a mode: Flat or Nested JSON mode. If you’ve subscribed to Pro Features, you can also configure additional options. Finally, click the Start button, and shortly after, you’ll see the converted JSON below the button.

Saving the JSON

Once the conversion is complete, there are several ways to save the generated JSON to your local computer:

  • Copy and Paste: After JSON generation, you’ll see the output in the text area. You can simply copy and paste it anywhere you need.
  • Copy to Clipboard: After JSON generation, locate the Copy to Clipboard button. Click it, and the JSON will be copied to your clipboard.
  • Save to File: (Not available for Excel for Mac users) After JSON generation, find the Save As button. Click it, and you’ll be prompted to save the JSON to a file.

Key Features

Conversion Modes
  • Flat JSON Mode: Converts Excel data into a flat JSON format. For example, consider the following Excel table:

Name

Age

Company

David

27

WTSolutions

Ton

26

WTSolutions

Kitty

30

Microsoft

Linda

30

Microsoft

Joe

40

Github

Using Flat JSON Mode, the converted JSON would look like this:

代码语言:javascript
代码运行次数:0
运行
复制
[
    {
        "Name": "David",
        "Age": 27,
        "Company": "WTSolutions"
    },
    {
        "Name": "Ton",
        "Age": 26,
        "Company": "WTSolutions"
    },
    {
        "Name": "Kitty",
        "Age": 30,
        "Company": "Microsoft"
    },
    {
        "Name": "Linda",
        "Age": 30,
        "Company": "Microsoft"
    },
    {
        "Name": "Joe",
        "Age": 40,
        "Company": "Github"
    }
]
  • Nested JSON Mode: First converts the Excel data into Flat JSON, then uses the “Flat” package to unflatten keys with separators. By default, Excel-to-JSON calls the unflatten() function with the separator set to . and the overwrite parameter as true. If you’ve subscribed to Pro Features, you can customize the separator. For example, consider the following Excel table:

ID

Student.Name

Student.Surname

Student.Age

1

Meimei

Han

12

2

Lily

Jaskson

15

3

Elon

Mask

18

Using Flat JSON Mode, the converted JSON would look like this:

代码语言:javascript
代码运行次数:0
运行
复制
[{
    "ID": 1,
    "Student.Name": "Meimei",
    "Student.Surname": "Han",
    "Student.Age": 12
}, {
    "ID": 2,
    "Student.Name": "Lily",
    "Student.Surname": "Jaskson",
    "Student.Age": 15
}, {
    "ID": 3,
    "Student.Name": "Elon",
    "Student.Surname": "Mask",
    "Student.Age": 18
}]

Using Nested JSON mode:

代码语言:javascript
代码运行次数:0
运行
复制
[
  {
    "ID": 1,
    "Student": {
      "Name": "Meimei",
      "Surname": "Han",
      "Age": 12
    }
  },
  {
    "ID": 2,
    "Student": {
      "Name": "Lily",
      "Surname": "Jaskson",
      "Age": 15
    }
  },
  {
    "ID": 3,
    "Student": {
      "Name": "Elon",
      "Surname": "Mask",
      "Age": 18
    }
  }
]
Pro Features

For users subscribed to Pro Features, Excel-to-JSON offers even more powerful functionalities:

  • Nested Separators: Customize separators for nested JSON keys (/, _, .).
  • Empty Cell Handling: Three options for empty cells: empty string "", JSON null, or exclusion.
  • Boolean Formatting: Three boolean conversion formats: JSON true/false, string "true"/"false", or numeric 1/0.
  • Single Object JSON Output: When only one row of data exists, choose whether to output as a single JSON object or an array.
  • Date Formatting: Two options for date conversion: days since 1990-01-01 or ISO 8601 string format.
  • Custom Filename: Customize the filename when using the Save As feature.

Conclusion

Overall, Excel-to-JSON is an incredibly practical tool that has significantly improved my efficiency in converting Excel data to JSON format. It’s user-friendly, highly compatible, and packed with features, making it a product worth recommending to both developers and data analysts. If you frequently need to convert Excel data to JSON, give Excel-to-JSON a try—I’m sure it’ll pleasantly surprise you!

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2025-06-18,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • Purpose of the Product
  • System Requirements and How to Obtain
    • System Requirements
    • How to Obtain
  • Usage Instructions
    • Sideloading Excel-to-JSON
    • Preparing the Excel Spreadsheet
    • Performing the Conversion
    • Saving the JSON
  • Key Features
    • Conversion Modes
    • Pro Features
  • Conclusion
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档