Chuyển đến nội dung chính

Công cụ chuyển đổi CSV ↔ JSON

Công cụ cho Nhà phát triển

Chuyển đổi hai chiều, thoát dấu ngoặc theo RFC 4180

Xem nhanh kết quả

CSV ↔ JSON Converter: Two-way conversion, RFC 4180 quote escaping. CSV ↔ JSON Converter uses standard developer formulas to compute accurate results instantly.

Dấu phân cách
Số lượng bản ghi3
Số cột3
Kích thước đầu ra0.2 KB

Bước chuyển đổi

  1. 1Parsed 4 rows × 3 columns with delimiter ","
  2. 2First row used as keys (3 fields) → 3 objects
  3. 3Đã xử lý theo RFC 4180: trường được bao bọc bởi dấu ngoặc kép có thể chứa dấu phân cách, dấu ngoặc kép kép (thoát bằng "") và dòng mới.

JSON

[
  {
    "name": "张三",
    "age": "28",
    "city": "北京"
  },
  {
    "name": "李四",
    "age": "34",
    "city": "上海"
  },
  {
    "name": "王五, Jr.",
    "age": "45",
    "city": "广州"
  }
]
Bẫy phổ biến: Excel của Windows tiếng Trung lưu CSV mặc định có BOM và mã hóa GBK (cần chỉ định mã hóa khi đọc); số không đứng đầu bị mất; ngày tháng được bản địa hóa. Đề xuất trao đổi dữ liệu dùng CSV UTF-8, tập dữ liệu lớn dùng NDJSON (mỗi dòng một đối tượng JSON) phù hợp hơn để xử lý luồng.

Công cụ này có hữu ích cho bạn không?

Hướng dẫn sử dụng

  1. Paste or type content: drop code/text into the CSV ↔ JSON Converter or fill the parameters.
  2. Choose mode/options: switch format, rules or processing as needed.
  3. Live output: results appear instantly — nothing is submitted, data stays in your browser.
  4. One-click copy: copy the output straight into your development environment.

Điểm chính

  • CSV ↔ JSON Converter is a free online developer tool — open and use, no sign-up.
  • All calculations run locally in your browser; your data never leaves the device.
  • Key capability: Two-way conversion, RFC 4180 quote escaping.
  • Results come with formulas and reference tables so you can verify every number.

Công thức và nguyên lý hoạt động

CSV ↔ JSON Converter formula

CSV ↔ JSON Converter uses standard developer formulas to compute accurate results instantly.

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

How do I use the CSV ↔ JSON Converter?
Open the page and fill in the input fields — results update automatically. Two-way conversion, RFC 4180 quote escaping.
Are the results accurate?
Yes. Standard formulas and conversion factors are used and verified.
Is it free? Do I need to sign up?
Completely free. No registration, login or download required.
Does it work on mobile?
Yes. The responsive design works on phones, tablets and desktops.
Is my data saved?
No. Everything runs locally in your browser.

Công cụ liên quan

Hướng dẫn liên quan

Nguồn và cập nhật

Based on RFC 4648, ECMA-262 and related specifications. Last updated: 2025-07

Cập nhật gần nhất:

Công thức và nội dung trên trang này đã được đội ngũ YiJianSuan kiểm tra lại, chỉ dùng để tham khảo học tập, các nghiệp vụ thực tế vui lòng tuân theo thông báo chính thức.

Nội dung được đội ngũ biên tập YiJianSuan duy trì và kiểm tra lại định kỳ, quy trình cập nhật và kiểm duyệt xem tạiQuy định biên tập.

Trích dẫn trang này: YiJianSuan. Công cụ chuyển đổi CSV ↔ JSON[EB/OL]. https://www.yijiansuan.com/vi/c/dev/csv-json

Kết quả do công cụ này cung cấp chỉ mang tính tham khảo, không cấu thành bất kỳ lời khuyên chuyên nghiệp nào, vui lòng dựa trên kết quả tính toán chính thức.