Chuyển Excel sang JSON

Cần chuyển đổi ngược không?
JSON to Excel Converter

Đầu vào: Spreadsheet

Import a spreadsheet file to convert to JSON

Supports .xlsx, .xlsm, .xls, and .csv files

Đầu ra: JSON

Cài đặt

Spreadsheet Import Options

Import a spreadsheet file to convert to JSON

Supports .xlsx, .xlsm, .xls, and .csv files

Cách chuyển Excel sang JSON online – hướng dẫn từng bước

Dùng công cụ Excel → JSON này để biến bảng tính thành mảng/đối tượng JSON cho API, cơ sở dữ liệu và ứng dụng web.

  1. Bước 1 – Tải file Excel lên

    • Tải lên file .xlsx, .xlsm hoặc .xls.
    • Bên trái sẽ hiển thị preview của sheet đã chọn.
    • Với CSV, hãy dùng công cụ CSV→JSON hoặc chuyển sang Excel trước.
  2. Bước 2 – Cấu hình tuỳ chọn chuyển đổi

    • Chọn sheet cần chuyển (với workbook nhiều sheet).
    • Bật “Hàng đầu tiên là tiêu đề” để dùng hàng đầu làm key JSON.
    • Có thể nhập range (ví dụ A1:D100) để chỉ chuyển một phần sheet.
  3. Bước 3 – Kiểm tra JSON đầu ra

    • Khi bật tiêu đề, JSON là mảng các object (mỗi hàng một object).
    • Mỗi hàng thành object JSON: tiêu đề là key, giá trị ô là value.
    • Kiểm tra ngày tháng, số và văn bản đã được định dạng đúng trong JSON.
  4. Bước 4 – Sao chép hoặc tải JSON

    • Dùng “Copy” để đưa mảng JSON vào clipboard.
    • Dùng “Download” để lưu thành file .json.
    • Nhập vào DB, gửi lên API hoặc dùng trong ứng dụng frontend.

Quick tips for Excel to JSON

  • Keep one header row at the top so each JSON object gets consistent keys.
  • Dates and numbers are read as they appear in the spreadsheet; double-check them before sending to APIs.
  • Turn off auto-sync when you want to batch several spreadsheet edits, then use the update button to refresh the JSON once.
Example: Excel spreadsheet to JSON array
// Excel spreadsheet (with headers)
| Name        | Email              | Age | Active |
|-------------|--------------------|-----|--------|
| Maeve       | [email protected] | 28  | true   |
| Alex        | [email protected]   | 32  | false  |

// JSON output
[
  {
    "Name": "Maeve",
    "Email": "[email protected]",
    "Age": 28,
    "Active": true
  },
  {
    "Name": "Alex",
    "Email": "[email protected]",
    "Age": 32,
    "Active": false
  }
]

Related Excel & JSON tools

Work with spreadsheet data and JSON using these complementary conversion and formatting tools.

Câu hỏi thường gặp

What Excel formats are supported?

This tool supports .xlsx, .xlsm (macro-enabled), legacy .xls, and .csv files. Excel workbooks can contain one or many sheets, while CSV files open as a single sheet preview.

How does sheet selection work?

After importing a spreadsheet file, you can select which sheet to convert using the dropdown in settings. Sheet names are detected automatically from Excel workbooks, and CSV files are loaded as a single sheet.

Can I convert specific cell ranges?

Yes. Use the range option in settings to specify a cell range like 'A1:D10'. Leave it empty to convert the entire used range of the selected sheet.

How are headers handled?

When 'First row contains headers' is enabled, the first row values become JSON object keys. When disabled, generic keys like 'Column1', 'Column2' are used.

Is my data secure?

Yes, all data processing happens entirely in your browser. Your spreadsheet file is parsed locally and never sent to any server, ensuring completely private and secure conversion.