Chuyển Excel sang JSON

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

Đầu vào: Excel Spreadsheet

No data

Import JSON to preview it as a spreadsheet.

0 rows × 0 columns
Memory: 0 B
Showing 0 of 0

Đầu ra: JSON

Cài đặt

Excel Import Options

Import an Excel file to convert to JSON

Supports .xlsx, .xlsm, and .xls 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 Excel; double-check them before sending to APIs.
  • For very large sheets, convert smaller ranges first to keep output manageable.
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 modern Excel formats including .xlsx, .xlsm (macro-enabled), and legacy .xls files. Both single and multi-sheet workbooks are supported.

How does sheet selection work?

After importing an Excel file, you can select which sheet to convert using the dropdown in settings. Sheet names are automatically detected from your workbook.

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 Excel file is parsed locally and never sent to any server, ensuring completely private and secure conversion.

Chuyển Excel sang JSON | JSONSwiss