Chuyển đổi XML ↔ JSON
Chuyển đổi XML sang JSON và JSON sang XML — hai chiều, không phụ thuộc, chạy trên trình duyệt
XML to JSON Converter (Bidirectional)
Convert XML to JSON and JSON back to XML. Handles attributes, namespaces, CDATA sections, and deeply nested elements. Useful for working with SOAP APIs, RSS feeds, and legacy data formats.
FAQ
How do I convert XML to JSON online?
Paste your XML into the input panel and click Convert. Attributes are mapped to @ prefixed keys, text content to #text, and child elements to nested objects.
Why convert XML to JSON?
Modern REST APIs use JSON. Legacy systems, SOAP services, and RSS feeds use XML. Converting to JSON makes the data easier to work with in JavaScript, Python, and most modern languages.
Can JSON to XML conversion round-trip perfectly?
Not always. XML supports namespaces, mixed content, and ordered elements that don't have direct JSON equivalents. Simple conversions round-trip cleanly; complex XML may need manual adjustment.
Tiếp tục khám phá
Công cụ Dữ liệu & Bảng tính khác bạn có thể thích…
Xem & Chỉnh sửa CSV
Xem, sắp xếp, lọc và kiểm tra file CSV dưới dạng bảng tương tác — tất cả trên trình duyệt
Xem JSON dạng bảng
Hiển thị mảng JSON thành bảng HTML có thể sắp xếp, tìm kiếm với lọc cột
Excel sang CSV
Chuyển đổi file Excel XLSX và XLS sang định dạng CSV — không cần tải lên, chạy trên trình duyệt qua SheetJS
Trích xuất cột CSV
Chọn các cột cụ thể từ file CSV và tải xuống kết quả — hữu ích để làm sạch dataset lớn
SQL trên CSV
Chạy truy vấn SQL SELECT trực tiếp trên file CSV đã tải lên — không cần server
Gộp CSV
Gộp nhiều tệp CSV thành một — sắp xếp lại, xóa trùng và xử lý tiêu đề tự động
Trình Tạo Dữ Liệu Mẫu
Tạo dữ liệu giả thực tế — tên, email, địa chỉ, UUID, ngày tháng, trường tùy chỉnh — và xuất ra JSON, CSV, hoặc câu lệnh SQL INSERT
CSV Splitter
Split a large CSV file into smaller files by row count or by unique values in a column